Skip to content
  • msaboff@apple.com's avatar
    There should be one "invalid" virtual register constant · df938367
    msaboff@apple.com authored
    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:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    df938367