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

Unified Diff: src/x87/macro-assembler-x87.cc

Issue 1773083002: X87: [wasm] Int64Lowering of I64Shl on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x87/macro-assembler-x87.h ('k') | test/cctest/test-disasm-x87.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x87/macro-assembler-x87.cc
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
index 0c459ebfd420f5208d8b4b7c05ef6a26d831a4c3..6277ada6f03349a769c029509f02f77d7f64c5b7 100644
--- a/src/x87/macro-assembler-x87.cc
+++ b/src/x87/macro-assembler-x87.cc
@@ -597,6 +597,27 @@ void MacroAssembler::DebugBreak() {
call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
}
+void MacroAssembler::PairShl(Register dst, Register src, uint8_t shift) {
ahaas 2016/03/08 07:23:40 On ia32 I will rename the parameters to "high" and
+ if (shift >= 32) {
+ mov(dst, src);
+ shl(dst, shift - 32);
+ xor_(src, src);
+ } else {
+ shld(dst, src, shift);
+ shl(src, shift);
+ }
+}
+
+void MacroAssembler::PairShl_cl(Register dst, Register src) {
+ shld_cl(dst, src);
+ shl_cl(src);
+ Label done;
+ test(ecx, Immediate(0x20));
+ j(equal, &done, Label::kNear);
+ mov(dst, src);
+ xor_(src, src);
+ bind(&done);
+}
bool MacroAssembler::IsUnsafeImmediate(const Immediate& x) {
static const int kMaxImmediateBits = 17;
« no previous file with comments | « src/x87/macro-assembler-x87.h ('k') | test/cctest/test-disasm-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698