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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void AssembleGaps(Instruction* instr); | 73 void AssembleGaps(Instruction* instr); |
74 | 74 |
75 // =========================================================================== | 75 // =========================================================================== |
76 // ============= Architecture-specific code generation methods. ============== | 76 // ============= Architecture-specific code generation methods. ============== |
77 // =========================================================================== | 77 // =========================================================================== |
78 | 78 |
79 void AssembleArchInstruction(Instruction* instr); | 79 void AssembleArchInstruction(Instruction* instr); |
80 void AssembleArchJump(RpoNumber target); | 80 void AssembleArchJump(RpoNumber target); |
81 void AssembleArchBranch(Instruction* instr, BranchInfo* branch); | 81 void AssembleArchBranch(Instruction* instr, BranchInfo* branch); |
82 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); | 82 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); |
| 83 void AssembleArchSelect(Instruction* instr, FlagsCondition condition); |
83 void AssembleArchLookupSwitch(Instruction* instr); | 84 void AssembleArchLookupSwitch(Instruction* instr); |
84 void AssembleArchTableSwitch(Instruction* instr); | 85 void AssembleArchTableSwitch(Instruction* instr); |
85 | 86 |
86 void AssembleDeoptimizerCall(int deoptimization_id, | 87 void AssembleDeoptimizerCall(int deoptimization_id, |
87 Deoptimizer::BailoutType bailout_type); | 88 Deoptimizer::BailoutType bailout_type); |
88 | 89 |
89 // Generates an architecture-specific, descriptor-specific prologue | 90 // Generates an architecture-specific, descriptor-specific prologue |
90 // to set up a stack frame. | 91 // to set up a stack frame. |
91 void AssemblePrologue(); | 92 void AssemblePrologue(); |
92 // Generates an architecture-specific, descriptor-specific return sequence | 93 // Generates an architecture-specific, descriptor-specific return sequence |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 OutOfLineCode* ools_; | 189 OutOfLineCode* ools_; |
189 int osr_pc_offset_; | 190 int osr_pc_offset_; |
190 bool needs_frame_; | 191 bool needs_frame_; |
191 }; | 192 }; |
192 | 193 |
193 } // namespace compiler | 194 } // namespace compiler |
194 } // namespace internal | 195 } // namespace internal |
195 } // namespace v8 | 196 } // namespace v8 |
196 | 197 |
197 #endif // V8_COMPILER_CODE_GENERATOR_H | 198 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |