Changeset 38825 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Nov 27, 2008, 6:24:20 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Arguments.h
r38511 r38825 107 107 function = callFrame->callee(); 108 108 109 CodeBlock* codeBlock = &function-> m_body->generatedBytecode();109 CodeBlock* codeBlock = &function->body()->generatedBytecode(); 110 110 int numParameters = codeBlock->numParameters; 111 111 argc = callFrame->argumentCount(); … … 130 130 getArgumentsData(callFrame, callee, firstParameterIndex, argv, numArguments); 131 131 132 d->numParameters = callee-> m_body->parameterCount();132 d->numParameters = callee->body()->parameterCount(); 133 133 d->firstParameterIndex = firstParameterIndex; 134 134 d->numArguments = numArguments; … … 161 161 , d(new ArgumentsData) 162 162 { 163 ASSERT(!callFrame->callee()-> m_body->parameterCount());163 ASSERT(!callFrame->callee()->body()->parameterCount()); 164 164 165 165 unsigned numArguments = callFrame->argumentCount() - 1; -
trunk/JavaScriptCore/runtime/FunctionPrototype.cpp
r38511 r38825 68 68 if (thisValue->isObject(&JSFunction::info)) { 69 69 JSFunction* function = asFunction(thisValue); 70 return jsString(exec, "function " + function->name(&exec->globalData()) + "(" + function-> m_body->paramString() + ") " + function->m_body->toSourceString());70 return jsString(exec, "function " + function->name(&exec->globalData()) + "(" + function->body()->paramString() + ") " + function->body()->toSourceString()); 71 71 } 72 72 -
trunk/JavaScriptCore/runtime/JSFunction.h
r38767 r38825 43 43 44 44 typedef InternalFunction Base; 45 JSFunction(PassRefPtr<JSC::Structure> st) : InternalFunction(st), m_scopeChain(NoScopeChain()) {} 45 46 JSFunction(PassRefPtr<Structure> structure) 47 : InternalFunction(structure) 48 , m_scopeChain(NoScopeChain()) 49 { 50 } 51 46 52 public: 47 53 JSFunction(ExecState*, const Identifier&, FunctionBodyNode*, ScopeChainNode*); … … 58 64 ScopeChain& scope() { return m_scopeChain; } 59 65 66 FunctionBodyNode* body() const { return m_body.get(); } 67 60 68 virtual void mark(); 61 69 62 70 static const ClassInfo info; 63 64 // FIXME: This should be private65 RefPtr<FunctionBodyNode> m_body;66 71 67 72 static PassRefPtr<Structure> createStructure(JSValue* prototype) … … 80 85 static JSValue* lengthGetter(ExecState*, const Identifier&, const PropertySlot&); 81 86 87 RefPtr<FunctionBodyNode> m_body; 82 88 ScopeChain m_scopeChain; 83 89 };
Note:
See TracChangeset
for help on using the changeset viewer.