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

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

Issue 1848253002: MIPS: [wasm] Implement Int32MulPair operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 392
393 393
394 void InstructionSelector::VisitWord32Sar(Node* node) { 394 void InstructionSelector::VisitWord32Sar(Node* node) {
395 VisitRRO(this, kMipsSar, node); 395 VisitRRO(this, kMipsSar, node);
396 } 396 }
397 397
398 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); } 398 void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); }
399 399
400 void InstructionSelector::VisitInt32PairSub(Node* node) { UNIMPLEMENTED(); } 400 void InstructionSelector::VisitInt32PairSub(Node* node) { UNIMPLEMENTED(); }
401 401
402 void InstructionSelector::VisitInt32PairMul(Node* node) { UNIMPLEMENTED(); } 402 void InstructionSelector::VisitInt32PairMul(Node* node) {
403 MipsOperandGenerator g(this);
404 InstructionOperand inputs[] = {g.UseUniqueRegister(node->InputAt(0)),
405 g.UseUniqueRegister(node->InputAt(1)),
406 g.UseUniqueRegister(node->InputAt(2)),
407 g.UseUniqueRegister(node->InputAt(3))};
408 InstructionOperand outputs[] = {
409 g.DefineAsRegister(node),
410 g.DefineAsRegister(NodeProperties::FindProjection(node, 1))};
411 Emit(kMipsMulPair, 2, outputs, 4, inputs);
412 }
403 413
404 void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); } 414 void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); }
405 415
406 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); } 416 void InstructionSelector::VisitWord32PairShr(Node* node) { UNIMPLEMENTED(); }
407 417
408 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); } 418 void InstructionSelector::VisitWord32PairSar(Node* node) { UNIMPLEMENTED(); }
409 419
410 void InstructionSelector::VisitWord32Ror(Node* node) { 420 void InstructionSelector::VisitWord32Ror(Node* node) {
411 VisitRRO(this, kMipsRor, node); 421 VisitRRO(this, kMipsRor, node);
412 } 422 }
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 MachineOperatorBuilder::kFloat32Max | 1408 MachineOperatorBuilder::kFloat32Max |
1399 MachineOperatorBuilder::kFloat32RoundDown | 1409 MachineOperatorBuilder::kFloat32RoundDown |
1400 MachineOperatorBuilder::kFloat32RoundUp | 1410 MachineOperatorBuilder::kFloat32RoundUp |
1401 MachineOperatorBuilder::kFloat32RoundTruncate | 1411 MachineOperatorBuilder::kFloat32RoundTruncate |
1402 MachineOperatorBuilder::kFloat32RoundTiesEven; 1412 MachineOperatorBuilder::kFloat32RoundTiesEven;
1403 } 1413 }
1404 1414
1405 } // namespace compiler 1415 } // namespace compiler
1406 } // namespace internal 1416 } // namespace internal
1407 } // namespace v8 1417 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698