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

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

Issue 1759873002: Assembler changes for enabling GrowHeap in Wasm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Adding x64 test Created 4 years, 9 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 799
800 // --------------------------------------------------------------------------- 800 // ---------------------------------------------------------------------------
801 // Macro instructions. 801 // Macro instructions.
802 802
803 // Load/store with specific representation. 803 // Load/store with specific representation.
804 void Load(Register dst, const Operand& src, Representation r); 804 void Load(Register dst, const Operand& src, Representation r);
805 void Store(const Operand& dst, Register src, Representation r); 805 void Store(const Operand& dst, Register src, Representation r);
806 806
807 // Load a register with a long value as efficiently as possible. 807 // Load a register with a long value as efficiently as possible.
808 void Set(Register dst, int64_t x); 808 void Set(Register dst, int64_t x);
809 void Set(Register dst, int64_t x, RelocInfo::Mode rmode);
809 void Set(const Operand& dst, intptr_t x); 810 void Set(const Operand& dst, intptr_t x);
810 811
811 void Cvtss2sd(XMMRegister dst, XMMRegister src); 812 void Cvtss2sd(XMMRegister dst, XMMRegister src);
812 void Cvtss2sd(XMMRegister dst, const Operand& src); 813 void Cvtss2sd(XMMRegister dst, const Operand& src);
813 void Cvtsd2ss(XMMRegister dst, XMMRegister src); 814 void Cvtsd2ss(XMMRegister dst, XMMRegister src);
814 void Cvtsd2ss(XMMRegister dst, const Operand& src); 815 void Cvtsd2ss(XMMRegister dst, const Operand& src);
815 816
816 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 817 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
817 // hinders register renaming and makes dependence chains longer. So we use 818 // hinders register renaming and makes dependence chains longer. So we use
818 // xorpd to clear the dst register before cvtsi2sd to solve this issue. 819 // xorpd to clear the dst register before cvtsi2sd to solve this issue.
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 } \ 1754 } \
1754 masm-> 1755 masm->
1755 #else 1756 #else
1756 #define ACCESS_MASM(masm) masm-> 1757 #define ACCESS_MASM(masm) masm->
1757 #endif 1758 #endif
1758 1759
1759 } // namespace internal 1760 } // namespace internal
1760 } // namespace v8 1761 } // namespace v8
1761 1762
1762 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1763 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698