Ignore:
Timestamp:
Aug 31, 2012, 5:46:58 PM (13 years ago)
Author:
[email protected]
Message:

Rolled back in a piece of <http://trac.webkit.org/changeset/127293>.

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

Reviewed by Sam Weinig.

  • dfg/DFGAbstractState.cpp:

(JSC::DFG::AbstractState::execute):

  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_resolve_global_dynamic):

  • llint/LowLevelInterpreter32_64.asm:
  • llint/LowLevelInterpreter64.asm:
  • runtime/JSActivation.cpp:

(JSC::JSActivation::JSActivation):

  • runtime/JSGlobalData.cpp:

(JSC::JSGlobalData::JSGlobalData):

  • runtime/JSGlobalData.h:

(JSGlobalData):

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::reset):
(JSC::JSGlobalObject::visitChildren):

  • runtime/JSGlobalObject.h:

(JSGlobalObject):
(JSC::JSGlobalObject::withScopeStructure):
(JSC::JSGlobalObject::strictEvalActivationStructure):
(JSC::JSGlobalObject::activationStructure):
(JSC::JSGlobalObject::nameScopeStructure):

File:
1 edited

Legend:

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

    r127304 r127345  
    3131#include "JSGlobalObject.h"
    3232
    33 #include "JSCallbackConstructor.h"
    34 #include "JSCallbackFunction.h"
    35 #include "JSCallbackObject.h"
    36 
    3733#include "Arguments.h"
    3834#include "ArrayConstructor.h"
     
    4339#include "DateConstructor.h"
    4440#include "DatePrototype.h"
     41#include "Debugger.h"
    4542#include "Error.h"
    4643#include "ErrorConstructor.h"
     
    4946#include "FunctionPrototype.h"
    5047#include "GetterSetter.h"
     48#include "Interpreter.h"
     49#include "JSActivation.h"
    5150#include "JSBoundFunction.h"
     51#include "JSCallbackConstructor.h"
     52#include "JSCallbackFunction.h"
     53#include "JSCallbackObject.h"
    5254#include "JSFunction.h"
    5355#include "JSGlobalObjectFunctions.h"
    5456#include "JSLock.h"
     57#include "JSNameScope.h"
    5558#include "JSONObject.h"
    56 #include "Interpreter.h"
     59#include "JSWithScope.h"
    5760#include "Lookup.h"
    5861#include "MathObject.h"
     
    7174#include "RegExpObject.h"
    7275#include "RegExpPrototype.h"
     76#include "StrictEvalActivation.h"
    7377#include "StringConstructor.h"
    7478#include "StringPrototype.h"
    75 #include "Debugger.h"
    7679
    7780#include "JSGlobalObject.lut.h"
     
    209212    m_functionPrototype->structure()->setPrototypeWithoutTransition(exec->globalData(), m_objectPrototype.get());
    210213
     214    m_nameScopeStructure.set(exec->globalData(), this, JSNameScope::createStructure(exec->globalData(), this, jsNull()));
     215    m_activationStructure.set(exec->globalData(), this, JSActivation::createStructure(exec->globalData(), this, jsNull()));
     216    m_strictEvalActivationStructure.set(exec->globalData(), this, StrictEvalActivation::createStructure(exec->globalData(), this, jsNull()));
     217    m_withScopeStructure.set(exec->globalData(), this, JSWithScope::createStructure(exec->globalData(), this, jsNull()));
     218
    211219    m_emptyObjectStructure.set(exec->globalData(), this, m_objectPrototype->inheritorID(exec->globalData()));
    212220    m_nullPrototypeObjectStructure.set(exec->globalData(), this, createEmptyObjectStructure(exec->globalData(), this, jsNull()));
     
    371379    visitor.append(&thisObject->m_errorPrototype);
    372380
     381    visitor.append(&thisObject->m_withScopeStructure);
     382    visitor.append(&thisObject->m_strictEvalActivationStructure);
     383    visitor.append(&thisObject->m_activationStructure);
     384    visitor.append(&thisObject->m_nameScopeStructure);
    373385    visitor.append(&thisObject->m_argumentsStructure);
    374386    visitor.append(&thisObject->m_arrayStructure);
Note: See TracChangeset for help on using the changeset viewer.