Ignore:
Timestamp:
Dec 7, 2007, 2:05:55 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

Reviewed by Sam Weinig.

Next step in refactoring JSGlobalObject: Added JSVariableObject class,
and factored symbol-table-related code into it. (JSGlobalObject doesn't
use the symbol table code yet, though.)


Layout and JS tests, and testapi, pass. SunSpider reports no regression.

WebCore:

Reviewed by Sam Weinig.

Added some namespace qualifications and a forwarding header, now that
KJS::Node is sometimes #included in WebCore by JavaScriptCore headers.

  • ForwardingHeaders/wtf/ListRefPtr.h: Added.
  • bindings/js/JSXSLTProcessor.cpp: (KJS::JSXSLTProcessorPrototypeFunctionTransformToFragment::callAsFunction):
  • bindings/js/kjs_binding.cpp: (KJS::ScriptInterpreter::getDOMNodeForDocument): (KJS::ScriptInterpreter::forgetDOMNodeForDocument): (KJS::ScriptInterpreter::putDOMNodeForDocument): (KJS::ScriptInterpreter::markDOMNodesForDocument): (KJS::ScriptInterpreter::updateDOMNodeDocument):

WebKit/mac:

Reviewed by Sam Weinig.


Added a forwarding header, since we now #include nodes.h through some
JavaScriptCore headers.

  • ForwardingHeaders/wtf/ListRefPtr.h: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/ExecState.h

    r28468 r28527  
    3939    };
    4040   
    41     class JSGlobalObject;
    42     class ScopeChain;
    43     class Interpreter;
     41    class ActivationImp;
     42    class FunctionBodyNode;
    4443    class FunctionImp;
    4544    class GlobalFuncImp;
    46     class FunctionBodyNode;
     45    class Interpreter;
     46    class JSGlobalObject;
     47    class JSVariableObject;
     48    class ScopeChain;
    4749    struct LocalStorageEntry;
    4850   
     
    7476        const ScopeChain& scopeChain() const { return m_scopeChain; }
    7577       
    76         JSObject* variableObject() const { return m_variable; }
    77         void setVariableObject(JSObject* v) { m_variable = v; }
     78        JSVariableObject* variableObject() const { return m_variableObject; }
     79        void setVariableObject(JSVariableObject* v) { m_variableObject = v; }
    7880       
    7981        JSObject* thisValue() const { return m_thisVal; }
     
    8183        ExecState* callingExecState() { return m_callingExec; }
    8284       
    83         JSObject* activationObject() { return m_activation; }
     85        ActivationImp* activationObject() { return m_activation; }
    8486        CodeType codeType() { return m_codeType; }
    8587        FunctionBodyNode* currentBody() { return m_currentBody; }
     
    129131        FunctionImp* m_function;
    130132        const List* m_arguments;
    131         JSObject* m_activation;
     133        ActivationImp* m_activation;
    132134        LocalStorageEntry* m_localStorageBuffer;
    133135
    134136        ScopeChain m_scopeChain;
    135         JSObject* m_variable;
     137        JSVariableObject* m_variableObject;
    136138        JSObject* m_thisVal;
    137139       
Note: See TracChangeset for help on using the changeset viewer.