| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 CodeGenResult AssembleDeoptimizerCall(int deoptimization_id, | 122 CodeGenResult AssembleDeoptimizerCall(int deoptimization_id, |
| 123 Deoptimizer::BailoutType bailout_type, | 123 Deoptimizer::BailoutType bailout_type, |
| 124 SourcePosition pos); | 124 SourcePosition pos); |
| 125 | 125 |
| 126 // Generates an architecture-specific, descriptor-specific prologue | 126 // Generates an architecture-specific, descriptor-specific prologue |
| 127 // to set up a stack frame. | 127 // to set up a stack frame. |
| 128 void AssembleConstructFrame(); | 128 void AssembleConstructFrame(); |
| 129 | 129 |
| 130 // Generates an architecture-specific, descriptor-specific return sequence | 130 // Generates an architecture-specific, descriptor-specific return sequence |
| 131 // to tear down a stack frame. | 131 // to tear down a stack frame. |
| 132 void AssembleReturn(); | 132 void AssembleReturn(InstructionOperand* pop); |
| 133 | 133 |
| 134 void AssembleDeconstructFrame(); | 134 void AssembleDeconstructFrame(); |
| 135 | 135 |
| 136 // Generates code to manipulate the stack in preparation for a tail call. | 136 // Generates code to manipulate the stack in preparation for a tail call. |
| 137 void AssemblePrepareTailCall(); | 137 void AssemblePrepareTailCall(); |
| 138 | 138 |
| 139 // Generates code to pop current frame if it is an arguments adaptor frame. | 139 // Generates code to pop current frame if it is an arguments adaptor frame. |
| 140 void AssemblePopArgumentsAdaptorFrame(Register args_reg, Register scratch1, | 140 void AssemblePopArgumentsAdaptorFrame(Register args_reg, Register scratch1, |
| 141 Register scratch2, Register scratch3); | 141 Register scratch2, Register scratch3); |
| 142 | 142 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 OutOfLineCode* ools_; | 280 OutOfLineCode* ools_; |
| 281 int osr_pc_offset_; | 281 int osr_pc_offset_; |
| 282 SourcePositionTableBuilder source_position_table_builder_; | 282 SourcePositionTableBuilder source_position_table_builder_; |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 } // namespace compiler | 285 } // namespace compiler |
| 286 } // namespace internal | 286 } // namespace internal |
| 287 } // namespace v8 | 287 } // namespace v8 |
| 288 | 288 |
| 289 #endif // V8_COMPILER_CODE_GENERATOR_H | 289 #endif // V8_COMPILER_CODE_GENERATOR_H |
| OLD | NEW |