Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 232533002: Rename PushInt64AsTwoSmis to PushRegisterAsTwoSmis and support x32 as well. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 movp(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 raw integer with pointer size on the stack as two 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 PushRegisterAsTwoSmis(Register src, Register scratch = kScratchRegister);
732 // Reconstruct a 64-bit integer from two 32-bit integers masquerading as 732 // Reconstruct a raw integer with pointer size from two integers masquerading
733 // smis on the top of stack. 733 // as smis on the top of stack.
734 void PopInt64AsTwoSmis(Register dst, Register scratch = kScratchRegister); 734 void PopRegisterAsTwoSmis(Register dst, Register scratch = kScratchRegister);
735 735
736 void Test(const Operand& dst, Smi* source); 736 void Test(const Operand& dst, Smi* source);
737 737
738 738
739 // --------------------------------------------------------------------------- 739 // ---------------------------------------------------------------------------
740 // String macros. 740 // String macros.
741 741
742 // Generate code to do a lookup in the number string cache. If the number in 742 // Generate code to do a lookup in the number string cache. If the number in
743 // the register object is found in the cache the generated code falls through 743 // the register object is found in the cache the generated code falls through
744 // with the result in the result register. The object and the result register 744 // with the result in the result register. The object and the result register
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 masm->popfq(); \ 1624 masm->popfq(); \
1625 } \ 1625 } \
1626 masm-> 1626 masm->
1627 #else 1627 #else
1628 #define ACCESS_MASM(masm) masm-> 1628 #define ACCESS_MASM(masm) masm->
1629 #endif 1629 #endif
1630 1630
1631 } } // namespace v8::internal 1631 } } // namespace v8::internal
1632 1632
1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/debug-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698