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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 V(kNotEnoughVirtualRegistersRegalloc, \ | 139 V(kNotEnoughVirtualRegistersRegalloc, \ |
140 "Not enough virtual registers (regalloc)") \ | 140 "Not enough virtual registers (regalloc)") \ |
141 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ | 141 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ |
142 V(kOffsetOutOfRange, "Offset out of range") \ | 142 V(kOffsetOutOfRange, "Offset out of range") \ |
143 V(kOperandIsANumber, "Operand is a number") \ | 143 V(kOperandIsANumber, "Operand is a number") \ |
144 V(kOperandIsASmiAndNotABoundFunction, \ | 144 V(kOperandIsASmiAndNotABoundFunction, \ |
145 "Operand is a smi and not a bound function") \ | 145 "Operand is a smi and not a bound function") \ |
146 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ | 146 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ |
147 V(kOperandIsASmiAndNotAGeneratorObject, \ | 147 V(kOperandIsASmiAndNotAGeneratorObject, \ |
148 "Operand is a smi and not a generator object") \ | 148 "Operand is a smi and not a generator object") \ |
| 149 V(kOperandIsASmiAndNotAnAsyncGeneratorObject, \ |
| 150 "Operand is a smi and not an async generator object") \ |
149 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | 151 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
150 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ | 152 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ |
151 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | 153 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ |
152 V(kOperandIsASmi, "Operand is a smi") \ | 154 V(kOperandIsASmi, "Operand is a smi") \ |
153 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ | 155 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ |
154 V(kOperandIsNotAFunction, "Operand is not a function") \ | 156 V(kOperandIsNotAFunction, "Operand is not a function") \ |
155 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \ | 157 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \ |
| 158 V(kOperandIsNotAnAsyncGeneratorObject, \ |
| 159 "Operand is not an async generator object") \ |
156 V(kOperandIsNotAName, "Operand is not a name") \ | 160 V(kOperandIsNotAName, "Operand is not a name") \ |
157 V(kOperandIsNotANumber, "Operand is not a number") \ | 161 V(kOperandIsNotANumber, "Operand is not a number") \ |
158 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ | 162 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ |
159 V(kOperandIsNotASmi, "Operand is not a smi") \ | 163 V(kOperandIsNotASmi, "Operand is not a smi") \ |
160 V(kOperandIsNotAString, "Operand is not a string") \ | 164 V(kOperandIsNotAString, "Operand is not a string") \ |
161 V(kOperandIsNotSmi, "Operand is not smi") \ | 165 V(kOperandIsNotSmi, "Operand is not smi") \ |
162 V(kOperandNotANumber, "Operand not a number") \ | 166 V(kOperandNotANumber, "Operand not a number") \ |
163 V(kObjectTagged, "The object is tagged") \ | 167 V(kObjectTagged, "The object is tagged") \ |
164 V(kObjectNotTagged, "The object is not tagged") \ | 168 V(kObjectNotTagged, "The object is not tagged") \ |
165 V(kOptimizationDisabled, "Optimization disabled") \ | 169 V(kOptimizationDisabled, "Optimization disabled") \ |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 }; | 276 }; |
273 #undef ERROR_MESSAGES_CONSTANTS | 277 #undef ERROR_MESSAGES_CONSTANTS |
274 | 278 |
275 | 279 |
276 const char* GetBailoutReason(BailoutReason reason); | 280 const char* GetBailoutReason(BailoutReason reason); |
277 | 281 |
278 } // namespace internal | 282 } // namespace internal |
279 } // namespace v8 | 283 } // namespace v8 |
280 | 284 |
281 #endif // V8_BAILOUT_REASON_H_ | 285 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |