OLD | NEW |
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 Loading... |
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 |
136 // Arithmetic Operations. | 141 // Arithmetic Operations. |
137 Node* WordAnd(Node* a, Node* b) { | 142 Node* WordAnd(Node* a, Node* b) { |
138 return AddNode(machine()->WordAnd(), a, b); | 143 return AddNode(machine()->WordAnd(), a, b); |
139 } | 144 } |
140 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); } | 145 Node* WordOr(Node* a, Node* b) { return AddNode(machine()->WordOr(), a, b); } |
141 Node* WordXor(Node* a, Node* b) { | 146 Node* WordXor(Node* a, Node* b) { |
142 return AddNode(machine()->WordXor(), a, b); | 147 return AddNode(machine()->WordXor(), a, b); |
143 } | 148 } |
144 Node* WordShl(Node* a, Node* b) { | 149 Node* WordShl(Node* a, Node* b) { |
145 return AddNode(machine()->WordShl(), a, b); | 150 return AddNode(machine()->WordShl(), a, b); |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 bool deferred_; | 752 bool deferred_; |
748 friend class RawMachineAssembler; | 753 friend class RawMachineAssembler; |
749 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 754 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
750 }; | 755 }; |
751 | 756 |
752 } // namespace compiler | 757 } // namespace compiler |
753 } // namespace internal | 758 } // namespace internal |
754 } // namespace v8 | 759 } // namespace v8 |
755 | 760 |
756 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 761 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |