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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 FrameStateDescriptor* GetFrameStateDescriptor(Instruction* instr, | 89 FrameStateDescriptor* GetFrameStateDescriptor(Instruction* instr, |
90 size_t frame_state_offset); | 90 size_t frame_state_offset); |
91 int BuildTranslation(Instruction* instr, int pc_offset, | 91 int BuildTranslation(Instruction* instr, int pc_offset, |
92 size_t frame_state_offset, | 92 size_t frame_state_offset, |
93 OutputFrameStateCombine state_combine); | 93 OutputFrameStateCombine state_combine); |
94 void BuildTranslationForFrameStateDescriptor( | 94 void BuildTranslationForFrameStateDescriptor( |
95 FrameStateDescriptor* descriptor, Instruction* instr, | 95 FrameStateDescriptor* descriptor, Instruction* instr, |
96 Translation* translation, size_t frame_state_offset, | 96 Translation* translation, size_t frame_state_offset, |
97 OutputFrameStateCombine state_combine); | 97 OutputFrameStateCombine state_combine); |
98 void AddTranslationForOperand(Translation* translation, Instruction* instr, | 98 void AddTranslationForOperand(Translation* translation, Instruction* instr, |
99 InstructionOperand* op); | 99 InstructionOperand* op, MachineType type); |
100 void AddNopForSmiCodeInlining(); | 100 void AddNopForSmiCodeInlining(); |
101 void EnsureSpaceForLazyDeopt(); | 101 void EnsureSpaceForLazyDeopt(); |
102 void MarkLazyDeoptSite(); | 102 void MarkLazyDeoptSite(); |
103 | 103 |
104 // =========================================================================== | 104 // =========================================================================== |
105 struct DeoptimizationState : ZoneObject { | 105 struct DeoptimizationState : ZoneObject { |
106 public: | 106 public: |
107 BailoutId bailout_id() const { return bailout_id_; } | 107 BailoutId bailout_id() const { return bailout_id_; } |
108 int translation_id() const { return translation_id_; } | 108 int translation_id() const { return translation_id_; } |
109 int pc_offset() const { return pc_offset_; } | 109 int pc_offset() const { return pc_offset_; } |
(...skipping 19 matching lines...) Expand all Loading... |
129 ZoneDeque<Handle<Object> > deoptimization_literals_; | 129 ZoneDeque<Handle<Object> > deoptimization_literals_; |
130 TranslationBuffer translations_; | 130 TranslationBuffer translations_; |
131 int last_lazy_deopt_pc_; | 131 int last_lazy_deopt_pc_; |
132 }; | 132 }; |
133 | 133 |
134 } // namespace compiler | 134 } // namespace compiler |
135 } // namespace internal | 135 } // namespace internal |
136 } // namespace v8 | 136 } // namespace v8 |
137 | 137 |
138 #endif // V8_COMPILER_CODE_GENERATOR_H | 138 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |