Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 575 | 575 |
| 576 // Count leading zeros in a 32 bit word. On ARM5 and later it uses the clz | 576 // Count leading zeros in a 32 bit word. On ARM5 and later it uses the clz |
| 577 // instruction. On pre-ARM5 hardware this routine gives the wrong answer | 577 // instruction. On pre-ARM5 hardware this routine gives the wrong answer |
| 578 // for 0 (31 instead of 32). Source and scratch can be the same in which case | 578 // for 0 (31 instead of 32). Source and scratch can be the same in which case |
| 579 // the source is clobbered. Source and zeros can also be the same in which | 579 // the source is clobbered. Source and zeros can also be the same in which |
| 580 // case scratch should be a different register. | 580 // case scratch should be a different register. |
| 581 void CountLeadingZeros(Register zeros, | 581 void CountLeadingZeros(Register zeros, |
| 582 Register source, | 582 Register source, |
| 583 Register scratch); | 583 Register scratch); |
| 584 | 584 |
| 585 void VFPCompareAndSetFlags(const DwVfpRegister src1, | |
|
Rodolph Perfetta
2011/01/10 11:24:10
Since the instruction sets the flags, the s parame
Søren Thygesen Gjesse
2011/01/10 12:36:01
Done.
| |
| 586 const DwVfpRegister src2, | |
| 587 const SBit s = LeaveCC, | |
| 588 const Condition cond = al) { | |
| 589 vcmp(src1, src2, s, cond); | |
| 590 vmrs(pc); | |
|
Rodolph Perfetta
2011/01/10 11:24:10
vmrs should be conditional too.
Søren Thygesen Gjesse
2011/01/10 12:36:01
Done.
| |
| 591 } | |
| 592 void VFPCompareAndSetFlags(const DwVfpRegister src1, | |
|
Rodolph Perfetta
2011/01/10 11:24:10
As above.
Søren Thygesen Gjesse
2011/01/10 12:36:01
Done.
| |
| 593 const double src2, | |
| 594 const SBit s = LeaveCC, | |
| 595 const Condition cond = al) { | |
| 596 vcmp(src1, src2, s, cond); | |
| 597 vmrs(pc); | |
| 598 } | |
| 599 | |
| 585 // --------------------------------------------------------------------------- | 600 // --------------------------------------------------------------------------- |
| 586 // Runtime calls | 601 // Runtime calls |
| 587 | 602 |
| 588 // Call a code stub. | 603 // Call a code stub. |
| 589 void CallStub(CodeStub* stub, Condition cond = al); | 604 void CallStub(CodeStub* stub, Condition cond = al); |
| 590 | 605 |
| 591 // Call a code stub. | 606 // Call a code stub. |
| 592 void TailCallStub(CodeStub* stub, Condition cond = al); | 607 void TailCallStub(CodeStub* stub, Condition cond = al); |
| 593 | 608 |
| 594 // Call a runtime routine. | 609 // Call a runtime routine. |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 823 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 838 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 824 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 839 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 825 #else | 840 #else |
| 826 #define ACCESS_MASM(masm) masm-> | 841 #define ACCESS_MASM(masm) masm-> |
| 827 #endif | 842 #endif |
| 828 | 843 |
| 829 | 844 |
| 830 } } // namespace v8::internal | 845 } } // namespace v8::internal |
| 831 | 846 |
| 832 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 847 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |