Ignore:
Timestamp:
Jan 31, 2011, 12:07:21 PM (14 years ago)
Author:
[email protected]
Message:

2011-01-31 Oliver Hunt <[email protected]>

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

rolling r77098, r77099, r77100, r77109, and
r77111 back in, along with a few more Qt fix attempts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSFunction.cpp

    r77113 r77151  
    7272    , m_scopeChain(globalObject->globalScopeChain())
    7373{
    74     putDirect(exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
    75     putDirect(exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);
     74    putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
     75    putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);
    7676}
    7777#endif
     
    8484    , m_scopeChain(globalObject->globalScopeChain())
    8585{
    86     putDirect(exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
    87 #if ENABLE(JIT)
    88     putDirect(exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);
     86    putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
     87#if ENABLE(JIT)
     88    putDirect(exec->globalData(), exec->propertyNames().length, jsNumber(length), DontDelete | ReadOnly | DontEnum);
    8989#else
    9090    UNUSED_PARAM(length);
     
    100100{
    101101    const Identifier& name = static_cast<FunctionExecutable*>(m_executable.get())->name();
    102     putDirect(exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
     102    putDirect(exec->globalData(), exec->globalData().propertyNames->name, jsString(exec, name.isNull() ? "" : name.ustring()), DontDelete | ReadOnly | DontEnum);
    103103}
    104104
     
    208208        if (!location) {
    209209            JSObject* prototype = new (exec) JSObject(scope().globalObject()->emptyObjectStructure());
    210             prototype->putDirect(exec->propertyNames().constructor, this, DontEnum);
    211             putDirect(exec->propertyNames().prototype, prototype, DontDelete | DontEnum);
     210            prototype->putDirect(exec->globalData(), exec->propertyNames().constructor, this, DontEnum);
     211            putDirect(exec->globalData(), exec->propertyNames().prototype, prototype, DontDelete | DontEnum);
    212212            location = getDirectLocation(propertyName);
    213213        }
Note: See TracChangeset for help on using the changeset viewer.