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

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

Issue 238253013: Introduce PushQuad and PopQuad for x64 port. (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/frames-x64.h ('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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 // Load a global cell into a register. 837 // Load a global cell into a register.
838 void LoadGlobalCell(Register dst, Handle<Cell> cell); 838 void LoadGlobalCell(Register dst, Handle<Cell> cell);
839 839
840 // Emit code to discard a non-negative number of pointer-sized elements 840 // Emit code to discard a non-negative number of pointer-sized elements
841 // from the stack, clobbering only the rsp register. 841 // from the stack, clobbering only the rsp register.
842 void Drop(int stack_elements); 842 void Drop(int stack_elements);
843 843
844 void Call(Label* target) { call(target); } 844 void Call(Label* target) { call(target); }
845 void Push(Register src); 845 void Push(Register src);
846 void Push(const Operand& src); 846 void Push(const Operand& src);
847 void PushQuad(const Operand& src);
847 void Push(Immediate value); 848 void Push(Immediate value);
848 void PushImm32(int32_t imm32); 849 void PushImm32(int32_t imm32);
849 void Pop(Register dst); 850 void Pop(Register dst);
850 void Pop(const Operand& dst); 851 void Pop(const Operand& dst);
852 void PopQuad(const Operand& dst);
851 void PushReturnAddressFrom(Register src) { pushq(src); } 853 void PushReturnAddressFrom(Register src) { pushq(src); }
852 void PopReturnAddressTo(Register dst) { popq(dst); } 854 void PopReturnAddressTo(Register dst) { popq(dst); }
853 void Move(Register dst, ExternalReference ext) { 855 void Move(Register dst, ExternalReference ext) {
854 movp(dst, reinterpret_cast<void*>(ext.address()), 856 movp(dst, reinterpret_cast<void*>(ext.address()),
855 RelocInfo::EXTERNAL_REFERENCE); 857 RelocInfo::EXTERNAL_REFERENCE);
856 } 858 }
857 859
858 // Loads a pointer into a register with a relocation mode. 860 // Loads a pointer into a register with a relocation mode.
859 void Move(Register dst, void* ptr, RelocInfo::Mode rmode) { 861 void Move(Register dst, void* ptr, RelocInfo::Mode rmode) {
860 // This method must not be used with heap object references. The stored 862 // This method must not be used with heap object references. The stored
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 masm->popfq(); \ 1626 masm->popfq(); \
1625 } \ 1627 } \
1626 masm-> 1628 masm->
1627 #else 1629 #else
1628 #define ACCESS_MASM(masm) masm-> 1630 #define ACCESS_MASM(masm) masm->
1629 #endif 1631 #endif
1630 1632
1631 } } // namespace v8::internal 1633 } } // namespace v8::internal
1632 1634
1633 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1635 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/frames-x64.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698