| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 V(kInvalidFrameForFastNewStrictArgumentsStub, \ | 112 V(kInvalidFrameForFastNewStrictArgumentsStub, \ |
| 113 "Invalid frame for FastNewStrictArgumentsStub") \ | 113 "Invalid frame for FastNewStrictArgumentsStub") \ |
| 114 V(kInvalidFullCodegenState, "invalid full-codegen state") \ | 114 V(kInvalidFullCodegenState, "invalid full-codegen state") \ |
| 115 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ | 115 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ |
| 116 V(kInvalidJumpTableIndex, "Invalid jump table index") \ | 116 V(kInvalidJumpTableIndex, "Invalid jump table index") \ |
| 117 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ | 117 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ |
| 118 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ | 118 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ |
| 119 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ | 119 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ |
| 120 V(kInvalidMinLength, "Invalid min_length") \ | 120 V(kInvalidMinLength, "Invalid min_length") \ |
| 121 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ | 121 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ |
| 122 V(kJSObjectWithFastElementsMapHasSlowElements, \ | |
| 123 "JSObject with fast elements map has slow elements") \ | |
| 124 V(kLetBindingReInitialization, "Let binding re-initialization") \ | 122 V(kLetBindingReInitialization, "Let binding re-initialization") \ |
| 125 V(kLiveEdit, "LiveEdit") \ | 123 V(kLiveEdit, "LiveEdit") \ |
| 126 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \ | 124 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \ |
| 127 V(kMapBecameDeprecated, "Map became deprecated") \ | 125 V(kMapBecameDeprecated, "Map became deprecated") \ |
| 128 V(kMapBecameUnstable, "Map became unstable") \ | 126 V(kMapBecameUnstable, "Map became unstable") \ |
| 129 V(kMissingBytecodeArray, "Missing bytecode array from function") \ | 127 V(kMissingBytecodeArray, "Missing bytecode array from function") \ |
| 130 V(kNativeFunctionLiteral, "Native function literal") \ | 128 V(kNativeFunctionLiteral, "Native function literal") \ |
| 131 V(kNeedSmiLiteral, "Need a Smi literal here") \ | 129 V(kNeedSmiLiteral, "Need a Smi literal here") \ |
| 132 V(kNoCasesLeft, "No cases left") \ | 130 V(kNoCasesLeft, "No cases left") \ |
| 133 V(kNonInitializerAssignmentToConst, "Non-initializer assignment to const") \ | 131 V(kNonInitializerAssignmentToConst, "Non-initializer assignment to const") \ |
| 134 V(kNonSmiIndex, "Non-smi index") \ | 132 V(kNonSmiIndex, "Non-smi index") \ |
| 135 V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \ | 133 V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \ |
| 136 V(kNonSmiValue, "Non-smi value") \ | 134 V(kNonSmiValue, "Non-smi value") \ |
| 137 V(kNonObject, "Non-object value") \ | 135 V(kNonObject, "Non-object value") \ |
| 138 V(kNotEnoughVirtualRegistersForValues, \ | 136 V(kNotEnoughVirtualRegistersForValues, \ |
| 139 "Not enough virtual registers for values") \ | 137 "Not enough virtual registers for values") \ |
| 140 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ | 138 V(kNotEnoughSpillSlotsForOsr, "Not enough spill slots for OSR") \ |
| 141 V(kNotEnoughVirtualRegistersRegalloc, \ | 139 V(kNotEnoughVirtualRegistersRegalloc, \ |
| 142 "Not enough virtual registers (regalloc)") \ | 140 "Not enough virtual registers (regalloc)") \ |
| 143 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ | 141 V(kObjectLiteralWithComplexProperty, "Object literal with complex property") \ |
| 144 V(kOffsetOutOfRange, "Offset out of range") \ | 142 V(kOffsetOutOfRange, "Offset out of range") \ |
| 145 V(kOperandIsANumber, "Operand is a number") \ | |
| 146 V(kOperandIsASmiAndNotABoundFunction, \ | 143 V(kOperandIsASmiAndNotABoundFunction, \ |
| 147 "Operand is a smi and not a bound function") \ | 144 "Operand is a smi and not a bound function") \ |
| 148 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ | 145 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ |
| 149 V(kOperandIsASmiAndNotAGeneratorObject, \ | 146 V(kOperandIsASmiAndNotAGeneratorObject, \ |
| 150 "Operand is a smi and not a generator object") \ | 147 "Operand is a smi and not a generator object") \ |
| 151 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | 148 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
| 152 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ | 149 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ |
| 153 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | 150 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ |
| 154 V(kOperandIsASmi, "Operand is a smi") \ | 151 V(kOperandIsASmi, "Operand is a smi") \ |
| 155 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ | 152 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ |
| 156 V(kOperandIsNotAFunction, "Operand is not a function") \ | 153 V(kOperandIsNotAFunction, "Operand is not a function") \ |
| 157 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \ | 154 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \ |
| 158 V(kOperandIsNotAName, "Operand is not a name") \ | |
| 159 V(kOperandIsNotANumber, "Operand is not a number") \ | |
| 160 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ | 155 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ |
| 161 V(kOperandIsNotASmi, "Operand is not a smi") \ | 156 V(kOperandIsNotASmi, "Operand is not a smi") \ |
| 162 V(kOperandIsNotAString, "Operand is not a string") \ | 157 V(kOperandIsNotAString, "Operand is not a string") \ |
| 163 V(kOperandIsNotSmi, "Operand is not smi") \ | 158 V(kOperandIsNotSmi, "Operand is not smi") \ |
| 164 V(kOperandNotANumber, "Operand not a number") \ | |
| 165 V(kObjectTagged, "The object is tagged") \ | 159 V(kObjectTagged, "The object is tagged") \ |
| 166 V(kObjectNotTagged, "The object is not tagged") \ | 160 V(kObjectNotTagged, "The object is not tagged") \ |
| 167 V(kOptimizationDisabled, "Optimization disabled") \ | 161 V(kOptimizationDisabled, "Optimization disabled") \ |
| 168 V(kOptimizationDisabledForTest, "Optimization disabled for test") \ | 162 V(kOptimizationDisabledForTest, "Optimization disabled for test") \ |
| 169 V(kDeoptimizedTooManyTimes, "Deoptimized too many times") \ | 163 V(kDeoptimizedTooManyTimes, "Deoptimized too many times") \ |
| 170 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ | 164 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ |
| 171 "Out of virtual registers while trying to allocate temp register") \ | 165 "Out of virtual registers while trying to allocate temp register") \ |
| 172 V(kParseScopeError, "Parse/scope error") \ | 166 V(kParseScopeError, "Parse/scope error") \ |
| 173 V(kPossibleDirectCallToEval, "Possible direct call to eval") \ | 167 V(kPossibleDirectCallToEval, "Possible direct call to eval") \ |
| 174 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ | 168 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 }; | 268 }; |
| 275 #undef ERROR_MESSAGES_CONSTANTS | 269 #undef ERROR_MESSAGES_CONSTANTS |
| 276 | 270 |
| 277 | 271 |
| 278 const char* GetBailoutReason(BailoutReason reason); | 272 const char* GetBailoutReason(BailoutReason reason); |
| 279 | 273 |
| 280 } // namespace internal | 274 } // namespace internal |
| 281 } // namespace v8 | 275 } // namespace v8 |
| 282 | 276 |
| 283 #endif // V8_BAILOUT_REASON_H_ | 277 #endif // V8_BAILOUT_REASON_H_ |
| OLD | NEW |