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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 V(kInvalidFrameForFastNewStrictArgumentsStub, \ | 109 V(kInvalidFrameForFastNewStrictArgumentsStub, \ |
110 "Invalid frame for FastNewStrictArgumentsStub") \ | 110 "Invalid frame for FastNewStrictArgumentsStub") \ |
111 V(kInvalidFullCodegenState, "invalid full-codegen state") \ | 111 V(kInvalidFullCodegenState, "invalid full-codegen state") \ |
112 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ | 112 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ |
113 V(kInvalidJumpTableIndex, "Invalid jump table index") \ | 113 V(kInvalidJumpTableIndex, "Invalid jump table index") \ |
114 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ | 114 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ |
115 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ | 115 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ |
116 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ | 116 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ |
117 V(kInvalidMinLength, "Invalid min_length") \ | 117 V(kInvalidMinLength, "Invalid min_length") \ |
118 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ | 118 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ |
119 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ | |
120 "JSGlobalObject::native_context should be a native context") \ | |
121 V(kJSGlobalProxyContextShouldNotBeNull, \ | |
122 "JSGlobalProxy::context() should not be null") \ | |
123 V(kJSObjectWithFastElementsMapHasSlowElements, \ | 119 V(kJSObjectWithFastElementsMapHasSlowElements, \ |
124 "JSObject with fast elements map has slow elements") \ | 120 "JSObject with fast elements map has slow elements") \ |
125 V(kLetBindingReInitialization, "Let binding re-initialization") \ | 121 V(kLetBindingReInitialization, "Let binding re-initialization") \ |
126 V(kLiveEdit, "LiveEdit") \ | 122 V(kLiveEdit, "LiveEdit") \ |
127 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \ | 123 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \ |
128 V(kMapBecameDeprecated, "Map became deprecated") \ | 124 V(kMapBecameDeprecated, "Map became deprecated") \ |
129 V(kMapBecameUnstable, "Map became unstable") \ | 125 V(kMapBecameUnstable, "Map became unstable") \ |
130 V(kNativeFunctionLiteral, "Native function literal") \ | 126 V(kNativeFunctionLiteral, "Native function literal") \ |
131 V(kNeedSmiLiteral, "Need a Smi literal here") \ | 127 V(kNeedSmiLiteral, "Need a Smi literal here") \ |
132 V(kNoCasesLeft, "No cases left") \ | 128 V(kNoCasesLeft, "No cases left") \ |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 "Unsupported lookup slot in declaration") \ | 245 "Unsupported lookup slot in declaration") \ |
250 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ | 246 V(kUnsupportedNonPrimitiveCompare, "Unsupported non-primitive compare") \ |
251 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ | 247 V(kUnsupportedPhiUseOfArguments, "Unsupported phi use of arguments") \ |
252 V(kUnsupportedPhiUseOfConstVariable, \ | 248 V(kUnsupportedPhiUseOfConstVariable, \ |
253 "Unsupported phi use of const or let variable") \ | 249 "Unsupported phi use of const or let variable") \ |
254 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ | 250 V(kUnexpectedReturnFromThrow, "Unexpectedly returned from a throw") \ |
255 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ | 251 V(kUnsupportedSwitchStatement, "Unsupported switch statement") \ |
256 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ | 252 V(kUnsupportedTaggedImmediate, "Unsupported tagged immediate") \ |
257 V(kUnstableConstantTypeHeapObject, "Unstable constant-type heap object") \ | 253 V(kUnstableConstantTypeHeapObject, "Unstable constant-type heap object") \ |
258 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ | 254 V(kVariableResolvedToWithContext, "Variable resolved to with context") \ |
259 V(kWeShouldNotHaveAnEmptyLexicalContext, \ | |
260 "We should not have an empty lexical context") \ | |
261 V(kWithStatement, "WithStatement") \ | 255 V(kWithStatement, "WithStatement") \ |
262 V(kWrongFunctionContext, "Wrong context passed to function") \ | 256 V(kWrongFunctionContext, "Wrong context passed to function") \ |
263 V(kWrongAddressOrValuePassedToRecordWrite, \ | 257 V(kWrongAddressOrValuePassedToRecordWrite, \ |
264 "Wrong address or value passed to RecordWrite") \ | 258 "Wrong address or value passed to RecordWrite") \ |
265 V(kWrongArgumentCountForInvokeIntrinsic, \ | 259 V(kWrongArgumentCountForInvokeIntrinsic, \ |
266 "Wrong number of arguments for intrinsic") \ | 260 "Wrong number of arguments for intrinsic") \ |
267 V(kShouldNotDirectlyEnterOsrFunction, \ | 261 V(kShouldNotDirectlyEnterOsrFunction, \ |
268 "Should not directly enter OSR-compiled function") | 262 "Should not directly enter OSR-compiled function") |
269 | 263 |
270 #define ERROR_MESSAGES_CONSTANTS(C, T) C, | 264 #define ERROR_MESSAGES_CONSTANTS(C, T) C, |
271 enum BailoutReason { | 265 enum BailoutReason { |
272 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage | 266 ERROR_MESSAGES_LIST(ERROR_MESSAGES_CONSTANTS) kLastErrorMessage |
273 }; | 267 }; |
274 #undef ERROR_MESSAGES_CONSTANTS | 268 #undef ERROR_MESSAGES_CONSTANTS |
275 | 269 |
276 | 270 |
277 const char* GetBailoutReason(BailoutReason reason); | 271 const char* GetBailoutReason(BailoutReason reason); |
278 | 272 |
279 } // namespace internal | 273 } // namespace internal |
280 } // namespace v8 | 274 } // namespace v8 |
281 | 275 |
282 #endif // V8_BAILOUT_REASON_H_ | 276 #endif // V8_BAILOUT_REASON_H_ |
OLD | NEW |