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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, | 286 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, |
287 Node* value); | 287 Node* value); |
288 | 288 |
289 // Exchange value at raw memory location | 289 // Exchange value at raw memory location |
290 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); | 290 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); |
291 | 291 |
292 // Compare and Exchange value at raw memory location | 292 // Compare and Exchange value at raw memory location |
293 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset, | 293 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset, |
294 Node* old_value, Node* new_value); | 294 Node* old_value, Node* new_value); |
295 | 295 |
| 296 Node* AtomicAdd(MachineType type, Node* base, Node* offset, Node* value); |
| 297 |
| 298 Node* AtomicSub(MachineType type, Node* base, Node* offset, Node* value); |
| 299 |
| 300 Node* AtomicAnd(MachineType type, Node* base, Node* offset, Node* value); |
| 301 |
| 302 Node* AtomicOr(MachineType type, Node* base, Node* offset, Node* value); |
| 303 |
| 304 Node* AtomicXor(MachineType type, Node* base, Node* offset, Node* value); |
| 305 |
296 // Store a value to the root array. | 306 // Store a value to the root array. |
297 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); | 307 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); |
298 | 308 |
299 // Basic arithmetic operations. | 309 // Basic arithmetic operations. |
300 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 310 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); |
301 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 311 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) |
302 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 312 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP |
303 | 313 |
304 Node* IntPtrAdd(Node* left, Node* right); | 314 Node* IntPtrAdd(Node* left, Node* right); |
305 Node* IntPtrSub(Node* left, Node* right); | 315 Node* IntPtrSub(Node* left, Node* right); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 CodeAssemblerCallback call_epilogue_; | 580 CodeAssemblerCallback call_epilogue_; |
571 | 581 |
572 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 582 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
573 }; | 583 }; |
574 | 584 |
575 } // namespace compiler | 585 } // namespace compiler |
576 } // namespace internal | 586 } // namespace internal |
577 } // namespace v8 | 587 } // namespace v8 |
578 | 588 |
579 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 589 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |