Changeset 103243 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Dec 19, 2011, 9:45:13 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r103083 r103243 187 187 NativeExecutable* executable; 188 188 if (!callThunk) { 189 executable = new ( allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor);189 executable = new (NotNull, allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor); 190 190 executable->finishCreation(globalData, JITCode(), JITCode(), intrinsic); 191 191 } else { 192 executable = new ( allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor);192 executable = new (NotNull, allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor); 193 193 executable->finishCreation(globalData, JITCode::HostFunction(callThunk), JITCode::HostFunction(constructThunk), intrinsic); 194 194 } … … 202 202 { 203 203 ASSERT(!globalData.canUseJIT()); 204 NativeExecutable* executable = new ( allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor);204 NativeExecutable* executable = new (NotNull, allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor); 205 205 executable->finishCreation(globalData); 206 206 globalData.heap.addFinalizer(executable, &finalize); … … 349 349 static EvalExecutable* create(ExecState* exec, const SourceCode& source, bool isInStrictContext) 350 350 { 351 EvalExecutable* executable = new ( allocateCell<EvalExecutable>(*exec->heap())) EvalExecutable(exec, source, isInStrictContext);351 EvalExecutable* executable = new (NotNull, allocateCell<EvalExecutable>(*exec->heap())) EvalExecutable(exec, source, isInStrictContext); 352 352 executable->finishCreation(exec->globalData()); 353 353 exec->globalData().heap.addFinalizer(executable, &finalize); … … 390 390 static ProgramExecutable* create(ExecState* exec, const SourceCode& source) 391 391 { 392 ProgramExecutable* executable = new ( allocateCell<ProgramExecutable>(*exec->heap())) ProgramExecutable(exec, source);392 ProgramExecutable* executable = new (NotNull, allocateCell<ProgramExecutable>(*exec->heap())) ProgramExecutable(exec, source); 393 393 executable->finishCreation(exec->globalData()); 394 394 exec->globalData().heap.addFinalizer(executable, &finalize); … … 459 459 static FunctionExecutable* create(ExecState* exec, const Identifier& name, const SourceCode& source, bool forceUsesArguments, FunctionParameters* parameters, bool isInStrictContext, int firstLine, int lastLine) 460 460 { 461 FunctionExecutable* executable = new ( allocateCell<FunctionExecutable>(*exec->heap())) FunctionExecutable(exec, name, source, forceUsesArguments, parameters, isInStrictContext);461 FunctionExecutable* executable = new (NotNull, allocateCell<FunctionExecutable>(*exec->heap())) FunctionExecutable(exec, name, source, forceUsesArguments, parameters, isInStrictContext); 462 462 executable->finishCreation(exec->globalData(), name, firstLine, lastLine); 463 463 exec->globalData().heap.addFinalizer(executable, &finalize); … … 467 467 static FunctionExecutable* create(JSGlobalData& globalData, const Identifier& name, const SourceCode& source, bool forceUsesArguments, FunctionParameters* parameters, bool isInStrictContext, int firstLine, int lastLine) 468 468 { 469 FunctionExecutable* executable = new ( allocateCell<FunctionExecutable>(globalData.heap)) FunctionExecutable(globalData, name, source, forceUsesArguments, parameters, isInStrictContext);469 FunctionExecutable* executable = new (NotNull, allocateCell<FunctionExecutable>(globalData.heap)) FunctionExecutable(globalData, name, source, forceUsesArguments, parameters, isInStrictContext); 470 470 executable->finishCreation(globalData, name, firstLine, lastLine); 471 471 globalData.heap.addFinalizer(executable, &finalize);
Note:
See TracChangeset
for help on using the changeset viewer.