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

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

Issue 22041003: Introduce Push and Pop register macro instructions for all platforms (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/mips/macro-assembler-mips.h ('k') | no next file » | 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 } 816 }
817 817
818 // Load a global cell into a register. 818 // Load a global cell into a register.
819 void LoadGlobalCell(Register dst, Handle<Cell> cell); 819 void LoadGlobalCell(Register dst, Handle<Cell> cell);
820 820
821 // Emit code to discard a non-negative number of pointer-sized elements 821 // Emit code to discard a non-negative number of pointer-sized elements
822 // from the stack, clobbering only the rsp register. 822 // from the stack, clobbering only the rsp register.
823 void Drop(int stack_elements); 823 void Drop(int stack_elements);
824 824
825 void Call(Label* target) { call(target); } 825 void Call(Label* target) { call(target); }
826 void Push(Register src) { push(src); }
827 void Pop(Register dst) { pop(dst); }
826 void PushReturnAddressFrom(Register src) { push(src); } 828 void PushReturnAddressFrom(Register src) { push(src); }
827 void PopReturnAddressTo(Register dst) { pop(dst); } 829 void PopReturnAddressTo(Register dst) { pop(dst); }
828 830
829 // Control Flow 831 // Control Flow
830 void Jump(Address destination, RelocInfo::Mode rmode); 832 void Jump(Address destination, RelocInfo::Mode rmode);
831 void Jump(ExternalReference ext); 833 void Jump(ExternalReference ext);
832 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 834 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
833 835
834 void Call(Address destination, RelocInfo::Mode rmode); 836 void Call(Address destination, RelocInfo::Mode rmode);
835 void Call(ExternalReference ext); 837 void Call(ExternalReference ext);
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 masm->popfq(); \ 1543 masm->popfq(); \
1542 } \ 1544 } \
1543 masm-> 1545 masm->
1544 #else 1546 #else
1545 #define ACCESS_MASM(masm) masm-> 1547 #define ACCESS_MASM(masm) masm->
1546 #endif 1548 #endif
1547 1549
1548 } } // namespace v8::internal 1550 } } // namespace v8::internal
1549 1551
1550 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1552 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698