OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 int arguments, | 294 int arguments, |
295 Safepoint::DeoptMode mode); | 295 Safepoint::DeoptMode mode); |
296 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, | 296 void RecordSafepointWithRegistersAndDoubles(LPointerMap* pointers, |
297 int arguments, | 297 int arguments, |
298 Safepoint::DeoptMode mode); | 298 Safepoint::DeoptMode mode); |
299 | 299 |
300 void RecordAndWritePosition(int position) V8_OVERRIDE; | 300 void RecordAndWritePosition(int position) V8_OVERRIDE; |
301 | 301 |
302 static Condition TokenToCondition(Token::Value op, bool is_unsigned); | 302 static Condition TokenToCondition(Token::Value op, bool is_unsigned); |
303 void EmitGoto(int block); | 303 void EmitGoto(int block); |
| 304 |
| 305 // EmitBranch expects to be the last instruction of a block. |
304 template<class InstrType> | 306 template<class InstrType> |
305 void EmitBranch(InstrType instr, | 307 void EmitBranch(InstrType instr, |
306 Condition condition, | 308 Condition condition, |
307 Register src1, | 309 Register src1, |
308 const Operand& src2); | 310 const Operand& src2); |
309 template<class InstrType> | 311 template<class InstrType> |
310 void EmitBranchF(InstrType instr, | 312 void EmitBranchF(InstrType instr, |
311 Condition condition, | 313 Condition condition, |
312 FPURegister src1, | 314 FPURegister src1, |
313 FPURegister src2); | 315 FPURegister src2); |
314 template<class InstrType> | 316 template<class InstrType> |
| 317 void EmitFalseBranch(InstrType instr, |
| 318 Condition condition, |
| 319 Register src1, |
| 320 const Operand& src2); |
| 321 template<class InstrType> |
315 void EmitFalseBranchF(InstrType instr, | 322 void EmitFalseBranchF(InstrType instr, |
316 Condition condition, | 323 Condition condition, |
317 FPURegister src1, | 324 FPURegister src1, |
318 FPURegister src2); | 325 FPURegister src2); |
319 void EmitCmpI(LOperand* left, LOperand* right); | 326 void EmitCmpI(LOperand* left, LOperand* right); |
320 void EmitNumberUntagD(Register input, | 327 void EmitNumberUntagD(Register input, |
321 DoubleRegister result, | 328 DoubleRegister result, |
322 bool allow_undefined_as_nan, | 329 bool allow_undefined_as_nan, |
323 bool deoptimize_on_minus_zero, | 330 bool deoptimize_on_minus_zero, |
324 LEnvironment* env, | 331 LEnvironment* env, |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 LCodeGen* codegen_; | 484 LCodeGen* codegen_; |
478 Label entry_; | 485 Label entry_; |
479 Label exit_; | 486 Label exit_; |
480 Label* external_exit_; | 487 Label* external_exit_; |
481 int instruction_index_; | 488 int instruction_index_; |
482 }; | 489 }; |
483 | 490 |
484 } } // namespace v8::internal | 491 } } // namespace v8::internal |
485 | 492 |
486 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 493 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |