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

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

Issue 22348005: Introduce PushInt64AsTwoSmis and PopInt64AsTwoSmis macro instructions for X64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Save away a 64-bit integer on the stack as two 32-bit integers
725 // masquerading as smis so that the garbage collector skips visiting them.
726 void PushInt64AsTwoSmis(Register src, Register scratch = kScratchRegister);
727 // Reconstruct a 64-bit integer from two 32-bit integers masquerading as
728 // smis on the top of stack.
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
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_
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