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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 Register dst2, | 482 Register dst2, |
483 const MemOperand& src, | 483 const MemOperand& src, |
484 Condition cond = al); | 484 Condition cond = al); |
485 | 485 |
486 // Store two consecutive registers to two consecutive memory locations. | 486 // Store two consecutive registers to two consecutive memory locations. |
487 void Strd(Register src1, | 487 void Strd(Register src1, |
488 Register src2, | 488 Register src2, |
489 const MemOperand& dst, | 489 const MemOperand& dst, |
490 Condition cond = al); | 490 Condition cond = al); |
491 | 491 |
492 // Ensure that FPSCR contains values needed by JavaScript. | |
493 // We need the NaNModeControlBit to be sure that operations like | |
494 // vadd and vsub generate the Canonical NaN (if a NaN must be generated). | |
495 // In VFP3 it will be always the Canonical NaN. | |
496 // In VFP2 it will be either the Canonical NaN or the negative version | |
497 // of the Canonical NaN. It doesn't matter if we have two values. The aim | |
498 // is to be sure to never generate the hole NaN. | |
499 void VFPEnsureFPSCRState(Register scratch); | |
500 | |
501 // If the value is a NaN, canonicalize the value else, do nothing. | 492 // If the value is a NaN, canonicalize the value else, do nothing. |
502 void VFPCanonicalizeNaN(const DwVfpRegister dst, | 493 void VFPCanonicalizeNaN(const DwVfpRegister dst, |
503 const DwVfpRegister src, | 494 const DwVfpRegister src, |
504 const Condition cond = al); | 495 const Condition cond = al); |
505 void VFPCanonicalizeNaN(const DwVfpRegister value, | 496 void VFPCanonicalizeNaN(const DwVfpRegister value, |
506 const Condition cond = al) { | 497 const Condition cond = al) { |
507 VFPCanonicalizeNaN(value, value, cond); | 498 VFPCanonicalizeNaN(value, value, cond); |
508 } | 499 } |
509 | 500 |
510 // Compare single values and move the result to the normal condition flags. | 501 // Compare single values and move the result to the normal condition flags. |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1571 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1581 #else | 1572 #else |
1582 #define ACCESS_MASM(masm) masm-> | 1573 #define ACCESS_MASM(masm) masm-> |
1583 #endif | 1574 #endif |
1584 | 1575 |
1585 | 1576 |
1586 } // namespace internal | 1577 } // namespace internal |
1587 } // namespace v8 | 1578 } // namespace v8 |
1588 | 1579 |
1589 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1580 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |