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

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

Issue 157303002: Introduce Jump and Call operand macro assembler instructions for x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed win64 build Created 6 years, 10 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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 795
796 // --------------------------------------------------------------------------- 796 // ---------------------------------------------------------------------------
797 // Macro instructions. 797 // Macro instructions.
798 798
799 // Load/store with specific representation. 799 // Load/store with specific representation.
800 void Load(Register dst, const Operand& src, Representation r); 800 void Load(Register dst, const Operand& src, Representation r);
801 void Store(const Operand& dst, Register src, Representation r); 801 void Store(const Operand& dst, Register src, Representation r);
802 802
803 // Load a register with a long value as efficiently as possible. 803 // Load a register with a long value as efficiently as possible.
804 void Set(Register dst, int64_t x); 804 void Set(Register dst, int64_t x);
805 void Set(const Operand& dst, int64_t x); 805 void Set(const Operand& dst, intptr_t x);
806 806
807 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 807 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
808 // hinders register renaming and makes dependence chains longer. So we use 808 // hinders register renaming and makes dependence chains longer. So we use
809 // xorps to clear the dst register before cvtsi2sd to solve this issue. 809 // xorps to clear the dst register before cvtsi2sd to solve this issue.
810 void Cvtlsi2sd(XMMRegister dst, Register src); 810 void Cvtlsi2sd(XMMRegister dst, Register src);
811 void Cvtlsi2sd(XMMRegister dst, const Operand& src); 811 void Cvtlsi2sd(XMMRegister dst, const Operand& src);
812 812
813 // Move if the registers are not identical. 813 // Move if the registers are not identical.
814 void Move(Register target, Register source); 814 void Move(Register target, Register source);
815 815
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 AllowDeferredHandleDereference using_raw_address; 858 AllowDeferredHandleDereference using_raw_address;
859 ASSERT(!RelocInfo::IsNone(rmode)); 859 ASSERT(!RelocInfo::IsNone(rmode));
860 ASSERT(value->IsHeapObject()); 860 ASSERT(value->IsHeapObject());
861 ASSERT(!isolate()->heap()->InNewSpace(*value)); 861 ASSERT(!isolate()->heap()->InNewSpace(*value));
862 movp(dst, value.location(), rmode); 862 movp(dst, value.location(), rmode);
863 } 863 }
864 864
865 // Control Flow 865 // Control Flow
866 void Jump(Address destination, RelocInfo::Mode rmode); 866 void Jump(Address destination, RelocInfo::Mode rmode);
867 void Jump(ExternalReference ext); 867 void Jump(ExternalReference ext);
868 void Jump(const Operand& op);
868 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 869 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
869 870
870 void Call(Address destination, RelocInfo::Mode rmode); 871 void Call(Address destination, RelocInfo::Mode rmode);
871 void Call(ExternalReference ext); 872 void Call(ExternalReference ext);
873 void Call(const Operand& op);
872 void Call(Handle<Code> code_object, 874 void Call(Handle<Code> code_object,
873 RelocInfo::Mode rmode, 875 RelocInfo::Mode rmode,
874 TypeFeedbackId ast_id = TypeFeedbackId::None()); 876 TypeFeedbackId ast_id = TypeFeedbackId::None());
875 877
876 // The size of the code generated for different call instructions. 878 // The size of the code generated for different call instructions.
877 int CallSize(Address destination) { 879 int CallSize(Address destination) {
878 return kCallSequenceLength; 880 return kCallSequenceLength;
879 } 881 }
880 int CallSize(ExternalReference ext); 882 int CallSize(ExternalReference ext);
881 int CallSize(Handle<Code> code_object) { 883 int CallSize(Handle<Code> code_object) {
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 masm->popfq(); \ 1614 masm->popfq(); \
1613 } \ 1615 } \
1614 masm-> 1616 masm->
1615 #else 1617 #else
1616 #define ACCESS_MASM(masm) masm-> 1618 #define ACCESS_MASM(masm) masm->
1617 #endif 1619 #endif
1618 1620
1619 } } // namespace v8::internal 1621 } } // namespace v8::internal
1620 1622
1621 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1623 #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