⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136086 in webkit


Ignore:
Timestamp:
Nov 28, 2012, 7:16:11 PM (14 years ago)
Author:
msaboff@apple.com
Message:

Change Bytecompiler s_dumpsGeneratedCode to an Options value
​https://bugs.webkit.org/show_bug.cgi?id=103588

Reviewed by Filip Pizlo.

Moved the control of dumping bytecodes to Options::dumpGeneratedBytecodes.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::CodeBlock):

  • bytecompiler/BytecodeGenerator.cpp:
  • bytecompiler/BytecodeGenerator.h:
  • jsc.cpp:

(runWithScripts):

  • runtime/Options.h:
Location:
trunk/Source/JavaScriptCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r136077 r136086  
     12012-11-28  Michael Saboff  <msaboff@apple.com>
     2
     3        Change Bytecompiler s_dumpsGeneratedCode to an Options value
     4        https://bugs.webkit.org/show_bug.cgi?id=103588
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Moved the control of dumping bytecodes to Options::dumpGeneratedBytecodes.
     9
     10        * bytecode/CodeBlock.cpp:
     11        (JSC::CodeBlock::CodeBlock):
     12        * bytecompiler/BytecodeGenerator.cpp:
     13        * bytecompiler/BytecodeGenerator.h:
     14        * jsc.cpp:
     15        (runWithScripts):
     16        * runtime/Options.h:
     17
    1182012-11-28  Mark Hahnenberg  <mhahnenberg@apple.com>
    219
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r136066 r136086  
    18921892    m_instructions = WTF::RefCountedArray<Instruction>(instructions);
    18931893
    1894     if (BytecodeGenerator::dumpsGeneratedCode())
     1894    if (Options::dumpGeneratedBytecodes())
    18951895        dump();
    18961896    m_globalData->finishedCompiling(this);
  • trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r134381 r136086  
    3939#include "JSNameScope.h"
    4040#include "LowLevelInterpreter.h"
     41#include "Options.h"
    4142#include "StrongInlines.h"
    4243#include <wtf/text/WTFString.h>
    … …  
    146147}
    147148#endif
    148 
    149 static bool s_dumpsGeneratedCode = false;
    150 
    151 void BytecodeGenerator::setDumpsGeneratedCode(bool dumpsGeneratedCode)
    152 {
    153     s_dumpsGeneratedCode = dumpsGeneratedCode;
    154 }
    155 
    156 bool BytecodeGenerator::dumpsGeneratedCode()
    157 {
    158     return s_dumpsGeneratedCode;
    159 }
    160149
    161150ParserError BytecodeGenerator::generate()
  • trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h

    r133953 r136086  
    210210        typedef DeclarationStacks::FunctionStack FunctionStack;
    211211
    212         JS_EXPORT_PRIVATE static void setDumpsGeneratedCode(bool dumpsGeneratedCode);
    213         static bool dumpsGeneratedCode();
    214 
    215212        BytecodeGenerator(JSGlobalData&, ProgramNode*, UnlinkedProgramCodeBlock*, DebuggerMode, ProfilerMode);
    216213        BytecodeGenerator(JSGlobalData&, FunctionBodyNode*, UnlinkedFunctionCodeBlock*, DebuggerMode, ProfilerMode);
  • trunk/Source/JavaScriptCore/jsc.cpp

    r133995 r136086  
    541541
    542542    if (dump)
    543         BytecodeGenerator::setDumpsGeneratedCode(true);
     543        JSC::Options::dumpGeneratedBytecodes() = true;
    544544
    545545    JSGlobalData& globalData = globalObject->globalData();
  • trunk/Source/JavaScriptCore/runtime/Options.h

    r135923 r136086  
    6969    v(bool, forceDFGCodeBlockLiveness, false) \
    7070    \
     71    v(bool, dumpGeneratedBytecodes, false) \
     72    \
    7173    /* showDisassembly implies showDFGDisassembly. */ \
    7274    v(bool, showDisassembly, false) \
Note: See TracChangeset for help on using the changeset viewer.