Permalink
Switch branches/tags
Nothing to show
Commits on May 10, 2011
Commits on Apr 25, 2011
  1. Set prototype and parent scope for JavaAdapters extending ScriptableO…

    hannes%helma.at committed Apr 25, 2011
    …bject.
Commits on Apr 21, 2011
  1. Fix JSON.parse() for negative index keys.

    hannes%helma.at committed Apr 21, 2011
  2. Make JSON.parse use the same logic for property name to index convers…

    hannes%helma.at committed Apr 21, 2011
    …ion as object literals.
    
    This fixes cases like JSON.parse('{"00": 1}') or JSON.parse('{"  ": 1}') where the key should
    not be converted to an index.
    See http://groups.google.com/group/mozilla-rhino/browse_frm/thread/5350e704b40d761d
    and bug #537483.
Commits on Apr 12, 2011
Commits on Apr 10, 2011
  1. Bump version string to 1.7R3 (dropping the "prerelease")

    hannes%helma.at committed Apr 10, 2011
Commits on Apr 8, 2011
  1. Protect against endless loop caused by int overflow in ScriptableObje…

    hannes%helma.at committed Apr 8, 2011
    …ct.readObject()
Commits on Apr 7, 2011
  1. Recommitting file to hopefully get it fixed

    hannes%helma.at committed Apr 7, 2011
  2. Removing file with bogus version.

    hannes%helma.at committed Apr 7, 2011
  3. Move missing test file.

    hannes%helma.at committed Apr 7, 2011
  4. Move commonjs/module tests to o.m.j.tests, fix a few details to make …

    hannes%helma.at committed Apr 7, 2011
    …sure they run properly
    
     - Rename Java test classes from *Tests to *Test to match ant file pattern
     - Update testRelativeId.js to no longer rely on module.id for relative require
     - Convert to Unix line breaks
  5. Move commonjs/module tests to o.m.j.tests, fix a few details to make …

    hannes%helma.at committed Apr 7, 2011
    …sure they run properly
    
     - Rename Java test classes from *Tests to *Test to match ant file pattern
     - Update testRelativeId.js to no longer rely on module.id for relative require
     - Convert to Unix line breaks
  6. Add CommonJS module options to Rhino shell.

    hannes%helma.at committed Apr 7, 2011
  7. Make CommonJS module implementation work with more real world code pa…

    hannes%helma.at committed Apr 7, 2011
    …tterns.
    
    This includes loading modules outside the module path, replacing the exports object
    via module.exports, and lenient handling of module ids and file extensions.
Commits on Apr 1, 2011
  1. Convert to Unix line breaks.

    hannes%helma.at committed Apr 1, 2011
Commits on Mar 29, 2011
  1. Allow keywords as proeprty identifiers. Fixes bug 423557.

    hannes%helma.at committed Mar 29, 2011
  2. Allow use of reserved keywords as identifiers by default, following m…

    hannes%helma.at committed Mar 29, 2011
    …ost modern JS engines.
Commits on Mar 23, 2011
  1. Unify indentation + minor fixes

    hannes%helma.at committed Mar 23, 2011
  2. Fix redundant slot fetching and possible NullPointerException in Scri…

    hannes%helma.at committed Mar 23, 2011
    …ptableObject.checkValidPropertyDefinition()
Commits on Mar 21, 2011
  1. Fix for source location in the error constructed by ScriptRuntime.thr…

    szegedia%freemail.hu committed Mar 21, 2011
    …owError
Commits on Mar 16, 2011
  1. Add serialVersionUID to TopLevel class

    hannes%helma.at committed Mar 16, 2011
Commits on Mar 10, 2011
  1. Fix formatting

    hannes%helma.at committed Mar 10, 2011
Commits on Mar 9, 2011
  1. Optimize hash performance on empty slots query

    hannes%helma.at committed Mar 9, 2011
Commits on Mar 6, 2011
  1. Significantly improve ScriptableObject hash performance

    hannes%helma.at committed Mar 6, 2011
    Changes include:
       * Limit slot table size to powers of 2 so we can use bitwise and instead of modulo for index calculation
       * Remove optimizations that don't carry their weight anymore such as cachingn of last accessed property slot
       * Split up large methods like accessSlot, putImpl and getImpl into smaller pieces
  2. Patch for bug 637587 - Functionality of built-in classes is exposed t…

    hannes%helma.at committed Mar 6, 2011
    …o changes in global object
    
    This patch adds a new TopLevel class that extends IDScriptableObject and is
    extended by ImporterTopLevel. TopLevel is meant to be used as top-level scope
    and allows to cache built-in ECMAScript objects such as Object, Array,
    Function, String etc.
    
    The patch also adds two methods to ScriptRuntime called newBuiltinObject() and
    setBuiltinProtoAndParent() that work similar to newObject() and
    setObjectProtoAndParent() but directly access the cached built-ins in the
    TopLevel scope.
    
    If the top-level scope is not an instance of TopLevel or does not have its
    built-in cache initialized, these methods will fall back to the old behaviour.
Commits on Mar 1, 2011
  1. Fix bug 630111 - Codegen optimizer fails with Unsupported major.minor…

    hannes%helma.at committed Mar 1, 2011
    … version 0.0 on JDK7
Commits on Feb 23, 2011
  1. Fix Bug 531600 - "while(true) continue;" will never trigger observeIn…

    hannes%helma.at committed Feb 23, 2011
    …structionCount
  2. Fix bug 520545 - ScriptableObject.defineClass fails if method is defi…

    hannes%helma.at committed Feb 23, 2011
    …ned both static and non-static
Commits on Feb 22, 2011
  1. Include test file name in failed Mozilla test suite tests.

    hannes%helma.at committed Feb 22, 2011
Commits on Feb 10, 2011
  1. Add LRU cache for compiled scripts to the shell's load() function

    hannes%helma.at committed Feb 10, 2011
    This helps a lot with tests and benchmarks, and generally should help
    all applications where scripts are loaded repeatedly. The cache is
    limited to 32 entries and uses MD5 hashes to detect updated scripts.
Commits on Feb 9, 2011
  1. Fix strange interpreter performance regression introduced in rev. 1.3…

    hannes%helma.at committed Feb 9, 2011
    …57 of Interpreter.java ("More progress on strict mode").
    
    The problem was extremely visible in V8-benchmark where score was reduced to roughly a 30% by the introduction of STRICT_SETNAME handling with Sun Java 1.6.0_22-b04 HotSpot Server VM. I think handling STRICT_SETNAME using the ScriptRuntime method in Interpreter is also more consistent.
Commits on Dec 16, 2010
  1. Fix for bug 619296 - Java class wrapping not customizable via WrapFac…

    hannes%helma.at committed Dec 16, 2010
    …tory
    
    This adds a wrapJavaClass() method to WrapFactory that can be overridden
    to use something other than NativeJavaClass as java class wrapper.
Commits on Dec 15, 2010
  1. Print test file name in ShellTest error message.

    hannes%helma.at committed Dec 15, 2010