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

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

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/compiler/wasm-compiler.cc ('k') | src/ia32/assembler-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 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 g.UseFixed(node->InputAt(1), edx), 558 g.UseFixed(node->InputAt(1), edx),
559 shift_operand}; 559 shift_operand};
560 560
561 InstructionOperand outputs[] = { 561 InstructionOperand outputs[] = {
562 g.DefineAsFixed(node, eax), 562 g.DefineAsFixed(node, eax),
563 g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; 563 g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)};
564 564
565 Emit(kX87PairShl, 2, outputs, 3, inputs); 565 Emit(kX87PairShl, 2, outputs, 3, inputs);
566 } 566 }
567 567
568 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); }
569
570 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); }
571
568 void InstructionSelector::VisitWord32Ror(Node* node) { 572 void InstructionSelector::VisitWord32Ror(Node* node) {
569 VisitShift(this, node, kX87Ror); 573 VisitShift(this, node, kX87Ror);
570 } 574 }
571 575
572 576
573 void InstructionSelector::VisitWord32Clz(Node* node) { 577 void InstructionSelector::VisitWord32Clz(Node* node) {
574 X87OperandGenerator g(this); 578 X87OperandGenerator g(this);
575 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 579 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
576 } 580 }
577 581
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 MachineOperatorBuilder::kFloat32RoundTruncate | 1489 MachineOperatorBuilder::kFloat32RoundTruncate |
1486 MachineOperatorBuilder::kFloat64RoundTruncate | 1490 MachineOperatorBuilder::kFloat64RoundTruncate |
1487 MachineOperatorBuilder::kFloat32RoundTiesEven | 1491 MachineOperatorBuilder::kFloat32RoundTiesEven |
1488 MachineOperatorBuilder::kFloat64RoundTiesEven; 1492 MachineOperatorBuilder::kFloat64RoundTiesEven;
1489 return flags; 1493 return flags;
1490 } 1494 }
1491 1495
1492 } // namespace compiler 1496 } // namespace compiler
1493 } // namespace internal 1497 } // namespace internal
1494 } // namespace v8 1498 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698