Changeset 37891 in webkit for trunk/JavaScriptCore/kjs/Shell.cpp
- Timestamp:
- Oct 25, 2008, 12:59:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/Shell.cpp
r37845 r37891 323 323 CodeGenerator::setDumpsGeneratedCode(true); 324 324 325 #if ENABLE( SAMPLING_TOOL)325 #if ENABLE(OPCODE_SAMPLING) 326 326 Machine* machine = globalObject->globalData()->machine; 327 machine->m_sampler = new SamplingTool(); 328 machine->m_sampler->start(); 327 machine->setSampler(new SamplingTool(machine)); 329 328 #endif 330 329 … … 339 338 prettyPrintScript(globalObject->globalExec(), fileName, script); 340 339 else { 340 #if ENABLE(OPCODE_SAMPLING) 341 machine->sampler()->start(); 342 #endif 341 343 Completion completion = Interpreter::evaluate(globalObject->globalExec(), globalObject->globalScopeChain(), makeSource(script.data(), fileName)); 342 344 success = success && completion.complType() != Throw; … … 349 351 350 352 globalObject->globalExec()->clearException(); 351 } 352 } 353 354 #if ENABLE(SAMPLING_TOOL) 355 machine->m_sampler->stop(); 356 machine->m_sampler->dump(globalObject->globalExec()); 357 delete machine->m_sampler; 353 354 #if ENABLE(OPCODE_SAMPLING) 355 machine->sampler()->stop(); 356 #endif 357 } 358 } 359 360 #if ENABLE(OPCODE_SAMPLING) 361 machine->sampler()->dump(globalObject->globalExec()); 362 delete machine->sampler(); 358 363 #endif 359 364 return success;
Note:
See TracChangeset
for help on using the changeset viewer.