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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.cc

Issue 1778893005: [wasm] Int64Lowering of Int64Sub on ia32 and arm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-add
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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 VisitShift(this, node, kX87Shr); 539 VisitShift(this, node, kX87Shr);
540 } 540 }
541 541
542 542
543 void InstructionSelector::VisitWord32Sar(Node* node) { 543 void InstructionSelector::VisitWord32Sar(Node* node) {
544 VisitShift(this, node, kX87Sar); 544 VisitShift(this, node, kX87Sar);
545 } 545 }
546 546
547 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); } 547 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); }
548 548
549 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); }
550
549 void InstructionSelector::VisitWord32PairShl(Node* node) { 551 void InstructionSelector::VisitWord32PairShl(Node* node) {
550 X87OperandGenerator g(this); 552 X87OperandGenerator g(this);
551 553
552 Node* shift = node->InputAt(2); 554 Node* shift = node->InputAt(2);
553 InstructionOperand shift_operand; 555 InstructionOperand shift_operand;
554 if (g.CanBeImmediate(shift)) { 556 if (g.CanBeImmediate(shift)) {
555 shift_operand = g.UseImmediate(shift); 557 shift_operand = g.UseImmediate(shift);
556 } else { 558 } else {
557 shift_operand = g.UseFixed(shift, ecx); 559 shift_operand = g.UseFixed(shift, ecx);
558 } 560 }
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 MachineOperatorBuilder::kFloat32RoundTruncate | 1531 MachineOperatorBuilder::kFloat32RoundTruncate |
1530 MachineOperatorBuilder::kFloat64RoundTruncate | 1532 MachineOperatorBuilder::kFloat64RoundTruncate |
1531 MachineOperatorBuilder::kFloat32RoundTiesEven | 1533 MachineOperatorBuilder::kFloat32RoundTiesEven |
1532 MachineOperatorBuilder::kFloat64RoundTiesEven; 1534 MachineOperatorBuilder::kFloat64RoundTiesEven;
1533 return flags; 1535 return flags;
1534 } 1536 }
1535 1537
1536 } // namespace compiler 1538 } // namespace compiler
1537 } // namespace internal 1539 } // namespace internal
1538 } // namespace v8 1540 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698