Changeset 47775 in webkit for trunk/JavaScriptCore/bytecompiler
- Timestamp:
- Aug 26, 2009, 12:46:47 AM (16 years ago)
- Location:
- trunk/JavaScriptCore/bytecompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r47738 r47775 350 350 addVar(*varStack[i].first, varStack[i].second & DeclarationStacks::IsConstant); 351 351 352 const Identifier* parameters =functionBody->parameters();353 size_t parameterCount = functionBody->parameterCount();352 FunctionParameters& parameters = *functionBody->parameters(); 353 size_t parameterCount = parameters.size(); 354 354 m_nextParameterIndex = -RegisterFile::CallFrameHeaderSize - parameterCount - 1; 355 355 m_parameters.grow(1 + parameterCount); // reserve space for "this" -
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r47738 r47775 420 420 PassRefPtr<FunctionExecutable> makeFunction(FunctionBodyNode* body) 421 421 { 422 return adoptRef(new FunctionExecutable(body->ident(), body->source(), body->usesArguments(), body->copyParameters(), body->parameterCount(), body->lineNo(), body->lastLine()));422 return FunctionExecutable::create(body->ident(), body->source(), body->usesArguments(), body->parameters(), body->lineNo(), body->lastLine()); 423 423 } 424 424
Note:
See TracChangeset
for help on using the changeset viewer.