OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/lithium-codegen.h" | 9 #include "src/lithium-codegen.h" |
10 #include "src/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 int formal_parameter_count, | 222 int formal_parameter_count, |
223 int arity, | 223 int arity, |
224 LInstruction* instr, | 224 LInstruction* instr, |
225 A1State a1_state); | 225 A1State a1_state); |
226 | 226 |
227 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 227 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
228 SafepointMode safepoint_mode); | 228 SafepointMode safepoint_mode); |
229 | 229 |
230 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 230 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
231 Safepoint::DeoptMode mode); | 231 Safepoint::DeoptMode mode); |
232 void DeoptimizeIf(Condition condition, | 232 void DeoptimizeIf(Condition condition, LInstruction* instr, |
233 LEnvironment* environment, | |
234 Deoptimizer::BailoutType bailout_type, | 233 Deoptimizer::BailoutType bailout_type, |
235 Register src1 = zero_reg, | 234 Register src1 = zero_reg, |
236 const Operand& src2 = Operand(zero_reg)); | 235 const Operand& src2 = Operand(zero_reg)); |
237 void DeoptimizeIf(Condition condition, | 236 void DeoptimizeIf(Condition condition, LInstruction* instr, |
238 LEnvironment* environment, | |
239 Register src1 = zero_reg, | 237 Register src1 = zero_reg, |
240 const Operand& src2 = Operand(zero_reg)); | 238 const Operand& src2 = Operand(zero_reg)); |
241 | 239 |
242 void AddToTranslation(LEnvironment* environment, | 240 void AddToTranslation(LEnvironment* environment, |
243 Translation* translation, | 241 Translation* translation, |
244 LOperand* op, | 242 LOperand* op, |
245 bool is_tagged, | 243 bool is_tagged, |
246 bool is_uint32, | 244 bool is_uint32, |
247 int* object_index_pointer, | 245 int* object_index_pointer, |
248 int* dematerialized_index_pointer); | 246 int* dematerialized_index_pointer); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 void EmitFalseBranch(InstrType instr, | 289 void EmitFalseBranch(InstrType instr, |
292 Condition condition, | 290 Condition condition, |
293 Register src1, | 291 Register src1, |
294 const Operand& src2); | 292 const Operand& src2); |
295 template<class InstrType> | 293 template<class InstrType> |
296 void EmitFalseBranchF(InstrType instr, | 294 void EmitFalseBranchF(InstrType instr, |
297 Condition condition, | 295 Condition condition, |
298 FPURegister src1, | 296 FPURegister src1, |
299 FPURegister src2); | 297 FPURegister src2); |
300 void EmitCmpI(LOperand* left, LOperand* right); | 298 void EmitCmpI(LOperand* left, LOperand* right); |
301 void EmitNumberUntagD(Register input, | 299 void EmitNumberUntagD(LNumberUntagD* instr, Register input, |
302 DoubleRegister result, | 300 DoubleRegister result, NumberUntagDMode mode); |
303 bool allow_undefined_as_nan, | |
304 bool deoptimize_on_minus_zero, | |
305 LEnvironment* env, | |
306 NumberUntagDMode mode); | |
307 | 301 |
308 // Emits optimized code for typeof x == "y". Modifies input register. | 302 // Emits optimized code for typeof x == "y". Modifies input register. |
309 // Returns the condition on which a final split to | 303 // Returns the condition on which a final split to |
310 // true and false label should be made, to optimize fallthrough. | 304 // true and false label should be made, to optimize fallthrough. |
311 // Returns two registers in cmp1 and cmp2 that can be used in the | 305 // Returns two registers in cmp1 and cmp2 that can be used in the |
312 // Branch instruction after EmitTypeofIs. | 306 // Branch instruction after EmitTypeofIs. |
313 Condition EmitTypeofIs(Label* true_label, | 307 Condition EmitTypeofIs(Label* true_label, |
314 Label* false_label, | 308 Label* false_label, |
315 Register input, | 309 Register input, |
316 Handle<String> type_name, | 310 Handle<String> type_name, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 LCodeGen* codegen_; | 439 LCodeGen* codegen_; |
446 Label entry_; | 440 Label entry_; |
447 Label exit_; | 441 Label exit_; |
448 Label* external_exit_; | 442 Label* external_exit_; |
449 int instruction_index_; | 443 int instruction_index_; |
450 }; | 444 }; |
451 | 445 |
452 } } // namespace v8::internal | 446 } } // namespace v8::internal |
453 | 447 |
454 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 448 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |