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 #include "src/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, | 430 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, |
431 Node* offset, Node* value) { | 431 Node* offset, Node* value) { |
432 return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier); | 432 return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier); |
433 } | 433 } |
434 | 434 |
435 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, | 435 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, |
436 Node* offset, Node* value) { | 436 Node* offset, Node* value) { |
437 return raw_assembler()->AtomicStore(rep, base, offset, value); | 437 return raw_assembler()->AtomicStore(rep, base, offset, value); |
438 } | 438 } |
439 | 439 |
| 440 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset, |
| 441 Node* value) { |
| 442 return raw_assembler()->AtomicExchange(type, base, offset, value); |
| 443 } |
| 444 |
440 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { | 445 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { |
441 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); | 446 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); |
442 Node* roots_array_start = | 447 Node* roots_array_start = |
443 ExternalConstant(ExternalReference::roots_array_start(isolate())); | 448 ExternalConstant(ExternalReference::roots_array_start(isolate())); |
444 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, | 449 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, |
445 IntPtrConstant(root_index * kPointerSize), value); | 450 IntPtrConstant(root_index * kPointerSize), value); |
446 } | 451 } |
447 | 452 |
448 Node* CodeAssembler::Retain(Node* value) { | 453 Node* CodeAssembler::Retain(Node* value) { |
449 return raw_assembler()->Retain(value); | 454 return raw_assembler()->Retain(value); |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 } | 823 } |
819 } | 824 } |
820 } | 825 } |
821 | 826 |
822 bound_ = true; | 827 bound_ = true; |
823 } | 828 } |
824 | 829 |
825 } // namespace compiler | 830 } // namespace compiler |
826 } // namespace internal | 831 } // namespace internal |
827 } // namespace v8 | 832 } // namespace v8 |
OLD | NEW |