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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 2711633006: [wasm] Reuse constrained input for same vreg
Patch Set: alternative mulpair Created 3 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
« no previous file with comments | « no previous file | src/compiler/ia32/instruction-codes-ia32.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compilation-info.h" 7 #include "src/compilation-info.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 } 1273 }
1274 if (i.OutputRegister(1).code() != i.InputRegister(1).code()) { 1274 if (i.OutputRegister(1).code() != i.InputRegister(1).code()) {
1275 __ Move(i.OutputRegister(1), i.InputRegister(1)); 1275 __ Move(i.OutputRegister(1), i.InputRegister(1));
1276 } 1276 }
1277 __ sbb(i.OutputRegister(1), Operand(i.InputRegister(3))); 1277 __ sbb(i.OutputRegister(1), Operand(i.InputRegister(3)));
1278 if (use_temp) { 1278 if (use_temp) {
1279 __ Move(i.OutputRegister(0), i.TempRegister(0)); 1279 __ Move(i.OutputRegister(0), i.TempRegister(0));
1280 } 1280 }
1281 break; 1281 break;
1282 } 1282 }
1283 case kIA32MulPair: { 1283 case kIA32Umul: {
1284 __ imul(i.OutputRegister(1), i.InputOperand(0)); 1284 __ mov(i.OutputRegister(0), i.InputRegister(0));
1285 __ mov(i.TempRegister(0), i.InputOperand(1)); 1285 __ mul(i.InputRegister(1));
1286 __ imul(i.TempRegister(0), i.InputOperand(2));
1287 __ add(i.OutputRegister(1), i.TempRegister(0));
1288 __ mov(i.OutputRegister(0), i.InputOperand(0));
1289 // Multiplies the low words and stores them in eax and edx.
1290 __ mul(i.InputRegister(2));
1291 __ add(i.OutputRegister(1), i.TempRegister(0));
1292 1286
1293 break; 1287 break;
1294 } 1288 }
1295 case kIA32ShlPair: 1289 case kIA32ShlPair:
1296 if (HasImmediateInput(instr, 2)) { 1290 if (HasImmediateInput(instr, 2)) {
1297 __ ShlPair(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2)); 1291 __ ShlPair(i.InputRegister(1), i.InputRegister(0), i.InputInt6(2));
1298 } else { 1292 } else {
1299 // Shift has been loaded into CL by the register allocator. 1293 // Shift has been loaded into CL by the register allocator.
1300 __ ShlPair_cl(i.InputRegister(1), i.InputRegister(0)); 1294 __ ShlPair_cl(i.InputRegister(1), i.InputRegister(0));
1301 } 1295 }
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2666 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2660 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2667 __ Nop(padding_size); 2661 __ Nop(padding_size);
2668 } 2662 }
2669 } 2663 }
2670 2664
2671 #undef __ 2665 #undef __
2672 2666
2673 } // namespace compiler 2667 } // namespace compiler
2674 } // namespace internal 2668 } // namespace internal
2675 } // namespace v8 2669 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ia32/instruction-codes-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698