Changeset 37891 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Oct 25, 2008, 12:59:47 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/Parser.h
r37622 r37891 24 24 #define Parser_h 25 25 26 #include "SourceProvider.h" 26 27 #include "debugger.h" 27 #include "SourceProvider.h"28 28 #include "nodes.h" 29 29 #include <wtf/Forward.h> -
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; -
trunk/JavaScriptCore/kjs/nodes.cpp
r37859 r37891 34 34 #include "PropertyNameArray.h" 35 35 #include "RegExpObject.h" 36 #include "SamplingTool.h" 36 37 #include "debugger.h" 37 38 #include "lexer.h" 38 39 #include "operations.h" 39 #include "SamplingTool.h"40 40 #include <math.h> 41 41 #include <wtf/Assertions.h> … … 1699 1699 if (funcStack) 1700 1700 m_functionStack = *funcStack; 1701 1702 SCOPENODE_SAMPLING_notifyOfScope(globalData->machine->m_sampler); 1701 #if ENABLE(OPCODE_SAMPLING) 1702 globalData->machine->sampler()->notifyOfScope(this); 1703 #endif 1703 1704 } 1704 1705
Note:
See TracChangeset
for help on using the changeset viewer.