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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 Label::Distance near_jump = Label::kFar); | 751 Label::Distance near_jump = Label::kFar); |
752 | 752 |
753 void JumpIfBothInstanceTypesAreNotSequentialAscii( | 753 void JumpIfBothInstanceTypesAreNotSequentialAscii( |
754 Register first_object_instance_type, | 754 Register first_object_instance_type, |
755 Register second_object_instance_type, | 755 Register second_object_instance_type, |
756 Register scratch1, | 756 Register scratch1, |
757 Register scratch2, | 757 Register scratch2, |
758 Label* on_fail, | 758 Label* on_fail, |
759 Label::Distance near_jump = Label::kFar); | 759 Label::Distance near_jump = Label::kFar); |
760 | 760 |
| 761 // Checks if the given register or operand is a unique name |
| 762 void JumpIfNotUniqueName(Register reg, Label* not_unique_name, |
| 763 Label::Distance distance = Label::kFar); |
| 764 void JumpIfNotUniqueName(Operand operand, Label* not_unique_name, |
| 765 Label::Distance distance = Label::kFar); |
| 766 |
761 // --------------------------------------------------------------------------- | 767 // --------------------------------------------------------------------------- |
762 // Macro instructions. | 768 // Macro instructions. |
763 | 769 |
764 // Load a register with a long value as efficiently as possible. | 770 // Load a register with a long value as efficiently as possible. |
765 void Set(Register dst, int64_t x); | 771 void Set(Register dst, int64_t x); |
766 void Set(const Operand& dst, int64_t x); | 772 void Set(const Operand& dst, int64_t x); |
767 | 773 |
768 // Move if the registers are not identical. | 774 // Move if the registers are not identical. |
769 void Move(Register target, Register source); | 775 void Move(Register target, Register source); |
770 | 776 |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 masm->popfq(); \ | 1535 masm->popfq(); \ |
1530 } \ | 1536 } \ |
1531 masm-> | 1537 masm-> |
1532 #else | 1538 #else |
1533 #define ACCESS_MASM(masm) masm-> | 1539 #define ACCESS_MASM(masm) masm-> |
1534 #endif | 1540 #endif |
1535 | 1541 |
1536 } } // namespace v8::internal | 1542 } } // namespace v8::internal |
1537 | 1543 |
1538 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1544 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |