| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, | 445 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, |
| 446 Node* offset, Node* value) { | 446 Node* offset, Node* value) { |
| 447 return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier); | 447 return raw_assembler()->Store(rep, base, offset, value, kNoWriteBarrier); |
| 448 } | 448 } |
| 449 | 449 |
| 450 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, | 450 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, |
| 451 Node* offset, Node* value) { | 451 Node* offset, Node* value) { |
| 452 return raw_assembler()->AtomicStore(rep, base, offset, value); | 452 return raw_assembler()->AtomicStore(rep, base, offset, value); |
| 453 } | 453 } |
| 454 | 454 |
| 455 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset, |
| 456 Node* value) { |
| 457 return raw_assembler()->AtomicExchange(type, base, offset, value); |
| 458 } |
| 459 |
| 455 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { | 460 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { |
| 456 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); | 461 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); |
| 457 Node* roots_array_start = | 462 Node* roots_array_start = |
| 458 ExternalConstant(ExternalReference::roots_array_start(isolate())); | 463 ExternalConstant(ExternalReference::roots_array_start(isolate())); |
| 459 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, | 464 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, |
| 460 IntPtrConstant(root_index * kPointerSize), value); | 465 IntPtrConstant(root_index * kPointerSize), value); |
| 461 } | 466 } |
| 462 | 467 |
| 463 Node* CodeAssembler::Retain(Node* value) { | 468 Node* CodeAssembler::Retain(Node* value) { |
| 464 return raw_assembler()->Retain(value); | 469 return raw_assembler()->Retain(value); |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 } | 853 } |
| 849 } | 854 } |
| 850 } | 855 } |
| 851 | 856 |
| 852 bound_ = true; | 857 bound_ = true; |
| 853 } | 858 } |
| 854 | 859 |
| 855 } // namespace compiler | 860 } // namespace compiler |
| 856 } // namespace internal | 861 } // namespace internal |
| 857 } // namespace v8 | 862 } // namespace v8 |
| OLD | NEW |