Ignore:
Timestamp:
Sep 9, 2013, 11:09:40 PM (12 years ago)
Author:
[email protected]
Message:

There should be one "invalid" virtual register constant
https://bugs.webkit.org/show_bug.cgi?id=121057

Reviewed by Filip Pizlo.

Unify all references to an invalid virtual register to be the enum InvalidVirtualRegister.
Changed the value of InvalidVirtualRegister to be maximum integer value.

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::setArgumentsRegister):
(JSC::CodeBlock::usesArguments):

  • bytecode/LazyOperandValueProfile.h:

(JSC::LazyOperandValueProfileKey::LazyOperandValueProfileKey):
(JSC::LazyOperandValueProfileKey::operator!):
(JSC::LazyOperandValueProfileKey::isHashTableDeletedValue):
(JSC::LazyOperandValueProfile::LazyOperandValueProfile):

  • bytecode/UnlinkedCodeBlock.cpp:

(JSC::UnlinkedCodeBlock::UnlinkedCodeBlock):

  • bytecode/UnlinkedCodeBlock.h:

(JSC::UnlinkedCodeBlock::usesArguments):
(JSC::UnlinkedCodeBlock::usesGlobalObject):

  • bytecode/VirtualRegister.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp

    r154498 r155420  
    195195    , m_numParameters(0)
    196196    , m_vm(vm)
    197     , m_argumentsRegister(-1)
    198     , m_globalObjectRegister(-1)
     197    , m_argumentsRegister((int)InvalidVirtualRegister)
     198    , m_globalObjectRegister((int)InvalidVirtualRegister)
    199199    , m_needsFullScopeChain(info.m_needsActivation)
    200200    , m_usesEval(info.m_usesEval)
Note: See TracChangeset for help on using the changeset viewer.