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 "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/instruction.h" | 9 #include "src/compiler/instruction.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 size_t frame_state_offset, | 102 size_t frame_state_offset, |
103 OutputFrameStateCombine state_combine); | 103 OutputFrameStateCombine state_combine); |
104 void BuildTranslationForFrameStateDescriptor( | 104 void BuildTranslationForFrameStateDescriptor( |
105 FrameStateDescriptor* descriptor, Instruction* instr, | 105 FrameStateDescriptor* descriptor, Instruction* instr, |
106 Translation* translation, size_t frame_state_offset, | 106 Translation* translation, size_t frame_state_offset, |
107 OutputFrameStateCombine state_combine); | 107 OutputFrameStateCombine state_combine); |
108 void AddTranslationForOperand(Translation* translation, Instruction* instr, | 108 void AddTranslationForOperand(Translation* translation, Instruction* instr, |
109 InstructionOperand* op, MachineType type); | 109 InstructionOperand* op, MachineType type); |
110 void AddNopForSmiCodeInlining(); | 110 void AddNopForSmiCodeInlining(); |
111 void EnsureSpaceForLazyDeopt(); | 111 void EnsureSpaceForLazyDeopt(); |
| 112 void EnsureRelocSpaceForLazyDeopt(Handle<Code> code); |
112 void MarkLazyDeoptSite(); | 113 void MarkLazyDeoptSite(); |
113 | 114 |
114 // =========================================================================== | 115 // =========================================================================== |
115 struct DeoptimizationState : ZoneObject { | 116 struct DeoptimizationState : ZoneObject { |
116 public: | 117 public: |
117 BailoutId bailout_id() const { return bailout_id_; } | 118 BailoutId bailout_id() const { return bailout_id_; } |
118 int translation_id() const { return translation_id_; } | 119 int translation_id() const { return translation_id_; } |
119 int pc_offset() const { return pc_offset_; } | 120 int pc_offset() const { return pc_offset_; } |
120 | 121 |
121 DeoptimizationState(BailoutId bailout_id, int translation_id, int pc_offset) | 122 DeoptimizationState(BailoutId bailout_id, int translation_id, int pc_offset) |
(...skipping 24 matching lines...) Expand all Loading... |
146 TranslationBuffer translations_; | 147 TranslationBuffer translations_; |
147 int last_lazy_deopt_pc_; | 148 int last_lazy_deopt_pc_; |
148 OutOfLineCode* ools_; | 149 OutOfLineCode* ools_; |
149 }; | 150 }; |
150 | 151 |
151 } // namespace compiler | 152 } // namespace compiler |
152 } // namespace internal | 153 } // namespace internal |
153 } // namespace v8 | 154 } // namespace v8 |
154 | 155 |
155 #endif // V8_COMPILER_CODE_GENERATOR_H | 156 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |