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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value); | 270 Node* StoreWithMapWriteBarrier(Node* base, Node* offset, Node* value); |
271 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); | 271 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* value); |
272 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, | 272 Node* StoreNoWriteBarrier(MachineRepresentation rep, Node* base, Node* offset, |
273 Node* value); | 273 Node* value); |
274 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, | 274 Node* AtomicStore(MachineRepresentation rep, Node* base, Node* offset, |
275 Node* value); | 275 Node* value); |
276 | 276 |
277 // Exchange value at raw memory location | 277 // Exchange value at raw memory location |
278 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); | 278 Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value); |
279 | 279 |
| 280 // Compare and Exchange value at raw memory location |
| 281 Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset, |
| 282 Node* old_value, Node* new_value); |
| 283 |
280 // Store a value to the root array. | 284 // Store a value to the root array. |
281 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); | 285 Node* StoreRoot(Heap::RootListIndex root_index, Node* value); |
282 | 286 |
283 // Basic arithmetic operations. | 287 // Basic arithmetic operations. |
284 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); | 288 #define DECLARE_CODE_ASSEMBLER_BINARY_OP(name) Node* name(Node* a, Node* b); |
285 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) | 289 CODE_ASSEMBLER_BINARY_OP_LIST(DECLARE_CODE_ASSEMBLER_BINARY_OP) |
286 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP | 290 #undef DECLARE_CODE_ASSEMBLER_BINARY_OP |
287 | 291 |
288 Node* IntPtrAdd(Node* left, Node* right); | 292 Node* IntPtrAdd(Node* left, Node* right); |
289 Node* IntPtrSub(Node* left, Node* right); | 293 Node* IntPtrSub(Node* left, Node* right); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 CodeAssemblerCallback call_epilogue_; | 520 CodeAssemblerCallback call_epilogue_; |
517 | 521 |
518 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 522 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
519 }; | 523 }; |
520 | 524 |
521 } // namespace compiler | 525 } // namespace compiler |
522 } // namespace internal | 526 } // namespace internal |
523 } // namespace v8 | 527 } // namespace v8 |
524 | 528 |
525 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 529 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |