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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.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/x64/code-generator-x64.cc ('k') | src/ia32/code-stubs-ia32.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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 2017
2018 2018
2019 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { 2019 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) {
2020 X64OperandGenerator g(this); 2020 X64OperandGenerator g(this);
2021 Node* left = node->InputAt(0); 2021 Node* left = node->InputAt(0);
2022 Node* right = node->InputAt(1); 2022 Node* right = node->InputAt(1);
2023 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), 2023 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node),
2024 g.UseRegister(left), g.Use(right)); 2024 g.UseRegister(left), g.Use(right));
2025 } 2025 }
2026 2026
2027 void InstructionSelector::VisitAtomicLoad(Node* node) {
2028 LoadRepresentation load_rep = LoadRepresentationOf(node->op());
2029 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 ||
2030 load_rep.representation() == MachineRepresentation::kWord16 ||
2031 load_rep.representation() == MachineRepresentation::kWord32);
2032 USE(load_rep);
2033 VisitLoad(node);
2034 }
2035 2027
2036 // static 2028 // static
2037 MachineOperatorBuilder::Flags 2029 MachineOperatorBuilder::Flags
2038 InstructionSelector::SupportedMachineOperatorFlags() { 2030 InstructionSelector::SupportedMachineOperatorFlags() {
2039 MachineOperatorBuilder::Flags flags = 2031 MachineOperatorBuilder::Flags flags =
2040 MachineOperatorBuilder::kFloat32Max | 2032 MachineOperatorBuilder::kFloat32Max |
2041 MachineOperatorBuilder::kFloat32Min | 2033 MachineOperatorBuilder::kFloat32Min |
2042 MachineOperatorBuilder::kFloat64Max | 2034 MachineOperatorBuilder::kFloat64Max |
2043 MachineOperatorBuilder::kFloat64Min | 2035 MachineOperatorBuilder::kFloat64Min |
2044 MachineOperatorBuilder::kWord32ShiftIsSafe | 2036 MachineOperatorBuilder::kWord32ShiftIsSafe |
(...skipping 11 matching lines...) Expand all
2056 MachineOperatorBuilder::kFloat64RoundTruncate | 2048 MachineOperatorBuilder::kFloat64RoundTruncate |
2057 MachineOperatorBuilder::kFloat32RoundTiesEven | 2049 MachineOperatorBuilder::kFloat32RoundTiesEven |
2058 MachineOperatorBuilder::kFloat64RoundTiesEven; 2050 MachineOperatorBuilder::kFloat64RoundTiesEven;
2059 } 2051 }
2060 return flags; 2052 return flags;
2061 } 2053 }
2062 2054
2063 } // namespace compiler 2055 } // namespace compiler
2064 } // namespace internal 2056 } // namespace internal
2065 } // namespace v8 2057 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698