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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 V(kNonSmiValue, "Non-smi value") \ | 147 V(kNonSmiValue, "Non-smi value") \ |
148 V(kNonObject, "Non-object value") \ | 148 V(kNonObject, "Non-object value") \ |
149 V(kNotEnoughVirtualRegistersForValues, \ | 149 V(kNotEnoughVirtualRegistersForValues, \ |
150 "Not enough virtual registers for values") \ | 150 "Not enough virtual registers for values") \ |
151 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ | 151 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ |
152 V(kNotEnoughVirtualRegistersRegalloc, \ | 152 V(kNotEnoughVirtualRegistersRegalloc, \ |
153 "Not enough virtual registers (regalloc)") \ | 153 "Not enough virtual registers (regalloc)") \ |
154 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ | 154 V(kObjectFoundInSmiOnlyArray, "Object found in smi-only array") \ |
155 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ | 155 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ |
156 V(kOffsetOutOfRange, "Offset out of range") \ | 156 V(kOffsetOutOfRange, "Offset out of range") \ |
| 157 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ |
157 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | 158 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
158 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | 159 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ |
159 V(kOperandIsASmi, "Operand is a smi") \ | 160 V(kOperandIsASmi, "Operand is a smi") \ |
160 V(kOperandIsNotADate, "Operand is not a date") \ | 161 V(kOperandIsNotADate, "Operand is not a date") \ |
| 162 V(kOperandIsNotAFunction, "Operand is not a function") \ |
161 V(kOperandIsNotAName, "Operand is not a name") \ | 163 V(kOperandIsNotAName, "Operand is not a name") \ |
162 V(kOperandIsNotANumber, "Operand is not a number") \ | 164 V(kOperandIsNotANumber, "Operand is not a number") \ |
163 V(kOperandIsNotASmi, "Operand is not a smi") \ | 165 V(kOperandIsNotASmi, "Operand is not a smi") \ |
164 V(kOperandIsNotAString, "Operand is not a string") \ | 166 V(kOperandIsNotAString, "Operand is not a string") \ |
165 V(kOperandIsNotSmi, "Operand is not smi") \ | 167 V(kOperandIsNotSmi, "Operand is not smi") \ |
166 V(kOperandNotANumber, "Operand not a number") \ | 168 V(kOperandNotANumber, "Operand not a number") \ |
167 V(kObjectTagged, "The object is tagged") \ | 169 V(kObjectTagged, "The object is tagged") \ |
168 V(kObjectNotTagged, "The object is not tagged") \ | 170 V(kObjectNotTagged, "The object is not tagged") \ |
169 V(kOptimizationDisabled, "Optimization is disabled") \ | 171 V(kOptimizationDisabled, "Optimization is disabled") \ |
170 V(kOptimizedTooManyTimes, "Optimized too many times") \ | 172 V(kOptimizedTooManyTimes, "Optimized too many times") \ |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 }; | 294 }; |
293 #undef ERROR_MESSAGES_CONSTANTS | 295 #undef ERROR_MESSAGES_CONSTANTS |
294 | 296 |
295 | 297 |
296 const char* GetBailoutReason(BailoutReason reason); | 298 const char* GetBailoutReason(BailoutReason reason); |
297 | 299 |
298 } // namespace internal | 300 } // namespace internal |
299 } // namespace v8 | 301 } // namespace v8 |
300 | 302 |
301 #endif // V8_BAILOUT_REASON_H_ | 303 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |