Ignore:
Timestamp:
Sep 13, 2012, 5:43:04 PM (13 years ago)
Author:
[email protected]
Message:

Make global const initialisation explicit in the bytecode
https://bugs.webkit.org/show_bug.cgi?id=96711

Reviewed by Gavin Barraclough.

Added op_init_global_const to make initialisation of global const
fields explicit. This will help us keep correct semantics in the
upcoming variable resolution refactoring.

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::dump):

  • bytecode/Opcode.h:

(JSC):
(JSC::padOpcodeName):

  • bytecompiler/BytecodeGenerator.cpp:

(JSC::BytecodeGenerator::emitInitGlobalConst):
(JSC):

  • bytecompiler/BytecodeGenerator.h:

(BytecodeGenerator):

  • bytecompiler/NodesCodegen.cpp:

(JSC::ConstDeclNode::emitCodeSingle):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::parseBlock):

  • dfg/DFGCapabilities.h:

(JSC::DFG::canCompileOpcode):

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::privateExecute):

  • jit/JIT.cpp:

(JSC::JIT::privateCompileMainPass):
(JSC::JIT::privateCompileSlowCases):

  • llint/LowLevelInterpreter32_64.asm:
  • llint/LowLevelInterpreter64.asm:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp

    r128400 r128534  
    24602460        }
    24612461
    2462         case op_put_global_var: {
     2462        case op_put_global_var:
     2463        case op_init_global_const: {
    24632464            NodeIndex value = get(currentInstruction[2].u.operand);
    24642465            addToGraph(
     
    24692470        }
    24702471
    2471         case op_put_global_var_check: {
     2472        case op_put_global_var_check:
     2473        case op_init_global_const_check: {
    24722474            NodeIndex value = get(currentInstruction[2].u.operand);
    24732475            CodeBlock* codeBlock = m_inlineStackTop->m_codeBlock;
Note: See TracChangeset for help on using the changeset viewer.