| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 unsigned node_id, | 214 unsigned node_id, |
| 215 SharedFunctionInfo* shared); | 215 SharedFunctionInfo* shared); |
| 216 | 216 |
| 217 // Code generation support. | 217 // Code generation support. |
| 218 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } | 218 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } |
| 219 static int output_count_offset() { | 219 static int output_count_offset() { |
| 220 return OFFSET_OF(Deoptimizer, output_count_); | 220 return OFFSET_OF(Deoptimizer, output_count_); |
| 221 } | 221 } |
| 222 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } | 222 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } |
| 223 | 223 |
| 224 static int has_alignment_padding_offset() { |
| 225 return OFFSET_OF(Deoptimizer, has_alignment_padding_); |
| 226 } |
| 227 |
| 224 static int GetDeoptimizedCodeCount(Isolate* isolate); | 228 static int GetDeoptimizedCodeCount(Isolate* isolate); |
| 225 | 229 |
| 226 static const int kNotDeoptimizationEntry = -1; | 230 static const int kNotDeoptimizationEntry = -1; |
| 227 | 231 |
| 228 // Generators for the deoptimization entry code. | 232 // Generators for the deoptimization entry code. |
| 229 class EntryGenerator BASE_EMBEDDED { | 233 class EntryGenerator BASE_EMBEDDED { |
| 230 public: | 234 public: |
| 231 EntryGenerator(MacroAssembler* masm, BailoutType type) | 235 EntryGenerator(MacroAssembler* masm, BailoutType type) |
| 232 : masm_(masm), type_(type) { } | 236 : masm_(masm), type_(type) { } |
| 233 virtual ~EntryGenerator() { } | 237 virtual ~EntryGenerator() { } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // deoptimizations the input frame is filled in generated code. | 319 // deoptimizations the input frame is filled in generated code. |
| 316 void FillInputFrame(Address tos, JavaScriptFrame* frame); | 320 void FillInputFrame(Address tos, JavaScriptFrame* frame); |
| 317 | 321 |
| 318 Isolate* isolate_; | 322 Isolate* isolate_; |
| 319 JSFunction* function_; | 323 JSFunction* function_; |
| 320 Code* optimized_code_; | 324 Code* optimized_code_; |
| 321 unsigned bailout_id_; | 325 unsigned bailout_id_; |
| 322 BailoutType bailout_type_; | 326 BailoutType bailout_type_; |
| 323 Address from_; | 327 Address from_; |
| 324 int fp_to_sp_delta_; | 328 int fp_to_sp_delta_; |
| 329 int has_alignment_padding_; |
| 325 | 330 |
| 326 // Input frame description. | 331 // Input frame description. |
| 327 FrameDescription* input_; | 332 FrameDescription* input_; |
| 328 // Number of output frames. | 333 // Number of output frames. |
| 329 int output_count_; | 334 int output_count_; |
| 330 // Number of output js frames. | 335 // Number of output js frames. |
| 331 int jsframe_count_; | 336 int jsframe_count_; |
| 332 // Array of output frame descriptions. | 337 // Array of output frame descriptions. |
| 333 FrameDescription** output_; | 338 FrameDescription** output_; |
| 334 | 339 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 Object** expression_stack_; | 786 Object** expression_stack_; |
| 782 int source_position_; | 787 int source_position_; |
| 783 | 788 |
| 784 friend class Deoptimizer; | 789 friend class Deoptimizer; |
| 785 }; | 790 }; |
| 786 #endif | 791 #endif |
| 787 | 792 |
| 788 } } // namespace v8::internal | 793 } } // namespace v8::internal |
| 789 | 794 |
| 790 #endif // V8_DEOPTIMIZER_H_ | 795 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |