| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 // Sets flags as a normal add. | 714 // Sets flags as a normal add. |
| 715 void AddSmiField(Register dst, const Operand& src); | 715 void AddSmiField(Register dst, const Operand& src); |
| 716 | 716 |
| 717 // Basic Smi operations. | 717 // Basic Smi operations. |
| 718 void Move(Register dst, Smi* source) { | 718 void Move(Register dst, Smi* source) { |
| 719 LoadSmiConstant(dst, source); | 719 LoadSmiConstant(dst, source); |
| 720 } | 720 } |
| 721 | 721 |
| 722 void Move(const Operand& dst, Smi* source) { | 722 void Move(const Operand& dst, Smi* source) { |
| 723 Register constant = GetSmiConstant(source); | 723 Register constant = GetSmiConstant(source); |
| 724 movq(dst, constant); | 724 movp(dst, constant); |
| 725 } | 725 } |
| 726 | 726 |
| 727 void Push(Smi* smi); | 727 void Push(Smi* smi); |
| 728 | 728 |
| 729 // Save away a 64-bit integer on the stack as two 32-bit integers | 729 // Save away a 64-bit integer on the stack as two 32-bit integers |
| 730 // masquerading as smis so that the garbage collector skips visiting them. | 730 // masquerading as smis so that the garbage collector skips visiting them. |
| 731 void PushInt64AsTwoSmis(Register src, Register scratch = kScratchRegister); | 731 void PushInt64AsTwoSmis(Register src, Register scratch = kScratchRegister); |
| 732 // Reconstruct a 64-bit integer from two 32-bit integers masquerading as | 732 // Reconstruct a 64-bit integer from two 32-bit integers masquerading as |
| 733 // smis on the top of stack. | 733 // smis on the top of stack. |
| 734 void PopInt64AsTwoSmis(Register dst, Register scratch = kScratchRegister); | 734 void PopInt64AsTwoSmis(Register dst, Register scratch = kScratchRegister); |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 masm->popfq(); \ | 1615 masm->popfq(); \ |
| 1616 } \ | 1616 } \ |
| 1617 masm-> | 1617 masm-> |
| 1618 #else | 1618 #else |
| 1619 #define ACCESS_MASM(masm) masm-> | 1619 #define ACCESS_MASM(masm) masm-> |
| 1620 #endif | 1620 #endif |
| 1621 | 1621 |
| 1622 } } // namespace v8::internal | 1622 } } // namespace v8::internal |
| 1623 | 1623 |
| 1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |