| 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, | 460 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, |
| 461 Node* offset, Node* value) { | 461 Node* offset, Node* value) { |
| 462 return raw_assembler()->AtomicStore(rep, base, offset, value); | 462 return raw_assembler()->AtomicStore(rep, base, offset, value); |
| 463 } | 463 } |
| 464 | 464 |
| 465 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset, | 465 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset, |
| 466 Node* value) { | 466 Node* value) { |
| 467 return raw_assembler()->AtomicExchange(type, base, offset, value); | 467 return raw_assembler()->AtomicExchange(type, base, offset, value); |
| 468 } | 468 } |
| 469 | 469 |
| 470 Node* CodeAssembler::AtomicCompareExchange(MachineType type, Node* base, |
| 471 Node* offset, Node* old_value, |
| 472 Node* new_value) { |
| 473 return raw_assembler()->AtomicCompareExchange(type, base, offset, old_value, |
| 474 new_value); |
| 475 } |
| 476 |
| 470 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { | 477 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { |
| 471 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); | 478 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); |
| 472 Node* roots_array_start = | 479 Node* roots_array_start = |
| 473 ExternalConstant(ExternalReference::roots_array_start(isolate())); | 480 ExternalConstant(ExternalReference::roots_array_start(isolate())); |
| 474 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, | 481 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, |
| 475 IntPtrConstant(root_index * kPointerSize), value); | 482 IntPtrConstant(root_index * kPointerSize), value); |
| 476 } | 483 } |
| 477 | 484 |
| 478 Node* CodeAssembler::Retain(Node* value) { | 485 Node* CodeAssembler::Retain(Node* value) { |
| 479 return raw_assembler()->Retain(value); | 486 return raw_assembler()->Retain(value); |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 } | 870 } |
| 864 } | 871 } |
| 865 } | 872 } |
| 866 | 873 |
| 867 bound_ = true; | 874 bound_ = true; |
| 868 } | 875 } |
| 869 | 876 |
| 870 } // namespace compiler | 877 } // namespace compiler |
| 871 } // namespace internal | 878 } // namespace internal |
| 872 } // namespace v8 | 879 } // namespace v8 |
| OLD | NEW |