Changeset 251106 in webkit for trunk/Source/JavaScriptCore/bytecode/MethodOfGettingAValueProfile.h
- Timestamp:
- Oct 14, 2019, 3:52:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/MethodOfGettingAValueProfile.h
r251090 r251106 36 36 namespace JSC { 37 37 38 class UnaryArithProfile;39 class BinaryArithProfile;40 38 class CCallHelpers; 41 39 class CodeBlock; 42 40 class LazyOperandValueProfileKey; 41 struct ArithProfile; 43 42 struct ValueProfile; 44 43 … … 58 57 m_kind = None; 59 58 } 60 61 MethodOfGettingAValueProfile( UnaryArithProfile* profile)59 60 MethodOfGettingAValueProfile(ArithProfile* profile) 62 61 { 63 62 if (profile) { 64 m_kind = UnaryArithProfileReady; 65 u.unaryArithProfile = profile; 66 } else 67 m_kind = None; 68 } 69 70 MethodOfGettingAValueProfile(BinaryArithProfile* profile) 71 { 72 if (profile) { 73 m_kind = BinaryArithProfileReady; 74 u.binaryArithProfile = profile; 63 m_kind = ArithProfileReady; 64 u.arithProfile = profile; 75 65 } else 76 66 m_kind = None; … … 89 79 None, 90 80 Ready, 91 UnaryArithProfileReady, 92 BinaryArithProfileReady, 81 ArithProfileReady, 93 82 LazyOperand 94 83 }; … … 97 86 union { 98 87 ValueProfile* profile; 99 UnaryArithProfile* unaryArithProfile; 100 BinaryArithProfile* binaryArithProfile; 88 ArithProfile* arithProfile; 101 89 struct { 102 90 CodeBlock* codeBlock;
Note:
See TracChangeset
for help on using the changeset viewer.