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

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

Issue 1778493004: [wasm] Int64Lowering of Int64Add on ia32 and arm. (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 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 578
579 void InstructionSelector::VisitWord32Shr(Node* node) { 579 void InstructionSelector::VisitWord32Shr(Node* node) {
580 VisitShift(this, node, kIA32Shr); 580 VisitShift(this, node, kIA32Shr);
581 } 581 }
582 582
583 583
584 void InstructionSelector::VisitWord32Sar(Node* node) { 584 void InstructionSelector::VisitWord32Sar(Node* node) {
585 VisitShift(this, node, kIA32Sar); 585 VisitShift(this, node, kIA32Sar);
586 } 586 }
587 587
588 void InstructionSelector::VisitInt32AddPair(Node* node) {
589 IA32OperandGenerator g(this);
590
591 InstructionOperand inputs[] = {
592 g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1)),
593 g.UseRegister(node->InputAt(2)), g.UseRegister(node->InputAt(3))};
594
595 InstructionOperand outputs[] = {
596 g.DefineSameAsFirst(node),
597 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
598
599 Emit(kIA32AddPair, 2, outputs, 4, inputs);
600 }
601
588 void InstructionSelector::VisitWord32PairShl(Node* node) { 602 void InstructionSelector::VisitWord32PairShl(Node* node) {
589 IA32OperandGenerator g(this); 603 IA32OperandGenerator g(this);
590 604
591 Node* shift = node->InputAt(2); 605 Node* shift = node->InputAt(2);
592 InstructionOperand shift_operand; 606 InstructionOperand shift_operand;
593 if (g.CanBeImmediate(shift)) { 607 if (g.CanBeImmediate(shift)) {
594 shift_operand = g.UseImmediate(shift); 608 shift_operand = g.UseImmediate(shift);
595 } else { 609 } else {
596 shift_operand = g.UseFixed(shift, ecx); 610 shift_operand = g.UseFixed(shift, ecx);
597 } 611 }
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 MachineOperatorBuilder::kFloat64RoundTruncate | 1479 MachineOperatorBuilder::kFloat64RoundTruncate |
1466 MachineOperatorBuilder::kFloat32RoundTiesEven | 1480 MachineOperatorBuilder::kFloat32RoundTiesEven |
1467 MachineOperatorBuilder::kFloat64RoundTiesEven; 1481 MachineOperatorBuilder::kFloat64RoundTiesEven;
1468 } 1482 }
1469 return flags; 1483 return flags;
1470 } 1484 }
1471 1485
1472 } // namespace compiler 1486 } // namespace compiler
1473 } // namespace internal 1487 } // namespace internal
1474 } // namespace v8 1488 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698