Ignore:
Timestamp:
Jan 11, 2009, 10:56:07 AM (16 years ago)
Author:
[email protected]
Message:

Fix exception check for string indexing

Reviewed by Anders Carlsson.

Whoops, I accidentally removed an exception check from fast the
fast path for string indexing when i originally landed the
byte array logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r39796 r39798  
    51175117                result = jsArray->JSArray::get(callFrame, i);
    51185118        } else if (interpreter->isJSString(baseValue) && asString(baseValue)->canGetIndex(i))
    5119             return JSValuePtr::encode(asString(baseValue)->getIndex(ARG_globalData, i));
     5119            result = JSValuePtr::encode(asString(baseValue)->getIndex(ARG_globalData, i));
    51205120        else if (interpreter->isJSByteArray(baseValue) && asByteArray(baseValue)->canAccessIndex(i)) {
    51215121            ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_get_by_val_byte_array));
Note: See TracChangeset for help on using the changeset viewer.