OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_BAILOUT_REASON_H_ | 5 #ifndef V8_BAILOUT_REASON_H_ |
6 #define V8_BAILOUT_REASON_H_ | 6 #define V8_BAILOUT_REASON_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 "External string expected, but not found") \ | 78 "External string expected, but not found") \ |
79 V(kForInStatementWithNonLocalEachVariable, \ | 79 V(kForInStatementWithNonLocalEachVariable, \ |
80 "ForInStatement with non-local each variable") \ | 80 "ForInStatement with non-local each variable") \ |
81 V(kForOfStatement, "ForOfStatement") \ | 81 V(kForOfStatement, "ForOfStatement") \ |
82 V(kFrameIsExpectedToBeAligned, "Frame is expected to be aligned") \ | 82 V(kFrameIsExpectedToBeAligned, "Frame is expected to be aligned") \ |
83 V(kFunctionBeingDebugged, "Function is being debugged") \ | 83 V(kFunctionBeingDebugged, "Function is being debugged") \ |
84 V(kFunctionCallsEval, "Function calls eval") \ | 84 V(kFunctionCallsEval, "Function calls eval") \ |
85 V(kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, \ | 85 V(kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, \ |
86 "The function_data field should be a BytecodeArray on interpreter entry") \ | 86 "The function_data field should be a BytecodeArray on interpreter entry") \ |
87 V(kGeneratedCodeIsTooLarge, "Generated code is too large") \ | 87 V(kGeneratedCodeIsTooLarge, "Generated code is too large") \ |
88 V(kGeneratorFailedToResume, "Generator failed to resume") \ | |
89 V(kGeneratorResumeMethod, "Generator resume method is being called") \ | |
90 V(kGenerator, "Generator") \ | 88 V(kGenerator, "Generator") \ |
91 V(kGlobalFunctionsMustHaveInitialMap, \ | 89 V(kGlobalFunctionsMustHaveInitialMap, \ |
92 "Global functions must have initial map") \ | 90 "Global functions must have initial map") \ |
93 V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \ | 91 V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \ |
94 V(kHydrogenFilter, "Optimization disabled by filter") \ | 92 V(kHydrogenFilter, "Optimization disabled by filter") \ |
95 V(kImportDeclaration, "Import declaration") \ | 93 V(kImportDeclaration, "Import declaration") \ |
96 V(kIndexIsNegative, "Index is negative") \ | 94 V(kIndexIsNegative, "Index is negative") \ |
97 V(kIndexIsTooLarge, "Index is too large") \ | 95 V(kIndexIsTooLarge, "Index is too large") \ |
98 V(kInliningBailedOut, "Inlining bailed out") \ | 96 V(kInliningBailedOut, "Inlining bailed out") \ |
99 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ | 97 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ | 134 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ |
137 V(kNotEnoughVirtualRegistersRegalloc, \ | 135 V(kNotEnoughVirtualRegistersRegalloc, \ |
138 "Not enough virtual registers (regalloc)") \ | 136 "Not enough virtual registers (regalloc)") \ |
139 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ | 137 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ |
140 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ | 138 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ |
141 V(kOffsetOutOfRange, "Offset out of range") \ | 139 V(kOffsetOutOfRange, "Offset out of range") \ |
142 V(kOperandIsANumber, "Operand is a number") \ | 140 V(kOperandIsANumber, "Operand is a number") \ |
143 V(kOperandIsASmiAndNotABoundFunction, \ | 141 V(kOperandIsASmiAndNotABoundFunction, \ |
144 "Operand is a smi and not a bound function") \ | 142 "Operand is a smi and not a bound function") \ |
145 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ | 143 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ |
| 144 V(kOperandIsASmiAndNotAGeneratorObject, \ |
| 145 "Operand is a smi and not a generator object") \ |
146 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | 146 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
147 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ | 147 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ |
148 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | 148 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ |
149 V(kOperandIsASmi, "Operand is a smi") \ | 149 V(kOperandIsASmi, "Operand is a smi") \ |
150 V(kOperandIsNotADate, "Operand is not a date") \ | 150 V(kOperandIsNotADate, "Operand is not a date") \ |
151 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ | 151 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ |
152 V(kOperandIsNotAFunction, "Operand is not a function") \ | 152 V(kOperandIsNotAFunction, "Operand is not a function") \ |
| 153 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \ |
153 V(kOperandIsNotAName, "Operand is not a name") \ | 154 V(kOperandIsNotAName, "Operand is not a name") \ |
154 V(kOperandIsNotANumber, "Operand is not a number") \ | 155 V(kOperandIsNotANumber, "Operand is not a number") \ |
155 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ | 156 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ |
156 V(kOperandIsNotASmi, "Operand is not a smi") \ | 157 V(kOperandIsNotASmi, "Operand is not a smi") \ |
157 V(kOperandIsNotAString, "Operand is not a string") \ | 158 V(kOperandIsNotAString, "Operand is not a string") \ |
158 V(kOperandIsNotSmi, "Operand is not smi") \ | 159 V(kOperandIsNotSmi, "Operand is not smi") \ |
159 V(kOperandNotANumber, "Operand not a number") \ | 160 V(kOperandNotANumber, "Operand not a number") \ |
160 V(kObjectTagged, "The object is tagged") \ | 161 V(kObjectTagged, "The object is tagged") \ |
161 V(kObjectNotTagged, "The object is not tagged") \ | 162 V(kObjectNotTagged, "The object is not tagged") \ |
162 V(kOptimizationDisabled, "Optimization is disabled") \ | 163 V(kOptimizationDisabled, "Optimization is disabled") \ |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 }; | 277 }; |
277 #undef ERROR_MESSAGES_CONSTANTS | 278 #undef ERROR_MESSAGES_CONSTANTS |
278 | 279 |
279 | 280 |
280 const char* GetBailoutReason(BailoutReason reason); | 281 const char* GetBailoutReason(BailoutReason reason); |
281 | 282 |
282 } // namespace internal | 283 } // namespace internal |
283 } // namespace v8 | 284 } // namespace v8 |
284 | 285 |
285 #endif // V8_BAILOUT_REASON_H_ | 286 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |