| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // ============= Architecture-specific code generation methods. ============== | 67 // ============= Architecture-specific code generation methods. ============== |
| 68 // =========================================================================== | 68 // =========================================================================== |
| 69 | 69 |
| 70 void AssembleArchInstruction(Instruction* instr); | 70 void AssembleArchInstruction(Instruction* instr); |
| 71 void AssembleArchJump(RpoNumber target); | 71 void AssembleArchJump(RpoNumber target); |
| 72 void AssembleArchBranch(Instruction* instr, BranchInfo* branch); | 72 void AssembleArchBranch(Instruction* instr, BranchInfo* branch); |
| 73 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); | 73 void AssembleArchBoolean(Instruction* instr, FlagsCondition condition); |
| 74 void AssembleArchLookupSwitch(Instruction* instr); | 74 void AssembleArchLookupSwitch(Instruction* instr); |
| 75 void AssembleArchTableSwitch(Instruction* instr); | 75 void AssembleArchTableSwitch(Instruction* instr); |
| 76 | 76 |
| 77 void AssembleDeoptimizerCall(int deoptimization_id); | 77 void AssembleDeoptimizerCall(int deoptimization_id, |
| 78 Deoptimizer::BailoutType bailout_type); |
| 78 | 79 |
| 79 // Generates an architecture-specific, descriptor-specific prologue | 80 // Generates an architecture-specific, descriptor-specific prologue |
| 80 // to set up a stack frame. | 81 // to set up a stack frame. |
| 81 void AssemblePrologue(); | 82 void AssemblePrologue(); |
| 82 // Generates an architecture-specific, descriptor-specific return sequence | 83 // Generates an architecture-specific, descriptor-specific return sequence |
| 83 // to tear down a stack frame. | 84 // to tear down a stack frame. |
| 84 void AssembleReturn(); | 85 void AssembleReturn(); |
| 85 | 86 |
| 86 // =========================================================================== | 87 // =========================================================================== |
| 87 // ============== Architecture-specific gap resolver methods. ================ | 88 // ============== Architecture-specific gap resolver methods. ================ |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 JumpTable* jump_tables_; | 172 JumpTable* jump_tables_; |
| 172 OutOfLineCode* ools_; | 173 OutOfLineCode* ools_; |
| 173 int osr_pc_offset_; | 174 int osr_pc_offset_; |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 } // namespace compiler | 177 } // namespace compiler |
| 177 } // namespace internal | 178 } // namespace internal |
| 178 } // namespace v8 | 179 } // namespace v8 |
| 179 | 180 |
| 180 #endif // V8_COMPILER_CODE_GENERATOR_H | 181 #endif // V8_COMPILER_CODE_GENERATOR_H |
| OLD | NEW |