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

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

Issue 1895643002: Revert of [Atomics] Remove Atomics code stubs; use TF ops (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
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('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/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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 1445
1446 1446
1447 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { 1447 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) {
1448 MipsOperandGenerator g(this); 1448 MipsOperandGenerator g(this);
1449 Node* left = node->InputAt(0); 1449 Node* left = node->InputAt(0);
1450 Node* right = node->InputAt(1); 1450 Node* right = node->InputAt(1);
1451 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), 1451 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node),
1452 g.UseRegister(left), g.UseRegister(right)); 1452 g.UseRegister(left), g.UseRegister(right));
1453 } 1453 }
1454 1454
1455 void InstructionSelector::VisitAtomicLoad(Node* node) {
1456 // TODO(binji)
1457 }
1458 1455
1459 // static 1456 // static
1460 MachineOperatorBuilder::Flags 1457 MachineOperatorBuilder::Flags
1461 InstructionSelector::SupportedMachineOperatorFlags() { 1458 InstructionSelector::SupportedMachineOperatorFlags() {
1462 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; 1459 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags;
1463 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && 1460 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) &&
1464 IsFp64Mode()) { 1461 IsFp64Mode()) {
1465 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1462 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1466 MachineOperatorBuilder::kFloat64RoundUp | 1463 MachineOperatorBuilder::kFloat64RoundUp |
1467 MachineOperatorBuilder::kFloat64RoundTruncate | 1464 MachineOperatorBuilder::kFloat64RoundTruncate |
(...skipping 10 matching lines...) Expand all
1478 MachineOperatorBuilder::kFloat32Max | 1475 MachineOperatorBuilder::kFloat32Max |
1479 MachineOperatorBuilder::kFloat32RoundDown | 1476 MachineOperatorBuilder::kFloat32RoundDown |
1480 MachineOperatorBuilder::kFloat32RoundUp | 1477 MachineOperatorBuilder::kFloat32RoundUp |
1481 MachineOperatorBuilder::kFloat32RoundTruncate | 1478 MachineOperatorBuilder::kFloat32RoundTruncate |
1482 MachineOperatorBuilder::kFloat32RoundTiesEven; 1479 MachineOperatorBuilder::kFloat32RoundTiesEven;
1483 } 1480 }
1484 1481
1485 } // namespace compiler 1482 } // namespace compiler
1486 } // namespace internal 1483 } // namespace internal
1487 } // namespace v8 1484 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698