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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 LAZY, | 95 LAZY, |
96 SOFT, | 96 SOFT, |
97 // This last bailout type is not really a bailout, but used by the | 97 // This last bailout type is not really a bailout, but used by the |
98 // debugger to deoptimize stack frames to allow inspection. | 98 // debugger to deoptimize stack frames to allow inspection. |
99 DEBUGGER | 99 DEBUGGER |
100 }; | 100 }; |
101 | 101 |
102 static const int kBailoutTypesWithCodeEntry = SOFT + 1; | 102 static const int kBailoutTypesWithCodeEntry = SOFT + 1; |
103 | 103 |
104 struct Reason { | 104 struct Reason { |
105 Reason(const char* m, const char* d) : mnemonic(m), detail(d) {} | 105 Reason(int r, const char* m, const char* d) |
| 106 : raw_position(r), mnemonic(m), detail(d) {} |
| 107 int raw_position; |
106 const char* mnemonic; | 108 const char* mnemonic; |
107 const char* detail; | 109 const char* detail; |
108 }; | 110 }; |
109 | 111 |
110 struct JumpTableEntry : public ZoneObject { | 112 struct JumpTableEntry : public ZoneObject { |
111 inline JumpTableEntry(Address entry, const Reason& the_reason, | 113 inline JumpTableEntry(Address entry, const Reason& the_reason, |
112 Deoptimizer::BailoutType type, bool frame) | 114 Deoptimizer::BailoutType type, bool frame) |
113 : label(), | 115 : label(), |
114 address(entry), | 116 address(entry), |
115 reason(the_reason), | 117 reason(the_reason), |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 Object** parameters_; | 965 Object** parameters_; |
964 Object** expression_stack_; | 966 Object** expression_stack_; |
965 int source_position_; | 967 int source_position_; |
966 | 968 |
967 friend class Deoptimizer; | 969 friend class Deoptimizer; |
968 }; | 970 }; |
969 | 971 |
970 } } // namespace v8::internal | 972 } } // namespace v8::internal |
971 | 973 |
972 #endif // V8_DEOPTIMIZER_H_ | 974 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |