OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_CODE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // Store value to raw memory location. | 260 // Store value to raw memory location. |
261 Node* Store(Node* base, Node* value); | 261 Node* Store(Node* base, Node* value); |
262 Node* Store(Node* base, Node* offset, Node* value); | 262 Node* Store(Node* base, Node* offset, Node* value); |
263 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value); | 263 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value); |
264 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); | 264 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); |
265 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, | 265 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, |
266 Node* value); | 266 Node* value); |
267 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, | 267 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, |
268 Node* value); | 268 Node* value); |
269 | 269 |
| 270 // Exchange value at raw memory location |
| 271 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); |
| 272 |
270 // Store a value to the root array. | 273 // Store a value to the root array. |
271 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); | 274 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); |
272 | 275 |
273 // Basic arithmetic operations. | 276 // Basic arithmetic operations. |
274 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 277 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); |
275 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 278 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) |
276 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 279 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP |
277 | 280 |
278 Node* IntPtrAdd(Node* left, Node* right); | 281 Node* IntPtrAdd(Node* left, Node* right); |
279 Node* IntPtrSub(Node* left, Node* right); | 282 Node* IntPtrSub(Node* left, Node* right); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 CodeAssemblerCallback call_epilogue_; | 504 CodeAssemblerCallback call_epilogue_; |
502 | 505 |
503 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 506 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
504 }; | 507 }; |
505 | 508 |
506 } // namespace compiler | 509 } // namespace compiler |
507 } // namespace internal | 510 } // namespace internal |
508 } // namespace v8 | 511 } // namespace v8 |
509 | 512 |
510 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 513 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |