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 <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 InstructionOperand* destination) V8_OVERRIDE; | 78 InstructionOperand* destination) V8_OVERRIDE; |
79 virtual void AssembleSwap(InstructionOperand* source, | 79 virtual void AssembleSwap(InstructionOperand* source, |
80 InstructionOperand* destination) V8_OVERRIDE; | 80 InstructionOperand* destination) V8_OVERRIDE; |
81 | 81 |
82 // =========================================================================== | 82 // =========================================================================== |
83 // Deoptimization table construction | 83 // Deoptimization table construction |
84 void RecordLazyDeoptimizationEntry(Instruction* instr); | 84 void RecordLazyDeoptimizationEntry(Instruction* instr); |
85 void PopulateDeoptimizationData(Handle<Code> code); | 85 void PopulateDeoptimizationData(Handle<Code> code); |
86 int DefineDeoptimizationLiteral(Handle<Object> literal); | 86 int DefineDeoptimizationLiteral(Handle<Object> literal); |
87 void BuildTranslation(Instruction* instr, int deoptimization_id); | 87 void BuildTranslation(Instruction* instr, int deoptimization_id); |
| 88 void AddTranslationForOperand(Translation* translation, Instruction* instr, |
| 89 InstructionOperand* op); |
88 void AddNopForSmiCodeInlining(); | 90 void AddNopForSmiCodeInlining(); |
89 #if DEBUG | 91 #if DEBUG |
90 static bool IsNopForSmiCodeInlining(Handle<Code> code, int start_pc, | 92 static bool IsNopForSmiCodeInlining(Handle<Code> code, int start_pc, |
91 int end_pc); | 93 int end_pc); |
92 #endif // DEBUG | 94 #endif // DEBUG |
93 // =========================================================================== | 95 // =========================================================================== |
94 | 96 |
95 class LazyDeoptimizationEntry V8_FINAL { | 97 class LazyDeoptimizationEntry V8_FINAL { |
96 public: | 98 public: |
97 LazyDeoptimizationEntry(int position_after_call, Label* continuation, | 99 LazyDeoptimizationEntry(int position_after_call, Label* continuation, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 DeoptimizationStates deoptimization_states_; | 137 DeoptimizationStates deoptimization_states_; |
136 Literals deoptimization_literals_; | 138 Literals deoptimization_literals_; |
137 TranslationBuffer translations_; | 139 TranslationBuffer translations_; |
138 }; | 140 }; |
139 | 141 |
140 } // namespace compiler | 142 } // namespace compiler |
141 } // namespace internal | 143 } // namespace internal |
142 } // namespace v8 | 144 } // namespace v8 |
143 | 145 |
144 #endif // V8_COMPILER_CODE_GENERATOR_H | 146 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |