Changeset 94035 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Aug 29, 2011, 6:43:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r93947 r94035 244 244 , m_features(isInStrictContext ? StrictModeFeature : 0) 245 245 { 246 finishCreation(globalData);247 246 } 248 247 … … 252 251 , m_features(isInStrictContext ? StrictModeFeature : 0) 253 252 { 254 finishCreation(exec->globalData());255 253 } 256 254 … … 319 317 static EvalExecutable* create(ExecState* exec, const SourceCode& source, bool isInStrictContext) 320 318 { 321 return new (allocateCell<EvalExecutable>(*exec->heap())) EvalExecutable(exec, source, isInStrictContext); 319 EvalExecutable* executable = new (allocateCell<EvalExecutable>(*exec->heap())) EvalExecutable(exec, source, isInStrictContext); 320 return executable; 322 321 } 323 322 … … 355 354 static ProgramExecutable* create(ExecState* exec, const SourceCode& source) 356 355 { 357 return new (allocateCell<ProgramExecutable>(*exec->heap())) ProgramExecutable(exec, source); 356 ProgramExecutable* executable = new (allocateCell<ProgramExecutable>(*exec->heap())) ProgramExecutable(exec, source); 357 return executable; 358 358 } 359 359 … … 413 413 static FunctionExecutable* create(ExecState* exec, const Identifier& name, const SourceCode& source, bool forceUsesArguments, FunctionParameters* parameters, bool isInStrictContext, int firstLine, int lastLine) 414 414 { 415 return new (allocateCell<FunctionExecutable>(*exec->heap())) FunctionExecutable(exec, name, source, forceUsesArguments, parameters, isInStrictContext, firstLine, lastLine); 415 FunctionExecutable* executable = new (allocateCell<FunctionExecutable>(*exec->heap())) FunctionExecutable(exec, name, source, forceUsesArguments, parameters, isInStrictContext, firstLine, lastLine); 416 return executable; 416 417 } 417 418 418 419 static FunctionExecutable* create(JSGlobalData& globalData, const Identifier& name, const SourceCode& source, bool forceUsesArguments, FunctionParameters* parameters, bool isInStrictContext, int firstLine, int lastLine) 419 420 { 420 return new (allocateCell<FunctionExecutable>(globalData.heap)) FunctionExecutable(globalData, name, source, forceUsesArguments, parameters, isInStrictContext, firstLine, lastLine); 421 FunctionExecutable* executable = new (allocateCell<FunctionExecutable>(globalData.heap)) FunctionExecutable(globalData, name, source, forceUsesArguments, parameters, isInStrictContext, firstLine, lastLine); 422 return executable; 421 423 } 422 424 … … 531 533 void finishCreation(JSGlobalData& globalData, const Identifier& name, int firstLine, int lastLine) 532 534 { 535 Base::finishCreation(globalData); 533 536 m_firstLine = firstLine; 534 537 m_lastLine = lastLine;
Note:
See TracChangeset
for help on using the changeset viewer.