Ignore:
Timestamp:
Aug 31, 2012, 1:10:09 PM (13 years ago)
Author:
[email protected]
Message:

Not reviewed.

Rolled out http://trac.webkit.org/changeset/127293 because it broke
inspector tests on Windows.

Shrink activation objects by half
https://bugs.webkit.org/show_bug.cgi?id=95591

Reviewed by Sam Weinig.

File:
1 edited

Legend:

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

    r127293 r127304  
    3131#include "JSGlobalObject.h"
    3232
     33#include "JSCallbackConstructor.h"
     34#include "JSCallbackFunction.h"
     35#include "JSCallbackObject.h"
     36
    3337#include "Arguments.h"
    3438#include "ArrayConstructor.h"
     
    3943#include "DateConstructor.h"
    4044#include "DatePrototype.h"
    41 #include "Debugger.h"
    4245#include "Error.h"
    4346#include "ErrorConstructor.h"
     
    4649#include "FunctionPrototype.h"
    4750#include "GetterSetter.h"
    48 #include "Interpreter.h"
    49 #include "JSActivation.h"
    5051#include "JSBoundFunction.h"
    51 #include "JSCallbackConstructor.h"
    52 #include "JSCallbackFunction.h"
    53 #include "JSCallbackObject.h"
    5452#include "JSFunction.h"
    5553#include "JSGlobalObjectFunctions.h"
    5654#include "JSLock.h"
    57 #include "JSNameScope.h"
    5855#include "JSONObject.h"
    59 #include "JSWithScope.h"
     56#include "Interpreter.h"
    6057#include "Lookup.h"
    6158#include "MathObject.h"
     
    7471#include "RegExpObject.h"
    7572#include "RegExpPrototype.h"
    76 #include "StrictEvalActivation.h"
    7773#include "StringConstructor.h"
    7874#include "StringPrototype.h"
     75#include "Debugger.h"
    7976
    8077#include "JSGlobalObject.lut.h"
     
    110107
    111108JSGlobalObject::JSGlobalObject(JSGlobalData& globalData, Structure* structure, const GlobalObjectMethodTable* globalObjectMethodTable)
    112     : Base(globalData, structure, 0)
     109    : Base(globalData, structure, this, this, 0)
    113110    , m_masqueradesAsUndefinedWatchpoint(adoptRef(new WatchpointSet(InitializedWatching)))
    114111    , m_weakRandom(Options::forceWeakRandomSeed() ? Options::forcedWeakRandomSeed() : static_cast<unsigned>(randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)))
     
    130127{
    131128    static_cast<JSGlobalObject*>(cell)->JSGlobalObject::~JSGlobalObject();
    132 }
    133 
    134 void JSGlobalObject::setGlobalThis(JSGlobalData& globalData, JSObject* globalThis)
    135 {
    136     m_globalThis.set(globalData, this, globalThis);
    137129}
    138130
     
    217209    m_functionPrototype->structure()->setPrototypeWithoutTransition(exec->globalData(), m_objectPrototype.get());
    218210
    219     m_nameScopeStructure.set(exec->globalData(), this, JSNameScope::createStructure(exec->globalData(), this, jsNull()));
    220     m_activationStructure.set(exec->globalData(), this, JSActivation::createStructure(exec->globalData(), this, jsNull()));
    221     m_strictEvalActivationStructure.set(exec->globalData(), this, StrictEvalActivation::createStructure(exec->globalData(), this, jsNull()));
    222     m_withScopeStructure.set(exec->globalData(), this, JSWithScope::createStructure(exec->globalData(), this, jsNull()));
    223 
    224211    m_emptyObjectStructure.set(exec->globalData(), this, m_objectPrototype->inheritorID(exec->globalData()));
    225212    m_nullPrototypeObjectStructure.set(exec->globalData(), this, createEmptyObjectStructure(exec->globalData(), this, jsNull()));
     
    358345    Base::visitChildren(thisObject, visitor);
    359346
    360     visitor.append(&thisObject->m_globalThis);
    361347    visitor.append(&thisObject->m_methodCallDummy);
    362348
     
    385371    visitor.append(&thisObject->m_errorPrototype);
    386372
    387     visitor.append(&thisObject->m_withScopeStructure);
    388     visitor.append(&thisObject->m_strictEvalActivationStructure);
    389     visitor.append(&thisObject->m_activationStructure);
    390     visitor.append(&thisObject->m_nameScopeStructure);
    391373    visitor.append(&thisObject->m_argumentsStructure);
    392374    visitor.append(&thisObject->m_arrayStructure);
Note: See TracChangeset for help on using the changeset viewer.