Changeset 127202 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.h
- Timestamp:
- Aug 30, 2012, 3:50:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.h
r127191 r127202 26 26 27 27 #include "InternalFunction.h" 28 #include "JS Object.h"28 #include "JSScope.h" 29 29 30 30 namespace JSC { … … 58 58 JS_EXPORT_PRIVATE static JSFunction* create(ExecState*, JSGlobalObject*, int length, const String& name, NativeFunction, Intrinsic = NoIntrinsic, NativeFunction nativeConstructor = callHostFunctionAsConstructor); 59 59 60 static JSFunction* create(ExecState* exec, FunctionExecutable* executable, ScopeChainNode* scopeChain)60 static JSFunction* create(ExecState* exec, FunctionExecutable* executable, JSScope* scope) 61 61 { 62 JSFunction* function = new (NotNull, allocateCell<JSFunction>(*exec->heap())) JSFunction(exec, executable, scope Chain);62 JSFunction* function = new (NotNull, allocateCell<JSFunction>(*exec->heap())) JSFunction(exec, executable, scope); 63 63 ASSERT(function->structure()->globalObject()); 64 function->finishCreation(exec, executable, scope Chain);64 function->finishCreation(exec, executable, scope); 65 65 return function; 66 66 } … … 70 70 const String calculatedDisplayName(ExecState*); 71 71 72 ScopeChainNode* scope()72 JSScope* scope() 73 73 { 74 74 ASSERT(!isHostFunctionNonInline()); 75 return m_scope Chain.get();75 return m_scope.get(); 76 76 } 77 77 // This method may be called for host functins, in which case it … … 80 80 // host functions, and checking whether the function is a host 81 81 // function is deemed too expensive. 82 ScopeChainNode* scopeUnchecked()82 JSScope* scopeUnchecked() 83 83 { 84 return m_scope Chain.get();84 return m_scope.get(); 85 85 } 86 void setScope(JSGlobalData& globalData, ScopeChainNode* scopeChain)86 void setScope(JSGlobalData& globalData, JSScope* scope) 87 87 { 88 88 ASSERT(!isHostFunctionNonInline()); 89 m_scope Chain.set(globalData, this, scopeChain);89 m_scope.set(globalData, this, scope); 90 90 } 91 91 … … 114 114 static inline size_t offsetOfScopeChain() 115 115 { 116 return OBJECT_OFFSETOF(JSFunction, m_scope Chain);116 return OBJECT_OFFSETOF(JSFunction, m_scope); 117 117 } 118 118 … … 138 138 139 139 JS_EXPORT_PRIVATE JSFunction(ExecState*, JSGlobalObject*, Structure*); 140 JSFunction(ExecState*, FunctionExecutable*, ScopeChainNode*);140 JSFunction(ExecState*, FunctionExecutable*, JSScope*); 141 141 142 142 void finishCreation(ExecState*, NativeExecutable*, int length, const String& name); 143 void finishCreation(ExecState*, FunctionExecutable*, ScopeChainNode*);143 void finishCreation(ExecState*, FunctionExecutable*, JSScope*); 144 144 145 145 Structure* cacheInheritorID(ExecState*); … … 166 166 167 167 WriteBarrier<ExecutableBase> m_executable; 168 WriteBarrier< ScopeChainNode> m_scopeChain;168 WriteBarrier<JSScope> m_scope; 169 169 WriteBarrier<Structure> m_cachedInheritorID; 170 170 };
Note:
See TracChangeset
for help on using the changeset viewer.