Show
Ignore:
Timestamp:
08/01/08 14:47:24 (5 months ago)
Author:
sroret
Message:

merge with webkit revision 35510

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/JavaScriptCore/kjs/Shell.cpp

    r418 r427  
    3131#include "JSFunction.h" 
    3232#include "JSGlobalObject.h" 
    33 #include "JSLock.h" 
    3433#include "JSObject.h" 
    3534#include "Parser.h" 
    3635#include "PrototypeFunction.h" 
     36#include "SamplingTool.h" 
    3737#include "collector.h" 
    3838#include "completion.h" 
     
    208208JSValue* functionGC(ExecState* exec, JSObject*, JSValue*, const ArgList&) 
    209209{ 
    210     JSLock lock(false); 
    211210    exec->heap()->collect(); 
    212211    return jsUndefined(); 
     
    340339            prettyPrintScript(globalObject->globalExec(), fileName, script); 
    341340        else { 
    342 #if SAMPLING_TOOL_ENABLED 
     341#if ENABLE(SAMPLING_TOOL) 
    343342            Machine* machine = globalObject->globalData()->machine; 
    344343            machine->m_sampler = new SamplingTool(); 
     
    355354            } 
    356355 
    357 #if SAMPLING_TOOL_ENABLED 
     356#if ENABLE(SAMPLING_TOOL) 
    358357            machine->m_sampler->stop(); 
    359358            machine->m_sampler->dump(globalObject->globalExec()); 
     
    460459    KJS::initializeThreading(); 
    461460 
    462     JSLock lock(false); 
    463  
    464461    Options options; 
    465462    parseArguments(argc, argv, options);