Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1106)

Side by Side Diff: src/bailout-reason.h

Issue 1986173004: Remove more unused bailout reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/cctest/interpreter/bytecode_expectations/Generators.golden » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 // TODO(svenpanne) introduce an AbortReason and partition this list 11 // TODO(svenpanne) introduce an AbortReason and partition this list
12 #define ERROR_MESSAGES_LIST(V) \ 12 #define ERROR_MESSAGES_LIST(V) \
13 V(kNoReason, "no reason") \ 13 V(kNoReason, "no reason") \
14 \ 14 \
15 V(k32BitValueInRegisterIsNotZeroExtended, \ 15 V(k32BitValueInRegisterIsNotZeroExtended, \
16 "32 bit value in register is not zero-extended") \ 16 "32 bit value in register is not zero-extended") \
17 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \ 17 V(kAllocationIsNotDoubleAligned, "Allocation is not double aligned") \
18 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \ 18 V(kAPICallReturnedInvalidObject, "API call returned invalid object") \
19 V(kArgumentsObjectValueInATestContext, \ 19 V(kArgumentsObjectValueInATestContext, \
20 "Arguments object value in a test context") \ 20 "Arguments object value in a test context") \
21 V(kArrayBoilerplateCreationFailed, "Array boilerplate creation failed") \
22 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \ 21 V(kArrayIndexConstantValueTooBig, "Array index constant value too big") \
23 V(kAssignmentToArguments, "Assignment to arguments") \ 22 V(kAssignmentToArguments, "Assignment to arguments") \
24 V(kAssignmentToLetVariableBeforeInitialization, \ 23 V(kAssignmentToLetVariableBeforeInitialization, \
25 "Assignment to let variable before initialization") \ 24 "Assignment to let variable before initialization") \
26 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \ 25 V(kAssignmentToLOOKUPVariable, "Assignment to LOOKUP variable") \
27 V(kAssignmentToParameterFunctionUsesArgumentsObject, \ 26 V(kAssignmentToParameterFunctionUsesArgumentsObject, \
28 "Assignment to parameter, function uses arguments object") \ 27 "Assignment to parameter, function uses arguments object") \
29 V(kAssignmentToParameterInArgumentsObject, \ 28 V(kAssignmentToParameterInArgumentsObject, \
30 "Assignment to parameter in arguments object") \ 29 "Assignment to parameter in arguments object") \
31 V(kBadValueContextForArgumentsObjectValue, \ 30 V(kBadValueContextForArgumentsObjectValue, \
(...skipping 23 matching lines...) Expand all
55 V(kDontDeleteCellsCannotContainTheHole, \ 54 V(kDontDeleteCellsCannotContainTheHole, \
56 "DontDelete cells can't contain the hole") \ 55 "DontDelete cells can't contain the hole") \
57 V(kDoExpressionUnmodelable, \ 56 V(kDoExpressionUnmodelable, \
58 "Encountered a do-expression with unmodelable control statements") \ 57 "Encountered a do-expression with unmodelable control statements") \
59 V(kDoPushArgumentNotImplementedForDoubleType, \ 58 V(kDoPushArgumentNotImplementedForDoubleType, \
60 "DoPushArgument not implemented for double type") \ 59 "DoPushArgument not implemented for double type") \
61 V(kEliminatedBoundsCheckFailed, "Eliminated bounds check failed") \ 60 V(kEliminatedBoundsCheckFailed, "Eliminated bounds check failed") \
62 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \ 61 V(kEmitLoadRegisterUnsupportedDoubleImmediate, \
63 "EmitLoadRegister: Unsupported double immediate") \ 62 "EmitLoadRegister: Unsupported double immediate") \
64 V(kEval, "eval") \ 63 V(kEval, "eval") \
65 V(kExpectedAlignmentMarker, "Expected alignment marker") \
66 V(kExpectedAllocationSite, "Expected allocation site") \ 64 V(kExpectedAllocationSite, "Expected allocation site") \
67 V(kExpectedFunctionObject, "Expected function object in register") \ 65 V(kExpectedFunctionObject, "Expected function object in register") \
68 V(kExpectedHeapNumber, "Expected HeapNumber") \ 66 V(kExpectedHeapNumber, "Expected HeapNumber") \
69 V(kExpectedNativeContext, "Expected native context") \ 67 V(kExpectedNativeContext, "Expected native context") \
70 V(kExpectedNonIdenticalObjects, "Expected non-identical objects") \ 68 V(kExpectedNonIdenticalObjects, "Expected non-identical objects") \
71 V(kExpectedNonNullContext, "Expected non-null context") \ 69 V(kExpectedNonNullContext, "Expected non-null context") \
72 V(kExpectedPositiveZero, "Expected +0.0") \ 70 V(kExpectedPositiveZero, "Expected +0.0") \
73 V(kExpectedNewSpaceObject, "Expected new space object") \ 71 V(kExpectedNewSpaceObject, "Expected new space object") \
74 V(kExpectedUndefinedOrCell, "Expected undefined or cell in register") \ 72 V(kExpectedUndefinedOrCell, "Expected undefined or cell in register") \
75 V(kExpectingAlignmentForCopyBytes, "Expecting alignment for CopyBytes") \ 73 V(kExpectingAlignmentForCopyBytes, "Expecting alignment for CopyBytes") \
76 V(kExportDeclaration, "Export declaration") \ 74 V(kExportDeclaration, "Export declaration") \
77 V(kExternalStringExpectedButNotFound, \ 75 V(kExternalStringExpectedButNotFound, \
78 "External string expected, but not found") \ 76 "External string expected, but not found") \
79 V(kForInStatementWithNonLocalEachVariable, \ 77 V(kForInStatementWithNonLocalEachVariable, \
80 "ForInStatement with non-local each variable") \ 78 "ForInStatement with non-local each variable") \
81 V(kForOfStatement, "ForOfStatement") \ 79 V(kForOfStatement, "ForOfStatement") \
82 V(kFrameIsExpectedToBeAligned, "Frame is expected to be aligned") \
83 V(kFunctionBeingDebugged, "Function is being debugged") \ 80 V(kFunctionBeingDebugged, "Function is being debugged") \
84 V(kFunctionCallsEval, "Function calls eval") \ 81 V(kFunctionCallsEval, "Function calls eval") \
85 V(kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, \ 82 V(kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry, \
86 "The function_data field should be a BytecodeArray on interpreter entry") \ 83 "The function_data field should be a BytecodeArray on interpreter entry") \
87 V(kGeneratedCodeIsTooLarge, "Generated code is too large") \ 84 V(kGeneratedCodeIsTooLarge, "Generated code is too large") \
88 V(kGenerator, "Generator") \ 85 V(kGenerator, "Generator") \
89 V(kGlobalFunctionsMustHaveInitialMap, \ 86 V(kGlobalFunctionsMustHaveInitialMap, \
90 "Global functions must have initial map") \ 87 "Global functions must have initial map") \
91 V(kGraphBuildingFailed, "Optimized graph construction failed") \ 88 V(kGraphBuildingFailed, "Optimized graph construction failed") \
92 V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \ 89 V(kHeapNumberMapRegisterClobbered, "HeapNumberMap register clobbered") \
93 V(kHydrogenFilter, "Optimization disabled by filter") \ 90 V(kHydrogenFilter, "Optimization disabled by filter") \
94 V(kImportDeclaration, "Import declaration") \ 91 V(kImportDeclaration, "Import declaration") \
95 V(kIndexIsNegative, "Index is negative") \ 92 V(kIndexIsNegative, "Index is negative") \
96 V(kIndexIsTooLarge, "Index is too large") \ 93 V(kIndexIsTooLarge, "Index is too large") \
97 V(kInliningBailedOut, "Inlining bailed out") \ 94 V(kInliningBailedOut, "Inlining bailed out") \
98 V(kInputGPRIsExpectedToHaveUpper32Cleared, \ 95 V(kInputGPRIsExpectedToHaveUpper32Cleared, \
99 "Input GPR is expected to have upper32 cleared") \ 96 "Input GPR is expected to have upper32 cleared") \
100 V(kInputStringTooLong, "Input string too long") \ 97 V(kInputStringTooLong, "Input string too long") \
101 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \ 98 V(kInteger32ToSmiFieldWritingToNonSmiLocation, \
102 "Integer32ToSmiField writing to non-smi location") \ 99 "Integer32ToSmiField writing to non-smi location") \
103 V(kInvalidBytecode, "Invalid bytecode") \ 100 V(kInvalidBytecode, "Invalid bytecode") \
104 V(kInvalidCaptureReferenced, "Invalid capture referenced") \
105 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \ 101 V(kInvalidElementsKindForInternalArrayOrInternalPackedArray, \
106 "Invalid ElementsKind for InternalArray or InternalPackedArray") \ 102 "Invalid ElementsKind for InternalArray or InternalPackedArray") \
107 V(kInvalidFrameForFastNewRestArgumentsStub, \ 103 V(kInvalidFrameForFastNewRestArgumentsStub, \
108 "Invalid frame for FastNewRestArgumentsStub") \ 104 "Invalid frame for FastNewRestArgumentsStub") \
109 V(kInvalidFrameForFastNewSloppyArgumentsStub, \ 105 V(kInvalidFrameForFastNewSloppyArgumentsStub, \
110 "Invalid frame for FastNewSloppyArgumentsStub") \ 106 "Invalid frame for FastNewSloppyArgumentsStub") \
111 V(kInvalidFrameForFastNewStrictArgumentsStub, \ 107 V(kInvalidFrameForFastNewStrictArgumentsStub, \
112 "Invalid frame for FastNewStrictArgumentsStub") \ 108 "Invalid frame for FastNewStrictArgumentsStub") \
113 V(kInvalidFullCodegenState, "invalid full-codegen state") \ 109 V(kInvalidFullCodegenState, "invalid full-codegen state") \
114 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \ 110 V(kInvalidHandleScopeLevel, "Invalid HandleScope level") \
115 V(kInvalidJumpTableIndex, "Invalid jump table index") \ 111 V(kInvalidJumpTableIndex, "Invalid jump table index") \
116 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \ 112 V(kInvalidLeftHandSideInAssignment, "Invalid left-hand side in assignment") \
117 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \ 113 V(kInvalidLhsInCompoundAssignment, "Invalid lhs in compound assignment") \
118 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \ 114 V(kInvalidLhsInCountOperation, "Invalid lhs in count operation") \
119 V(kInvalidMinLength, "Invalid min_length") \ 115 V(kInvalidMinLength, "Invalid min_length") \
120 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \ 116 V(kInvalidRegisterFileInGenerator, "invalid register file in generator") \
121 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \ 117 V(kJSGlobalObjectNativeContextShouldBeANativeContext, \
122 "JSGlobalObject::native_context should be a native context") \ 118 "JSGlobalObject::native_context should be a native context") \
123 V(kJSGlobalProxyContextShouldNotBeNull, \ 119 V(kJSGlobalProxyContextShouldNotBeNull, \
124 "JSGlobalProxy::context() should not be null") \ 120 "JSGlobalProxy::context() should not be null") \
125 V(kJSObjectWithFastElementsMapHasSlowElements, \ 121 V(kJSObjectWithFastElementsMapHasSlowElements, \
126 "JSObject with fast elements map has slow elements") \ 122 "JSObject with fast elements map has slow elements") \
127 V(kLetBindingReInitialization, "Let binding re-initialization") \ 123 V(kLetBindingReInitialization, "Let binding re-initialization") \
128 V(kLiveBytesCountOverflowChunkSize, "Live Bytes Count overflow chunk size") \
129 V(kLiveEdit, "LiveEdit") \ 124 V(kLiveEdit, "LiveEdit") \
130 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \ 125 V(kLookupVariableInCountOperation, "Lookup variable in count operation") \
131 V(kMapBecameDeprecated, "Map became deprecated") \ 126 V(kMapBecameDeprecated, "Map became deprecated") \
132 V(kMapBecameUnstable, "Map became unstable") \ 127 V(kMapBecameUnstable, "Map became unstable") \
133 V(kNativeFunctionLiteral, "Native function literal") \ 128 V(kNativeFunctionLiteral, "Native function literal") \
134 V(kNeedSmiLiteral, "Need a Smi literal here") \ 129 V(kNeedSmiLiteral, "Need a Smi literal here") \
135 V(kNoCasesLeft, "No cases left") \ 130 V(kNoCasesLeft, "No cases left") \
136 V(kNonInitializerAssignmentToConst, "Non-initializer assignment to const") \ 131 V(kNonInitializerAssignmentToConst, "Non-initializer assignment to const") \
137 V(kNonSmiIndex, "Non-smi index") \ 132 V(kNonSmiIndex, "Non-smi index") \
138 V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \ 133 V(kNonSmiKeyInArrayLiteral, "Non-smi key in array literal") \
(...skipping 10 matching lines...) Expand all
149 V(kOperandIsANumber, "Operand is a number") \ 144 V(kOperandIsANumber, "Operand is a number") \
150 V(kOperandIsASmiAndNotABoundFunction, \ 145 V(kOperandIsASmiAndNotABoundFunction, \
151 "Operand is a smi and not a bound function") \ 146 "Operand is a smi and not a bound function") \
152 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \ 147 V(kOperandIsASmiAndNotAFunction, "Operand is a smi and not a function") \
153 V(kOperandIsASmiAndNotAGeneratorObject, \ 148 V(kOperandIsASmiAndNotAGeneratorObject, \
154 "Operand is a smi and not a generator object") \ 149 "Operand is a smi and not a generator object") \
155 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ 150 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \
156 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \ 151 V(kOperandIsASmiAndNotAReceiver, "Operand is a smi and not a receiver") \
157 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ 152 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \
158 V(kOperandIsASmi, "Operand is a smi") \ 153 V(kOperandIsASmi, "Operand is a smi") \
159 V(kOperandIsNotADate, "Operand is not a date") \
160 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \ 154 V(kOperandIsNotABoundFunction, "Operand is not a bound function") \
161 V(kOperandIsNotAFunction, "Operand is not a function") \ 155 V(kOperandIsNotAFunction, "Operand is not a function") \
162 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \ 156 V(kOperandIsNotAGeneratorObject, "Operand is not a generator object") \
163 V(kOperandIsNotAName, "Operand is not a name") \ 157 V(kOperandIsNotAName, "Operand is not a name") \
164 V(kOperandIsNotANumber, "Operand is not a number") \ 158 V(kOperandIsNotANumber, "Operand is not a number") \
165 V(kOperandIsNotAReceiver, "Operand is not a receiver") \ 159 V(kOperandIsNotAReceiver, "Operand is not a receiver") \
166 V(kOperandIsNotASmi, "Operand is not a smi") \ 160 V(kOperandIsNotASmi, "Operand is not a smi") \
167 V(kOperandIsNotAString, "Operand is not a string") \ 161 V(kOperandIsNotAString, "Operand is not a string") \
168 V(kOperandIsNotSmi, "Operand is not smi") \ 162 V(kOperandIsNotSmi, "Operand is not smi") \
169 V(kOperandNotANumber, "Operand not a number") \ 163 V(kOperandNotANumber, "Operand not a number") \
(...skipping 19 matching lines...) Expand all
189 V(kSloppyFunctionExpectsJSReceiverReceiver, \ 183 V(kSloppyFunctionExpectsJSReceiverReceiver, \
190 "Sloppy function expects JSReceiver as receiver.") \ 184 "Sloppy function expects JSReceiver as receiver.") \
191 V(kSmiAdditionOverflow, "Smi addition overflow") \ 185 V(kSmiAdditionOverflow, "Smi addition overflow") \
192 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \ 186 V(kSmiSubtractionOverflow, "Smi subtraction overflow") \
193 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \ 187 V(kStackAccessBelowStackPointer, "Stack access below stack pointer") \
194 V(kStackFrameTypesMustMatch, "Stack frame types must match") \ 188 V(kStackFrameTypesMustMatch, "Stack frame types must match") \
195 V(kSuperReference, "Super reference") \ 189 V(kSuperReference, "Super reference") \
196 V(kTailCall, "Tail call") \ 190 V(kTailCall, "Tail call") \
197 V(kTheCurrentStackPointerIsBelowCsp, \ 191 V(kTheCurrentStackPointerIsBelowCsp, \
198 "The current stack pointer is below csp") \ 192 "The current stack pointer is below csp") \
199 V(kTheSourceAndDestinationAreTheSame, \
200 "The source and destination are the same") \
201 V(kTheStackWasCorruptedByMacroAssemblerCall, \ 193 V(kTheStackWasCorruptedByMacroAssemblerCall, \
202 "The stack was corrupted by MacroAssembler::Call()") \ 194 "The stack was corrupted by MacroAssembler::Call()") \
203 V(kTooManyParametersLocals, "Too many parameters/locals") \ 195 V(kTooManyParametersLocals, "Too many parameters/locals") \
204 V(kTooManyParameters, "Too many parameters") \ 196 V(kTooManyParameters, "Too many parameters") \
205 V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \ 197 V(kTooManySpillSlotsNeededForOSR, "Too many spill slots needed for OSR") \
206 V(kToOperand32UnsupportedImmediate, "ToOperand32 unsupported immediate.") \ 198 V(kToOperand32UnsupportedImmediate, "ToOperand32 unsupported immediate.") \
207 V(kToOperandIsDoubleRegisterUnimplemented, \ 199 V(kToOperandIsDoubleRegisterUnimplemented, \
208 "ToOperand IsDoubleRegister unimplemented") \ 200 "ToOperand IsDoubleRegister unimplemented") \
209 V(kToOperandUnsupportedDoubleImmediate, \ 201 V(kToOperandUnsupportedDoubleImmediate, \
210 "ToOperand Unsupported double immediate") \ 202 "ToOperand Unsupported double immediate") \
(...skipping 21 matching lines...) Expand all
232 "Unexpected initial map for Array function (1)") \ 224 "Unexpected initial map for Array function (1)") \
233 V(kUnexpectedInitialMapForArrayFunction2, \ 225 V(kUnexpectedInitialMapForArrayFunction2, \
234 "Unexpected initial map for Array function (2)") \ 226 "Unexpected initial map for Array function (2)") \
235 V(kUnexpectedInitialMapForArrayFunction, \ 227 V(kUnexpectedInitialMapForArrayFunction, \
236 "Unexpected initial map for Array function") \ 228 "Unexpected initial map for Array function") \
237 V(kUnexpectedInitialMapForInternalArrayFunction, \ 229 V(kUnexpectedInitialMapForInternalArrayFunction, \
238 "Unexpected initial map for InternalArray function") \ 230 "Unexpected initial map for InternalArray function") \
239 V(kUnexpectedLevelAfterReturnFromApiCall, \ 231 V(kUnexpectedLevelAfterReturnFromApiCall, \
240 "Unexpected level after return from api call") \ 232 "Unexpected level after return from api call") \
241 V(kUnexpectedNegativeValue, "Unexpected negative value") \ 233 V(kUnexpectedNegativeValue, "Unexpected negative value") \
242 V(kUnexpectedNumberOfPreAllocatedPropertyFields, \
243 "Unexpected number of pre-allocated property fields") \
244 V(kUnexpectedFunctionIDForInvokeIntrinsic, \ 234 V(kUnexpectedFunctionIDForInvokeIntrinsic, \
245 "Unexpected runtime function id for the InvokeIntrinsic bytecode") \ 235 "Unexpected runtime function id for the InvokeIntrinsic bytecode") \
246 V(kUnexpectedFPCRMode, "Unexpected FPCR mode.") \ 236 V(kUnexpectedFPCRMode, "Unexpected FPCR mode.") \
247 V(kUnexpectedSmi, "Unexpected smi value") \ 237 V(kUnexpectedSmi, "Unexpected smi value") \
248 V(kUnexpectedStackDepth, "Unexpected operand stack depth in full-codegen") \ 238 V(kUnexpectedStackDepth, "Unexpected operand stack depth in full-codegen") \
249 V(kUnexpectedStackPointer, "The stack pointer is not the expected value") \ 239 V(kUnexpectedStackPointer, "The stack pointer is not the expected value") \
250 V(kUnexpectedStringType, "Unexpected string type") \ 240 V(kUnexpectedStringType, "Unexpected string type") \
251 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \ 241 V(kUnexpectedTypeForRegExpDataFixedArrayExpected, \
252 "Unexpected type for RegExp data, FixedArray expected") \ 242 "Unexpected type for RegExp data, FixedArray expected") \
253 V(kUnexpectedValue, "Unexpected value") \ 243 V(kUnexpectedValue, "Unexpected value") \
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 }; 277 };
288 #undef ERROR_MESSAGES_CONSTANTS 278 #undef ERROR_MESSAGES_CONSTANTS
289 279
290 280
291 const char* GetBailoutReason(BailoutReason reason); 281 const char* GetBailoutReason(BailoutReason reason);
292 282
293 } // namespace internal 283 } // namespace internal
294 } // namespace v8 284 } // namespace v8
295 285
296 #endif // V8_BAILOUT_REASON_H_ 286 #endif // V8_BAILOUT_REASON_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/interpreter/bytecode_expectations/Generators.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698