| 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 "v8.h" | 8 #include "v8.h" |
| 9 | 9 |
| 10 #include "allocation.h" | 10 #include "allocation.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 | 206 |
| 207 static Address GetDeoptimizationEntry( | 207 static Address GetDeoptimizationEntry( |
| 208 Isolate* isolate, | 208 Isolate* isolate, |
| 209 int id, | 209 int id, |
| 210 BailoutType type, | 210 BailoutType type, |
| 211 GetEntryMode mode = ENSURE_ENTRY_CODE); | 211 GetEntryMode mode = ENSURE_ENTRY_CODE); |
| 212 static int GetDeoptimizationId(Isolate* isolate, | 212 static int GetDeoptimizationId(Isolate* isolate, |
| 213 Address addr, | 213 Address addr, |
| 214 BailoutType type); | 214 BailoutType type); |
| 215 static int GetOutputInfoIndex(DeoptimizationOutputData* data, |
| 216 BailoutId node_id, |
| 217 SharedFunctionInfo* shared); |
| 215 static int GetOutputInfo(DeoptimizationOutputData* data, | 218 static int GetOutputInfo(DeoptimizationOutputData* data, |
| 216 BailoutId node_id, | 219 BailoutId node_id, |
| 217 SharedFunctionInfo* shared); | 220 SharedFunctionInfo* shared); |
| 221 #if defined(COMPARE_OPT_STACK_HEIGHT) |
| 222 static int GetOutputInfoStackHeight( |
| 223 DeoptimizationOutputData* data, |
| 224 BailoutId node_id, |
| 225 SharedFunctionInfo* shared); |
| 226 #endif |
| 218 | 227 |
| 219 // Code generation support. | 228 // Code generation support. |
| 220 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } | 229 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } |
| 221 static int output_count_offset() { | 230 static int output_count_offset() { |
| 222 return OFFSET_OF(Deoptimizer, output_count_); | 231 return OFFSET_OF(Deoptimizer, output_count_); |
| 223 } | 232 } |
| 224 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } | 233 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } |
| 225 | 234 |
| 226 static int has_alignment_padding_offset() { | 235 static int has_alignment_padding_offset() { |
| 227 return OFFSET_OF(Deoptimizer, has_alignment_padding_); | 236 return OFFSET_OF(Deoptimizer, has_alignment_padding_); |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 Object** parameters_; | 971 Object** parameters_; |
| 963 Object** expression_stack_; | 972 Object** expression_stack_; |
| 964 int source_position_; | 973 int source_position_; |
| 965 | 974 |
| 966 friend class Deoptimizer; | 975 friend class Deoptimizer; |
| 967 }; | 976 }; |
| 968 | 977 |
| 969 } } // namespace v8::internal | 978 } } // namespace v8::internal |
| 970 | 979 |
| 971 #endif // V8_DEOPTIMIZER_H_ | 980 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |