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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, | 283 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, |
284 Node* value); | 284 Node* value); |
285 | 285 |
286 // Exchange value at raw memory location | 286 // Exchange value at raw memory location |
287 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); | 287 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); |
288 | 288 |
289 // Compare and Exchange value at raw memory location | 289 // Compare and Exchange value at raw memory location |
290 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset, | 290 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset, |
291 Node* old_value, Node* new_value); | 291 Node* old_value, Node* new_value); |
292 | 292 |
| 293 Node* AtomicAdd(MachineType type, Node* base, Node* offset, Node* value); |
| 294 |
| 295 Node* AtomicSub(MachineType type, Node* base, Node* offset, Node* value); |
| 296 |
| 297 Node* AtomicAnd(MachineType type, Node* base, Node* offset, Node* value); |
| 298 |
| 299 Node* AtomicOr(MachineType type, Node* base, Node* offset, Node* value); |
| 300 |
| 301 Node* AtomicXor(MachineType type, Node* base, Node* offset, Node* value); |
| 302 |
293 // Store a value to the root array. | 303 // Store a value to the root array. |
294 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); | 304 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); |
295 | 305 |
296 // Basic arithmetic operations. | 306 // Basic arithmetic operations. |
297 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 307 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); |
298 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 308 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) |
299 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 309 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP |
300 | 310 |
301 Node* IntPtrAdd(Node* left, Node* right); | 311 Node* IntPtrAdd(Node* left, Node* right); |
302 Node* IntPtrSub(Node* left, Node* right); | 312 Node* IntPtrSub(Node* left, Node* right); |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 CodeAssemblerCallback call_epilogue_; | 551 CodeAssemblerCallback call_epilogue_; |
542 | 552 |
543 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 553 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
544 }; | 554 }; |
545 | 555 |
546 } // namespace compiler | 556 } // namespace compiler |
547 } // namespace internal | 557 } // namespace internal |
548 } // namespace v8 | 558 } // namespace v8 |
549 | 559 |
550 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 560 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |