Changeset 155420 in webkit for trunk/Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h
- Timestamp:
- Sep 9, 2013, 11:09:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/LazyOperandValueProfile.h
r153170 r155420 33 33 #include "ConcurrentJITLock.h" 34 34 #include "ValueProfile.h" 35 #include "VirtualRegister.h" 35 36 #include <wtf/HashMap.h> 36 37 #include <wtf/Noncopyable.h> … … 46 47 LazyOperandValueProfileKey() 47 48 : m_bytecodeOffset(0) // 0 = empty value 48 , m_operand( -1) // not a valid operand index in our current scheme49 , m_operand(InvalidVirtualRegister) // not a valid operand index in our current scheme 49 50 { 50 51 } … … 52 53 LazyOperandValueProfileKey(WTF::HashTableDeletedValueType) 53 54 : m_bytecodeOffset(1) // 1 = deleted value 54 , m_operand( -1) // not a valid operand index in our current scheme55 , m_operand(InvalidVirtualRegister) // not a valid operand index in our current scheme 55 56 { 56 57 } … … 60 61 , m_operand(operand) 61 62 { 62 ASSERT(operand != -1);63 ASSERT(operand != InvalidVirtualRegister); 63 64 } 64 65 65 66 bool operator!() const 66 67 { 67 return m_operand == -1;68 return m_operand == InvalidVirtualRegister; 68 69 } 69 70 … … 92 93 bool isHashTableDeletedValue() const 93 94 { 94 return m_operand == -1&& m_bytecodeOffset;95 return m_operand == InvalidVirtualRegister && m_bytecodeOffset; 95 96 } 96 97 private: … … 129 130 LazyOperandValueProfile() 130 131 : MinimalValueProfile() 131 , m_operand( -1)132 , m_operand(InvalidVirtualRegister) 132 133 { 133 134 }
Note:
See TracChangeset
for help on using the changeset viewer.