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

Side by Side Diff: src/compiler/ia32/instruction-selector-ia32.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/ia32/code-generator-ia32.cc ('k') | src/compiler/instruction-codes.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 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 1558
1559 1559
1560 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { 1560 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) {
1561 IA32OperandGenerator g(this); 1561 IA32OperandGenerator g(this);
1562 Node* left = node->InputAt(0); 1562 Node* left = node->InputAt(0);
1563 Node* right = node->InputAt(1); 1563 Node* right = node->InputAt(1);
1564 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), 1564 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node),
1565 g.UseRegister(left), g.Use(right)); 1565 g.UseRegister(left), g.Use(right));
1566 } 1566 }
1567 1567
1568 void InstructionSelector::VisitAtomicLoad(Node* node) {
1569 LoadRepresentation load_rep = LoadRepresentationOf(node->op());
1570 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 ||
1571 load_rep.representation() == MachineRepresentation::kWord16 ||
1572 load_rep.representation() == MachineRepresentation::kWord32);
1573 USE(load_rep);
1574 VisitLoad(node);
1575 }
1576 1568
1577 // static 1569 // static
1578 MachineOperatorBuilder::Flags 1570 MachineOperatorBuilder::Flags
1579 InstructionSelector::SupportedMachineOperatorFlags() { 1571 InstructionSelector::SupportedMachineOperatorFlags() {
1580 MachineOperatorBuilder::Flags flags = 1572 MachineOperatorBuilder::Flags flags =
1581 MachineOperatorBuilder::kFloat32Max | 1573 MachineOperatorBuilder::kFloat32Max |
1582 MachineOperatorBuilder::kFloat32Min | 1574 MachineOperatorBuilder::kFloat32Min |
1583 MachineOperatorBuilder::kFloat64Max | 1575 MachineOperatorBuilder::kFloat64Max |
1584 MachineOperatorBuilder::kFloat64Min | 1576 MachineOperatorBuilder::kFloat64Min |
1585 MachineOperatorBuilder::kWord32ShiftIsSafe | 1577 MachineOperatorBuilder::kWord32ShiftIsSafe |
(...skipping 10 matching lines...) Expand all
1596 MachineOperatorBuilder::kFloat64RoundTruncate | 1588 MachineOperatorBuilder::kFloat64RoundTruncate |
1597 MachineOperatorBuilder::kFloat32RoundTiesEven | 1589 MachineOperatorBuilder::kFloat32RoundTiesEven |
1598 MachineOperatorBuilder::kFloat64RoundTiesEven; 1590 MachineOperatorBuilder::kFloat64RoundTiesEven;
1599 } 1591 }
1600 return flags; 1592 return flags;
1601 } 1593 }
1602 1594
1603 } // namespace compiler 1595 } // namespace compiler
1604 } // namespace internal 1596 } // namespace internal
1605 } // namespace v8 1597 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698