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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 Register src1, | 589 Register src1, |
590 const Operand& src2, | 590 const Operand& src2, |
591 Label* on_not_smi_result, | 591 Label* on_not_smi_result, |
592 Label::Distance near_jump = Label::kFar); | 592 Label::Distance near_jump = Label::kFar); |
593 | 593 |
594 void SmiAdd(Register dst, | 594 void SmiAdd(Register dst, |
595 Register src1, | 595 Register src1, |
596 Register src2); | 596 Register src2); |
597 | 597 |
598 // Subtracts smi values and return the result as a smi. | 598 // Subtracts smi values and return the result as a smi. |
599 // If dst is src1, then src1 will be destroyed, even if | 599 // If dst is src1, then src1 will be destroyed if the operation is |
600 // the operation is unsuccessful. | 600 // successful, otherwise kept intact. |
601 void SmiSub(Register dst, | 601 void SmiSub(Register dst, |
602 Register src1, | 602 Register src1, |
603 Register src2, | 603 Register src2, |
604 Label* on_not_smi_result, | 604 Label* on_not_smi_result, |
605 Label::Distance near_jump = Label::kFar); | 605 Label::Distance near_jump = Label::kFar); |
606 | |
607 void SmiSub(Register dst, | |
608 Register src1, | |
609 Register src2); | |
610 | |
611 void SmiSub(Register dst, | 606 void SmiSub(Register dst, |
612 Register src1, | 607 Register src1, |
613 const Operand& src2, | 608 const Operand& src2, |
614 Label* on_not_smi_result, | 609 Label* on_not_smi_result, |
615 Label::Distance near_jump = Label::kFar); | 610 Label::Distance near_jump = Label::kFar); |
616 | 611 |
617 void SmiSub(Register dst, | 612 void SmiSub(Register dst, |
618 Register src1, | 613 Register src1, |
| 614 Register src2); |
| 615 |
| 616 void SmiSub(Register dst, |
| 617 Register src1, |
619 const Operand& src2); | 618 const Operand& src2); |
620 | 619 |
621 // Multiplies smi values and return the result as a smi, | 620 // Multiplies smi values and return the result as a smi, |
622 // if possible. | 621 // if possible. |
623 // If dst is src1, then src1 will be destroyed, even if | 622 // If dst is src1, then src1 will be destroyed, even if |
624 // the operation is unsuccessful. | 623 // the operation is unsuccessful. |
625 void SmiMul(Register dst, | 624 void SmiMul(Register dst, |
626 Register src1, | 625 Register src1, |
627 Register src2, | 626 Register src2, |
628 Label* on_not_smi_result, | 627 Label* on_not_smi_result, |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 masm->popfq(); \ | 1581 masm->popfq(); \ |
1583 } \ | 1582 } \ |
1584 masm-> | 1583 masm-> |
1585 #else | 1584 #else |
1586 #define ACCESS_MASM(masm) masm-> | 1585 #define ACCESS_MASM(masm) masm-> |
1587 #endif | 1586 #endif |
1588 | 1587 |
1589 } } // namespace v8::internal | 1588 } } // namespace v8::internal |
1590 | 1589 |
1591 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1590 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |