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(kNonSmiValue, "Non-smi value") \ | 139 V(kNonSmiValue, "Non-smi value") \ |
140 V(kNonObject, "Non-object value") \ | 140 V(kNonObject, "Non-object value") \ |
141 V(kNotEnoughVirtualRegistersForValues, \ | 141 V(kNotEnoughVirtualRegistersForValues, \ |
142 "Not enough virtual registers for values") \ | 142 "Not enough virtual registers for values") \ |
143 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ | 143 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ |
144 V(kNotEnoughVirtualRegistersRegalloc, \ | 144 V(kNotEnoughVirtualRegistersRegalloc, \ |
145 "Not enough virtual registers (regalloc)") \ | 145 "Not enough virtual registers (regalloc)") \ |
146 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ | 146 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ |
147 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ | 147 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ |
148 V(kOffsetOutOfRange, "Offset out of range") \ | 148 V(kOffsetOutOfRange, "Offset out of range") \ |
| 149 V(kOperandIsASmiAndNotABoundFunction, \ |
| 150 "Operand is a smi and not a bound function") \ |
149 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ | 151 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ |
150 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | 152 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
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(kOperandIsNotADate, "Operand is not a date") \ | 155 V(kOperandIsNotADate, "Operand is not a date") \ |
| 156 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ |
154 V(kOperandIsNotAFunction, "Operand is not a function") \ | 157 V(kOperandIsNotAFunction, "Operand is not a function") \ |
155 V(kOperandIsNotAName, "Operand is not a name") \ | 158 V(kOperandIsNotAName, "Operand is not a name") \ |
156 V(kOperandIsNotANumber, "Operand is not a number") \ | 159 V(kOperandIsNotANumber, "Operand is not a number") \ |
157 V(kOperandIsNotASmi, "Operand is not a smi") \ | 160 V(kOperandIsNotASmi, "Operand is not a smi") \ |
158 V(kOperandIsNotAString, "Operand is not a string") \ | 161 V(kOperandIsNotAString, "Operand is not a string") \ |
159 V(kOperandIsNotSmi, "Operand is not smi") \ | 162 V(kOperandIsNotSmi, "Operand is not smi") \ |
160 V(kOperandNotANumber, "Operand not a number") \ | 163 V(kOperandNotANumber, "Operand not a number") \ |
161 V(kObjectTagged, "The object is tagged") \ | 164 V(kObjectTagged, "The object is tagged") \ |
162 V(kObjectNotTagged, "The object is not tagged") \ | 165 V(kObjectNotTagged, "The object is not tagged") \ |
163 V(kOptimizationDisabled, "Optimization is disabled") \ | 166 V(kOptimizationDisabled, "Optimization is disabled") \ |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 }; | 274 }; |
272 #undef ERROR_MESSAGES_CONSTANTS | 275 #undef ERROR_MESSAGES_CONSTANTS |
273 | 276 |
274 | 277 |
275 const char* GetBailoutReason(BailoutReason reason); | 278 const char* GetBailoutReason(BailoutReason reason); |
276 | 279 |
277 } // namespace internal | 280 } // namespace internal |
278 } // namespace v8 | 281 } // namespace v8 |
279 | 282 |
280 #endif // V8_BAILOUT_REASON_H_ | 283 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |