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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
713 void Move(Register dst, Smi* source) { | 713 void Move(Register dst, Smi* source) { |
714 LoadSmiConstant(dst, source); | 714 LoadSmiConstant(dst, source); |
715 } | 715 } |
716 | 716 |
717 void Move(const Operand& dst, Smi* source) { | 717 void Move(const Operand& dst, Smi* source) { |
718 Register constant = GetSmiConstant(source); | 718 Register constant = GetSmiConstant(source); |
719 movq(dst, constant); | 719 movq(dst, constant); |
720 } | 720 } |
721 | 721 |
722 void Push(Smi* smi); | 722 void Push(Smi* smi); |
723 | |
724 // Push a 64-bit integer as two "general" Smis on stack so that the garbage | |
danno
2013/08/19 22:00:40
I find the comments a bit confusing. I think the f
haitao.feng
2013/08/20 13:20:15
Done.
| |
725 // collector could iterate stack safely. The Smis are general, i.e., all the | |
726 // lower kSmiShift bits are zero. | |
727 void PushInt64AsTwoSmis(Register src, Register scratch = kScratchRegister); | |
728 // Reconstruct a 64-bit integer from two "general" Smis from stack. | |
danno
2013/08/19 22:00:40
// Reconstruct a 64-bit integer from two 32-bits i
haitao.feng
2013/08/20 13:20:15
Done.
| |
729 void PopInt64AsTwoSmis(Register dst, Register scratch = kScratchRegister); | |
730 | |
723 void Test(const Operand& dst, Smi* source); | 731 void Test(const Operand& dst, Smi* source); |
724 | 732 |
725 | 733 |
726 // --------------------------------------------------------------------------- | 734 // --------------------------------------------------------------------------- |
727 // String macros. | 735 // String macros. |
728 | 736 |
729 // If object is a string, its map is loaded into object_map. | 737 // If object is a string, its map is loaded into object_map. |
730 void JumpIfNotString(Register object, | 738 void JumpIfNotString(Register object, |
731 Register object_map, | 739 Register object_map, |
732 Label* not_string, | 740 Label* not_string, |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1543 masm->popfq(); \ | 1551 masm->popfq(); \ |
1544 } \ | 1552 } \ |
1545 masm-> | 1553 masm-> |
1546 #else | 1554 #else |
1547 #define ACCESS_MASM(masm) masm-> | 1555 #define ACCESS_MASM(masm) masm-> |
1548 #endif | 1556 #endif |
1549 | 1557 |
1550 } } // namespace v8::internal | 1558 } } // namespace v8::internal |
1551 | 1559 |
1552 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1560 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |