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

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

Issue 105503006: Replace movq with movp for X64 when the operand size is kPointerSize (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 6 years, 11 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/lithium-gap-resolver-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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/x64/lithium-gap-resolver-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698