OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_CODE_GENERATOR_H_ | 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_ |
6 #define V8_COMPILER_CODE_GENERATOR_H_ | 6 #define V8_COMPILER_CODE_GENERATOR_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // =========================================================================== | 82 // =========================================================================== |
83 // Deoptimization table construction | 83 // Deoptimization table construction |
84 void AddSafepointAndDeopt(Instruction* instr); | 84 void AddSafepointAndDeopt(Instruction* instr); |
85 void UpdateSafepointsWithDeoptimizationPc(); | 85 void UpdateSafepointsWithDeoptimizationPc(); |
86 void RecordLazyDeoptimizationEntry(Instruction* instr, | 86 void RecordLazyDeoptimizationEntry(Instruction* instr, |
87 Safepoint::Id safepoint_id); | 87 Safepoint::Id safepoint_id); |
88 void PopulateDeoptimizationData(Handle<Code> code); | 88 void PopulateDeoptimizationData(Handle<Code> code); |
89 int DefineDeoptimizationLiteral(Handle<Object> literal); | 89 int DefineDeoptimizationLiteral(Handle<Object> literal); |
90 int BuildTranslation(Instruction* instr, int frame_state_offset); | 90 int BuildTranslation(Instruction* instr, int frame_state_offset); |
| 91 void BuildTranslationForFrameStateDescriptor(FrameStateDescriptor* descriptor, |
| 92 Instruction* instr, |
| 93 Translation* translation, |
| 94 int frame_state_offset); |
91 void AddTranslationForOperand(Translation* translation, Instruction* instr, | 95 void AddTranslationForOperand(Translation* translation, Instruction* instr, |
92 InstructionOperand* op); | 96 InstructionOperand* op); |
93 void AddNopForSmiCodeInlining(); | 97 void AddNopForSmiCodeInlining(); |
94 // =========================================================================== | 98 // =========================================================================== |
95 | 99 |
96 class LazyDeoptimizationEntry V8_FINAL { | 100 class LazyDeoptimizationEntry V8_FINAL { |
97 public: | 101 public: |
98 LazyDeoptimizationEntry(int position_after_call, Label* continuation, | 102 LazyDeoptimizationEntry(int position_after_call, Label* continuation, |
99 Label* deoptimization, Safepoint::Id safepoint_id) | 103 Label* deoptimization, Safepoint::Id safepoint_id) |
100 : position_after_call_(position_after_call), | 104 : position_after_call_(position_after_call), |
(...skipping 30 matching lines...) Expand all Loading... |
131 ZoneDeque<DeoptimizationState*> deoptimization_states_; | 135 ZoneDeque<DeoptimizationState*> deoptimization_states_; |
132 ZoneDeque<Handle<Object> > deoptimization_literals_; | 136 ZoneDeque<Handle<Object> > deoptimization_literals_; |
133 TranslationBuffer translations_; | 137 TranslationBuffer translations_; |
134 }; | 138 }; |
135 | 139 |
136 } // namespace compiler | 140 } // namespace compiler |
137 } // namespace internal | 141 } // namespace internal |
138 } // namespace v8 | 142 } // namespace v8 |
139 | 143 |
140 #endif // V8_COMPILER_CODE_GENERATOR_H | 144 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |