| 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 JumpTableEntry : public ZoneObject { | 104 struct JumpTableEntry : public ZoneObject { |
| 105 inline JumpTableEntry(Address entry, | 105 inline JumpTableEntry(Address entry, const char* the_mnemonic, |
| 106 Deoptimizer::BailoutType type, | 106 const char* the_reason, Deoptimizer::BailoutType type, |
| 107 bool frame) | 107 bool frame) |
| 108 : label(), | 108 : label(), |
| 109 address(entry), | 109 address(entry), |
| 110 mnemonic(the_mnemonic), |
| 111 reason(the_reason), |
| 110 bailout_type(type), | 112 bailout_type(type), |
| 111 needs_frame(frame) { } | 113 needs_frame(frame) {} |
| 112 Label label; | 114 Label label; |
| 113 Address address; | 115 Address address; |
| 116 const char* mnemonic; |
| 117 const char* reason; |
| 114 Deoptimizer::BailoutType bailout_type; | 118 Deoptimizer::BailoutType bailout_type; |
| 115 bool needs_frame; | 119 bool needs_frame; |
| 116 }; | 120 }; |
| 117 | 121 |
| 118 static bool TraceEnabledFor(BailoutType deopt_type, | 122 static bool TraceEnabledFor(BailoutType deopt_type, |
| 119 StackFrame::Type frame_type); | 123 StackFrame::Type frame_type); |
| 120 static const char* MessageFor(BailoutType type); | 124 static const char* MessageFor(BailoutType type); |
| 121 | 125 |
| 122 int output_count() const { return output_count_; } | 126 int output_count() const { return output_count_; } |
| 123 | 127 |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 Object** parameters_; | 960 Object** parameters_; |
| 957 Object** expression_stack_; | 961 Object** expression_stack_; |
| 958 int source_position_; | 962 int source_position_; |
| 959 | 963 |
| 960 friend class Deoptimizer; | 964 friend class Deoptimizer; |
| 961 }; | 965 }; |
| 962 | 966 |
| 963 } } // namespace v8::internal | 967 } } // namespace v8::internal |
| 964 | 968 |
| 965 #endif // V8_DEOPTIMIZER_H_ | 969 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |