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

Side by Side Diff: src/compiler/raw-machine-assembler.h

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/opcodes.h ('k') | src/compiler/typer.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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 Node* Store(MachineRepresentation rep, Node* base, Node* value, 126 Node* Store(MachineRepresentation rep, Node* base, Node* value,
127 WriteBarrierKind write_barrier) { 127 WriteBarrierKind write_barrier) {
128 return Store(rep, base, IntPtrConstant(0), value, write_barrier); 128 return Store(rep, base, IntPtrConstant(0), value, write_barrier);
129 } 129 }
130 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value, 130 Node* Store(MachineRepresentation rep, Node* base, Node* index, Node* value,
131 WriteBarrierKind write_barrier) { 131 WriteBarrierKind write_barrier) {
132 return AddNode(machine()->Store(StoreRepresentation(rep, write_barrier)), 132 return AddNode(machine()->Store(StoreRepresentation(rep, write_barrier)),
133 base, index, value); 133 base, index, value);
134 } 134 }
135 135
136 // Atomic memory operations.
137 Node* AtomicLoad(MachineType rep, Node* base, Node* index) {
138 return AddNode(machine()->AtomicLoad(rep), base, index);
139 }
140
141 // Arithmetic Operations. 136 // Arithmetic Operations.
142 Node* WordAnd(Node* a, Node* b) { 137 Node* WordAnd(Node* a, Node* b) {
143 return AddNode(machine()->WordAnd(), a, b); 138 return AddNode(machine()->WordAnd(), a, b);
144 } 139 }
145 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); } 140 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); }
146 Node* WordXor(Node* a, Node* b) { 141 Node* WordXor(Node* a, Node* b) {
147 return AddNode(machine()->WordXor(), a, b); 142 return AddNode(machine()->WordXor(), a, b);
148 } 143 }
149 Node* WordShl(Node* a, Node* b) { 144 Node* WordShl(Node* a, Node* b) {
150 return AddNode(machine()->WordShl(), a, b); 145 return AddNode(machine()->WordShl(), a, b);
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 bool deferred_; 747 bool deferred_;
753 friend class RawMachineAssembler; 748 friend class RawMachineAssembler;
754 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 749 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
755 }; 750 };
756 751
757 } // namespace compiler 752 } // namespace compiler
758 } // namespace internal 753 } // namespace internal
759 } // namespace v8 754 } // namespace v8
760 755
761 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 756 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698