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

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

Issue 1768233002: [wasm] Int64Lowering of I64ShrU and I64ShrS on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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/frames.h" 10 #include "src/frames.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 367
368 // Expression support 368 // Expression support
369 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 369 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
370 // hinders register renaming and makes dependence chains longer. So we use 370 // hinders register renaming and makes dependence chains longer. So we use
371 // xorps to clear the dst register before cvtsi2sd to solve this issue. 371 // xorps to clear the dst register before cvtsi2sd to solve this issue.
372 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 372 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
373 void Cvtsi2sd(XMMRegister dst, const Operand& src); 373 void Cvtsi2sd(XMMRegister dst, const Operand& src);
374 374
375 void Cvtui2ss(XMMRegister dst, Register src, Register tmp); 375 void Cvtui2ss(XMMRegister dst, Register src, Register tmp);
376 376
377 void PairShl(Register dst, Register src, uint8_t imm8); 377 void ShlPair(Register high, Register low, uint8_t imm8);
378 void PairShl_cl(Register dst, Register src); 378 void ShlPair_cl(Register high, Register low);
379 void ShrPair(Register high, Register low, uint8_t imm8);
380 void ShrPair_cl(Register high, Register src);
381 void SarPair(Register high, Register low, uint8_t imm8);
382 void SarPair_cl(Register high, Register low);
379 383
380 // Support for constant splitting. 384 // Support for constant splitting.
381 bool IsUnsafeImmediate(const Immediate& x); 385 bool IsUnsafeImmediate(const Immediate& x);
382 void SafeMove(Register dst, const Immediate& x); 386 void SafeMove(Register dst, const Immediate& x);
383 void SafePush(const Immediate& x); 387 void SafePush(const Immediate& x);
384 388
385 // Compare object type for heap object. 389 // Compare object type for heap object.
386 // Incoming register is heap_object and outgoing register is map. 390 // Incoming register is heap_object and outgoing register is map.
387 void CmpObjectType(Register heap_object, InstanceType type, Register map); 391 void CmpObjectType(Register heap_object, InstanceType type, Register map);
388 392
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 } \ 1046 } \
1043 masm-> 1047 masm->
1044 #else 1048 #else
1045 #define ACCESS_MASM(masm) masm-> 1049 #define ACCESS_MASM(masm) masm->
1046 #endif 1050 #endif
1047 1051
1048 } // namespace internal 1052 } // namespace internal
1049 } // namespace v8 1053 } // namespace v8
1050 1054
1051 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1055 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698