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/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 BailoutType type, | 585 BailoutType type, |
586 unsigned bailout_id, | 586 unsigned bailout_id, |
587 Address from, | 587 Address from, |
588 int fp_to_sp_delta, | 588 int fp_to_sp_delta, |
589 Code* optimized_code); | 589 Code* optimized_code); |
590 Code* FindOptimizedCode(JSFunction* function, Code* optimized_code); | 590 Code* FindOptimizedCode(JSFunction* function, Code* optimized_code); |
591 void PrintFunctionName(); | 591 void PrintFunctionName(); |
592 void DeleteFrameDescriptions(); | 592 void DeleteFrameDescriptions(); |
593 | 593 |
594 void DoComputeOutputFrames(); | 594 void DoComputeOutputFrames(); |
595 void DoComputeJSFrame(int frame_index); | 595 void DoComputeJSFrame(int frame_index, bool goto_catch_handler); |
596 void DoComputeInterpretedFrame(int frame_index); | 596 void DoComputeInterpretedFrame(int frame_index, bool goto_catch_handler); |
597 void DoComputeArgumentsAdaptorFrame(int frame_index); | 597 void DoComputeArgumentsAdaptorFrame(int frame_index); |
598 void DoComputeConstructStubFrame(int frame_index); | 598 void DoComputeConstructStubFrame(int frame_index); |
599 void DoComputeAccessorStubFrame(int frame_index, bool is_setter_stub_frame); | 599 void DoComputeAccessorStubFrame(int frame_index, bool is_setter_stub_frame); |
600 void DoComputeCompiledStubFrame(int frame_index); | 600 void DoComputeCompiledStubFrame(int frame_index); |
601 | 601 |
602 void WriteTranslatedValueToOutput( | 602 void WriteTranslatedValueToOutput( |
603 TranslatedFrame::iterator* iterator, int* input_index, int frame_index, | 603 TranslatedFrame::iterator* iterator, int* input_index, int frame_index, |
604 unsigned output_offset, const char* debug_hint_string = nullptr, | 604 unsigned output_offset, const char* debug_hint_string = nullptr, |
605 Address output_address_for_materialization = nullptr); | 605 Address output_address_for_materialization = nullptr); |
606 void WriteValueToOutput(Object* value, int input_index, int frame_index, | 606 void WriteValueToOutput(Object* value, int input_index, int frame_index, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 bool HasAlignmentPadding(JSFunction* function); | 659 bool HasAlignmentPadding(JSFunction* function); |
660 | 660 |
661 Isolate* isolate_; | 661 Isolate* isolate_; |
662 JSFunction* function_; | 662 JSFunction* function_; |
663 Code* compiled_code_; | 663 Code* compiled_code_; |
664 unsigned bailout_id_; | 664 unsigned bailout_id_; |
665 BailoutType bailout_type_; | 665 BailoutType bailout_type_; |
666 Address from_; | 666 Address from_; |
667 int fp_to_sp_delta_; | 667 int fp_to_sp_delta_; |
668 int has_alignment_padding_; | 668 int has_alignment_padding_; |
| 669 bool deoptimizing_throw_; |
| 670 int catch_handler_data_; |
| 671 int catch_handler_pc_offset_; |
669 | 672 |
670 // Input frame description. | 673 // Input frame description. |
671 FrameDescription* input_; | 674 FrameDescription* input_; |
672 // Number of output frames. | 675 // Number of output frames. |
673 int output_count_; | 676 int output_count_; |
674 // Number of output js frames. | 677 // Number of output js frames. |
675 int jsframe_count_; | 678 int jsframe_count_; |
676 // Array of output frame descriptions. | 679 // Array of output frame descriptions. |
677 FrameDescription** output_; | 680 FrameDescription** output_; |
678 | 681 |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 Object** expression_stack_; | 1141 Object** expression_stack_; |
1139 int source_position_; | 1142 int source_position_; |
1140 | 1143 |
1141 friend class Deoptimizer; | 1144 friend class Deoptimizer; |
1142 }; | 1145 }; |
1143 | 1146 |
1144 } // namespace internal | 1147 } // namespace internal |
1145 } // namespace v8 | 1148 } // namespace v8 |
1146 | 1149 |
1147 #endif // V8_DEOPTIMIZER_H_ | 1150 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |