| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 Translation* translation, OutputFrameStateCombine state_combine); | 174 Translation* translation, OutputFrameStateCombine state_combine); |
| 175 void TranslateStateValueDescriptor(StateValueDescriptor* desc, | 175 void TranslateStateValueDescriptor(StateValueDescriptor* desc, |
| 176 Translation* translation, | 176 Translation* translation, |
| 177 InstructionOperandIterator* iter); | 177 InstructionOperandIterator* iter); |
| 178 void TranslateFrameStateDescriptorOperands(FrameStateDescriptor* desc, | 178 void TranslateFrameStateDescriptorOperands(FrameStateDescriptor* desc, |
| 179 InstructionOperandIterator* iter, | 179 InstructionOperandIterator* iter, |
| 180 OutputFrameStateCombine combine, | 180 OutputFrameStateCombine combine, |
| 181 Translation* translation); | 181 Translation* translation); |
| 182 void AddTranslationForOperand(Translation* translation, Instruction* instr, | 182 void AddTranslationForOperand(Translation* translation, Instruction* instr, |
| 183 InstructionOperand* op, MachineType type); | 183 InstructionOperand* op, MachineType type); |
| 184 void AddNopForSmiCodeInlining(); | |
| 185 void EnsureSpaceForLazyDeopt(); | 184 void EnsureSpaceForLazyDeopt(); |
| 186 void MarkLazyDeoptSite(); | 185 void MarkLazyDeoptSite(); |
| 187 | 186 |
| 188 DeoptimizationExit* AddDeoptimizationExit(Instruction* instr, | 187 DeoptimizationExit* AddDeoptimizationExit(Instruction* instr, |
| 189 size_t frame_state_offset); | 188 size_t frame_state_offset); |
| 190 | 189 |
| 191 // Converts the delta in the number of stack parameter passed from a tail | 190 // Converts the delta in the number of stack parameter passed from a tail |
| 192 // caller to the callee into the distance (in pointers) the SP must be | 191 // caller to the callee into the distance (in pointers) the SP must be |
| 193 // adjusted, taking frame elision and other relevant factors into | 192 // adjusted, taking frame elision and other relevant factors into |
| 194 // consideration. | 193 // consideration. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 JumpTable* jump_tables_; | 241 JumpTable* jump_tables_; |
| 243 OutOfLineCode* ools_; | 242 OutOfLineCode* ools_; |
| 244 int osr_pc_offset_; | 243 int osr_pc_offset_; |
| 245 }; | 244 }; |
| 246 | 245 |
| 247 } // namespace compiler | 246 } // namespace compiler |
| 248 } // namespace internal | 247 } // namespace internal |
| 249 } // namespace v8 | 248 } // namespace v8 |
| 250 | 249 |
| 251 #endif // V8_COMPILER_CODE_GENERATOR_H | 250 #endif // V8_COMPILER_CODE_GENERATOR_H |
| OLD | NEW |