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

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

Issue 1759383003: [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix uninitialized variable causing msan failure Created 4 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
« no previous file with comments | « src/x64/assembler-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 // 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 811
812 // --------------------------------------------------------------------------- 812 // ---------------------------------------------------------------------------
813 // Macro instructions. 813 // Macro instructions.
814 814
815 // Load/store with specific representation. 815 // Load/store with specific representation.
816 void Load(Register dst, const Operand& src, Representation r); 816 void Load(Register dst, const Operand& src, Representation r);
817 void Store(const Operand& dst, Register src, Representation r); 817 void Store(const Operand& dst, Register src, Representation r);
818 818
819 // Load a register with a long value as efficiently as possible. 819 // Load a register with a long value as efficiently as possible.
820 void Set(Register dst, int64_t x); 820 void Set(Register dst, int64_t x);
821 void Set(Register dst, int64_t x, RelocInfo::Mode rmode);
822 void Set(const Operand& dst, intptr_t x); 821 void Set(const Operand& dst, intptr_t x);
823 822
824 void Cvtss2sd(XMMRegister dst, XMMRegister src); 823 void Cvtss2sd(XMMRegister dst, XMMRegister src);
825 void Cvtss2sd(XMMRegister dst, const Operand& src); 824 void Cvtss2sd(XMMRegister dst, const Operand& src);
826 void Cvtsd2ss(XMMRegister dst, XMMRegister src); 825 void Cvtsd2ss(XMMRegister dst, XMMRegister src);
827 void Cvtsd2ss(XMMRegister dst, const Operand& src); 826 void Cvtsd2ss(XMMRegister dst, const Operand& src);
828 827
829 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 828 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
830 // hinders register renaming and makes dependence chains longer. So we use 829 // hinders register renaming and makes dependence chains longer. So we use
831 // xorpd to clear the dst register before cvtsi2sd to solve this issue. 830 // xorpd to clear the dst register before cvtsi2sd to solve this issue.
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 } \ 1764 } \
1766 masm-> 1765 masm->
1767 #else 1766 #else
1768 #define ACCESS_MASM(masm) masm-> 1767 #define ACCESS_MASM(masm) masm->
1769 #endif 1768 #endif
1770 1769
1771 } // namespace internal 1770 } // namespace internal
1772 } // namespace v8 1771 } // namespace v8
1773 1772
1774 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1773 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698