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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // =========================================================================== | 116 // =========================================================================== |
117 | 117 |
118 CodeGenResult AssembleArchInstruction(Instruction* instr); | 118 CodeGenResult AssembleArchInstruction(Instruction* instr); |
119 void AssembleArchJump(RpoNumber target); | 119 void AssembleArchJump(RpoNumber target); |
120 void AssembleArchBranch(Instruction* instr, BranchInfo* branch); | 120 void AssembleArchBranch(Instruction* instr, BranchInfo* branch); |
121 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); | 121 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); |
122 void AssembleArchLookupSwitch(Instruction* instr); | 122 void AssembleArchLookupSwitch(Instruction* instr); |
123 void AssembleArchTableSwitch(Instruction* instr); | 123 void AssembleArchTableSwitch(Instruction* instr); |
124 | 124 |
125 CodeGenResult AssembleDeoptimizerCall(int deoptimization_id, | 125 CodeGenResult AssembleDeoptimizerCall(int deoptimization_id, |
126 Deoptimizer::BailoutType bailout_type); | 126 Deoptimizer::BailoutType bailout_type, |
| 127 SourcePosition pos); |
127 | 128 |
128 // Generates an architecture-specific, descriptor-specific prologue | 129 // Generates an architecture-specific, descriptor-specific prologue |
129 // to set up a stack frame. | 130 // to set up a stack frame. |
130 void AssembleConstructFrame(); | 131 void AssembleConstructFrame(); |
131 | 132 |
132 // Generates an architecture-specific, descriptor-specific return sequence | 133 // Generates an architecture-specific, descriptor-specific return sequence |
133 // to tear down a stack frame. | 134 // to tear down a stack frame. |
134 void AssembleReturn(); | 135 void AssembleReturn(); |
135 | 136 |
136 void AssembleDeconstructFrame(); | 137 void AssembleDeconstructFrame(); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 OutOfLineCode* ools_; | 283 OutOfLineCode* ools_; |
283 int osr_pc_offset_; | 284 int osr_pc_offset_; |
284 SourcePositionTableBuilder source_position_table_builder_; | 285 SourcePositionTableBuilder source_position_table_builder_; |
285 }; | 286 }; |
286 | 287 |
287 } // namespace compiler | 288 } // namespace compiler |
288 } // namespace internal | 289 } // namespace internal |
289 } // namespace v8 | 290 } // namespace v8 |
290 | 291 |
291 #endif // V8_COMPILER_CODE_GENERATOR_H | 292 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |