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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 struct DeoptInfo { | 186 struct DeoptInfo { |
187 DeoptInfo(SourcePosition position, const char* m, DeoptReason d) | 187 DeoptInfo(SourcePosition position, const char* m, DeoptReason d) |
188 : position(position), mnemonic(m), deopt_reason(d) {} | 188 : position(position), mnemonic(m), deopt_reason(d) {} |
189 | 189 |
190 SourcePosition position; | 190 SourcePosition position; |
191 const char* mnemonic; | 191 const char* mnemonic; |
192 DeoptReason deopt_reason; | 192 DeoptReason deopt_reason; |
193 }; | 193 }; |
194 | 194 |
195 static DeoptInfo GetDeoptInfo(Code* code, int bailout_id); | 195 static DeoptInfo GetDeoptInfo(Code* code, byte* from); |
196 | 196 |
197 struct JumpTableEntry : public ZoneObject { | 197 struct JumpTableEntry : public ZoneObject { |
198 inline JumpTableEntry(Address entry, const DeoptInfo& deopt_info, | 198 inline JumpTableEntry(Address entry, const DeoptInfo& deopt_info, |
199 Deoptimizer::BailoutType type, bool frame) | 199 Deoptimizer::BailoutType type, bool frame) |
200 : label(), | 200 : label(), |
201 address(entry), | 201 address(entry), |
202 deopt_info(deopt_info), | 202 deopt_info(deopt_info), |
203 bailout_type(type), | 203 bailout_type(type), |
204 needs_frame(frame) {} | 204 needs_frame(frame) {} |
205 | 205 |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 Object** parameters_; | 1057 Object** parameters_; |
1058 Object** expression_stack_; | 1058 Object** expression_stack_; |
1059 int source_position_; | 1059 int source_position_; |
1060 | 1060 |
1061 friend class Deoptimizer; | 1061 friend class Deoptimizer; |
1062 }; | 1062 }; |
1063 | 1063 |
1064 } } // namespace v8::internal | 1064 } } // namespace v8::internal |
1065 | 1065 |
1066 #endif // V8_DEOPTIMIZER_H_ | 1066 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |