| 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/compiler/unwinding-info-writer.h" | 10 #include "src/compiler/unwinding-info-writer.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 DeoptimizationEntry const& GetDeoptimizationEntry(Instruction* instr, | 211 DeoptimizationEntry const& GetDeoptimizationEntry(Instruction* instr, |
| 212 size_t frame_state_offset); | 212 size_t frame_state_offset); |
| 213 DeoptimizeReason GetDeoptimizationReason(int deoptimization_id) const; | 213 DeoptimizeReason GetDeoptimizationReason(int deoptimization_id) const; |
| 214 int BuildTranslation(Instruction* instr, int pc_offset, | 214 int BuildTranslation(Instruction* instr, int pc_offset, |
| 215 size_t frame_state_offset, | 215 size_t frame_state_offset, |
| 216 OutputFrameStateCombine state_combine); | 216 OutputFrameStateCombine state_combine); |
| 217 void BuildTranslationForFrameStateDescriptor( | 217 void BuildTranslationForFrameStateDescriptor( |
| 218 FrameStateDescriptor* descriptor, InstructionOperandIterator* iter, | 218 FrameStateDescriptor* descriptor, InstructionOperandIterator* iter, |
| 219 Translation* translation, OutputFrameStateCombine state_combine); | 219 Translation* translation, OutputFrameStateCombine state_combine); |
| 220 void TranslateStateValueDescriptor(StateValueDescriptor* desc, | 220 void TranslateStateValueDescriptor(StateValueDescriptor* desc, |
| 221 StateValueList* nested, |
| 221 Translation* translation, | 222 Translation* translation, |
| 222 InstructionOperandIterator* iter); | 223 InstructionOperandIterator* iter); |
| 223 void TranslateFrameStateDescriptorOperands(FrameStateDescriptor* desc, | 224 void TranslateFrameStateDescriptorOperands(FrameStateDescriptor* desc, |
| 224 InstructionOperandIterator* iter, | 225 InstructionOperandIterator* iter, |
| 225 OutputFrameStateCombine combine, | 226 OutputFrameStateCombine combine, |
| 226 Translation* translation); | 227 Translation* translation); |
| 227 void AddTranslationForOperand(Translation* translation, Instruction* instr, | 228 void AddTranslationForOperand(Translation* translation, Instruction* instr, |
| 228 InstructionOperand* op, MachineType type); | 229 InstructionOperand* op, MachineType type); |
| 229 void EnsureSpaceForLazyDeopt(); | 230 void EnsureSpaceForLazyDeopt(); |
| 230 void MarkLazyDeoptSite(); | 231 void MarkLazyDeoptSite(); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 ZoneVector<HandlerInfo> handlers_; | 278 ZoneVector<HandlerInfo> handlers_; |
| 278 ZoneDeque<DeoptimizationExit*> deoptimization_exits_; | 279 ZoneDeque<DeoptimizationExit*> deoptimization_exits_; |
| 279 ZoneDeque<DeoptimizationState*> deoptimization_states_; | 280 ZoneDeque<DeoptimizationState*> deoptimization_states_; |
| 280 ZoneDeque<Handle<Object>> deoptimization_literals_; | 281 ZoneDeque<Handle<Object>> deoptimization_literals_; |
| 281 size_t inlined_function_count_; | 282 size_t inlined_function_count_; |
| 282 TranslationBuffer translations_; | 283 TranslationBuffer translations_; |
| 283 int last_lazy_deopt_pc_; | 284 int last_lazy_deopt_pc_; |
| 284 JumpTable* jump_tables_; | 285 JumpTable* jump_tables_; |
| 285 OutOfLineCode* ools_; | 286 OutOfLineCode* ools_; |
| 286 int osr_pc_offset_; | 287 int osr_pc_offset_; |
| 288 int optimized_out_literal_id_; |
| 287 SourcePositionTableBuilder source_position_table_builder_; | 289 SourcePositionTableBuilder source_position_table_builder_; |
| 288 ZoneVector<trap_handler::ProtectedInstructionData>* protected_instructions_; | 290 ZoneVector<trap_handler::ProtectedInstructionData>* protected_instructions_; |
| 289 }; | 291 }; |
| 290 | 292 |
| 291 } // namespace compiler | 293 } // namespace compiler |
| 292 } // namespace internal | 294 } // namespace internal |
| 293 } // namespace v8 | 295 } // namespace v8 |
| 294 | 296 |
| 295 #endif // V8_COMPILER_CODE_GENERATOR_H | 297 #endif // V8_COMPILER_CODE_GENERATOR_H |
| OLD | NEW |