Changeset 77098 in webkit for trunk/Source/JavaScriptCore/jit


Ignore:
Timestamp:
Jan 30, 2011, 5:13:10 PM (14 years ago)
Author:
[email protected]
Message:

Convert markstack to a slot visitor API
https://bugs.webkit.org/show_bug.cgi?id=53219

rolling r77006 and r77020 back in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/JITStubs.cpp

    r77044 r77098  
    846846        // should not be treated as a dictionary.
    847847        if (slotBaseObject->structure()->isDictionary()) {
    848             slotBaseObject->flattenDictionaryObject();
     848            slotBaseObject->flattenDictionaryObject(callFrame->globalData());
    849849            offset = slotBaseObject->structure()->get(propertyName);
    850850        }
     
    943943#define CHECK_FOR_EXCEPTION() \
    944944    do { \
    945         if (UNLIKELY(stackFrame.globalData->exception)) \
     945        if (UNLIKELY(stackFrame.globalData->exception.get())) \
    946946            VM_THROW_EXCEPTION(); \
    947947    } while (0)
    948948#define CHECK_FOR_EXCEPTION_AT_END() \
    949949    do { \
    950         if (UNLIKELY(stackFrame.globalData->exception)) \
     950        if (UNLIKELY(stackFrame.globalData->exception.get())) \
    951951            VM_THROW_EXCEPTION_AT_END(); \
    952952    } while (0)
    953953#define CHECK_FOR_EXCEPTION_VOID() \
    954954    do { \
    955         if (UNLIKELY(stackFrame.globalData->exception)) { \
     955        if (UNLIKELY(stackFrame.globalData->exception.get())) { \
    956956            VM_THROW_EXCEPTION_AT_END(); \
    957957            return; \
     
    14671467        // should not be treated as a dictionary.
    14681468        if (slotBaseObject->structure()->isDictionary())
    1469             slotBaseObject->flattenDictionaryObject();
     1469            slotBaseObject->flattenDictionaryObject(callFrame->globalData());
    14701470
    14711471        // The result fetched should always be the callee!
     
    16571657        // should not be treated as a dictionary.
    16581658        if (slotBaseObject->structure()->isDictionary()) {
    1659             slotBaseObject->flattenDictionaryObject();
     1659            slotBaseObject->flattenDictionaryObject(callFrame->globalData());
    16601660            offset = slotBaseObject->structure()->get(propertyName);
    16611661        }
     
    21482148    if (JSValue v = stackFrame.args[1].jsValue()) {
    21492149        if (!stackFrame.callFrame->codeBlock()->isStrictMode())
    2150             asArguments(v)->setActivation(activation);
     2150            asArguments(v)->setActivation(*stackFrame.globalData, activation);
    21512151    }
    21522152}
     
    22052205    Identifier& ident = stackFrame.args[0].identifier();
    22062206    do {
    2207         JSObject* o = *iter;
     2207        JSObject* o = iter->get();
    22082208        PropertySlot slot(o);
    22092209        if (o->getPropertySlot(callFrame, ident, slot)) {
     
    23982398            JSArray* jsArray = asArray(baseValue);
    23992399            if (jsArray->canSetIndex(i))
    2400                 jsArray->setIndex(i, value);
     2400                jsArray->setIndex(*globalData, i, value);
    24012401            else
    24022402                jsArray->JSArray::put(callFrame, i, value);
     
    26462646    Identifier& ident = stackFrame.args[0].identifier();
    26472647    do {
    2648         JSObject* o = *iter;
     2648        JSObject* o = iter->get();
    26492649        PropertySlot slot(o);
    26502650        if (o->getPropertySlot(callFrame, ident, slot)) {
     
    29752975    JSObject* base;
    29762976    do {
    2977         base = *iter;
     2977        base = iter->get();
    29782978        PropertySlot slot(base);
    29792979        if (base->getPropertySlot(callFrame, ident, slot)) {
     
    34813481    STUB_INIT_STACK_FRAME(stackFrame);
    34823482    JSGlobalData* globalData = stackFrame.globalData;
    3483     ExceptionHandler handler = jitThrow(globalData, stackFrame.callFrame, globalData->exception, globalData->exceptionLocation);
     3483    ExceptionHandler handler = jitThrow(globalData, stackFrame.callFrame, globalData->exception.get(), globalData->exceptionLocation);
    34843484    STUB_SET_RETURN_ADDRESS(handler.catchRoutine);
    34853485    return handler.callFrame;
Note: See TracChangeset for help on using the changeset viewer.