OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_DEOPTIMIZER_H_ | 5 #ifndef V8_DEOPTIMIZER_H_ |
6 #define V8_DEOPTIMIZER_H_ | 6 #define V8_DEOPTIMIZER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 300 |
301 virtual void VisitFunction(JSFunction* function) = 0; | 301 virtual void VisitFunction(JSFunction* function) = 0; |
302 | 302 |
303 // Function which is called after iteration of all optimized functions | 303 // Function which is called after iteration of all optimized functions |
304 // from given native context. | 304 // from given native context. |
305 virtual void LeaveContext(Context* context) = 0; | 305 virtual void LeaveContext(Context* context) = 0; |
306 }; | 306 }; |
307 | 307 |
308 | 308 |
309 #define DEOPT_MESSAGES_LIST(V) \ | 309 #define DEOPT_MESSAGES_LIST(V) \ |
| 310 V(kAccessCheck, "Access check needed") \ |
310 V(kNoReason, "no reason") \ | 311 V(kNoReason, "no reason") \ |
311 V(kConstantGlobalVariableAssignment, "Constant global variable assignment") \ | 312 V(kConstantGlobalVariableAssignment, "Constant global variable assignment") \ |
312 V(kConversionOverflow, "conversion overflow") \ | 313 V(kConversionOverflow, "conversion overflow") \ |
313 V(kDivisionByZero, "division by zero") \ | 314 V(kDivisionByZero, "division by zero") \ |
314 V(kElementsKindUnhandledInKeyedLoadGenericStub, \ | 315 V(kElementsKindUnhandledInKeyedLoadGenericStub, \ |
315 "ElementsKind unhandled in KeyedLoadGenericStub") \ | 316 "ElementsKind unhandled in KeyedLoadGenericStub") \ |
316 V(kExpectedHeapNumber, "Expected heap number") \ | 317 V(kExpectedHeapNumber, "Expected heap number") \ |
317 V(kExpectedSmi, "Expected smi") \ | 318 V(kExpectedSmi, "Expected smi") \ |
318 V(kForcedDeoptToRuntime, "Forced deopt to runtime") \ | 319 V(kForcedDeoptToRuntime, "Forced deopt to runtime") \ |
319 V(kHole, "hole") \ | 320 V(kHole, "hole") \ |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 Object** expression_stack_; | 1129 Object** expression_stack_; |
1129 int source_position_; | 1130 int source_position_; |
1130 | 1131 |
1131 friend class Deoptimizer; | 1132 friend class Deoptimizer; |
1132 }; | 1133 }; |
1133 | 1134 |
1134 } // namespace internal | 1135 } // namespace internal |
1135 } // namespace v8 | 1136 } // namespace v8 |
1136 | 1137 |
1137 #endif // V8_DEOPTIMIZER_H_ | 1138 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |