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

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

Issue 21477002: Introduce PopReturnAddressTo and PushReturnAddressFrom macro-assembler 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/lithium-codegen-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 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 PushReturnAddressFrom(Register src) { push(src); }
827 void PopReturnAddressTo(Register dst) { pop(dst); }
826 828
827 // Control Flow 829 // Control Flow
828 void Jump(Address destination, RelocInfo::Mode rmode); 830 void Jump(Address destination, RelocInfo::Mode rmode);
829 void Jump(ExternalReference ext); 831 void Jump(ExternalReference ext);
830 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 832 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
831 833
832 void Call(Address destination, RelocInfo::Mode rmode); 834 void Call(Address destination, RelocInfo::Mode rmode);
833 void Call(ExternalReference ext); 835 void Call(ExternalReference ext);
834 void Call(Handle<Code> code_object, 836 void Call(Handle<Code> code_object,
835 RelocInfo::Mode rmode, 837 RelocInfo::Mode rmode,
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 masm->popfq(); \ 1541 masm->popfq(); \
1540 } \ 1542 } \
1541 masm-> 1543 masm->
1542 #else 1544 #else
1543 #define ACCESS_MASM(masm) masm-> 1545 #define ACCESS_MASM(masm) masm->
1544 #endif 1546 #endif
1545 1547
1546 } } // namespace v8::internal 1548 } } // namespace v8::internal
1547 1549
1548 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1550 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698