| 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 470 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, | 470 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, | 
| 471                                  Node* offset, Node* value) { | 471                                  Node* offset, Node* value) { | 
| 472   return raw_assembler()->AtomicStore(rep, base, offset, value); | 472   return raw_assembler()->AtomicStore(rep, base, offset, value); | 
| 473 } | 473 } | 
| 474 | 474 | 
| 475 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset, | 475 Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset, | 
| 476                                     Node* value) { | 476                                     Node* value) { | 
| 477   return raw_assembler()->AtomicExchange(type, base, offset, value); | 477   return raw_assembler()->AtomicExchange(type, base, offset, value); | 
| 478 } | 478 } | 
| 479 | 479 | 
|  | 480 Node* CodeAssembler::AtomicCompareExchange(MachineType type, Node* base, | 
|  | 481                                            Node* offset, Node* old_value, | 
|  | 482                                            Node* new_value) { | 
|  | 483   return raw_assembler()->AtomicCompareExchange(type, base, offset, old_value, | 
|  | 484                                                 new_value); | 
|  | 485 } | 
|  | 486 | 
| 480 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { | 487 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { | 
| 481   DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); | 488   DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); | 
| 482   Node* roots_array_start = | 489   Node* roots_array_start = | 
| 483       ExternalConstant(ExternalReference::roots_array_start(isolate())); | 490       ExternalConstant(ExternalReference::roots_array_start(isolate())); | 
| 484   return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, | 491   return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, | 
| 485                              IntPtrConstant(root_index * kPointerSize), value); | 492                              IntPtrConstant(root_index * kPointerSize), value); | 
| 486 } | 493 } | 
| 487 | 494 | 
| 488 Node* CodeAssembler::Retain(Node* value) { | 495 Node* CodeAssembler::Retain(Node* value) { | 
| 489   return raw_assembler()->Retain(value); | 496   return raw_assembler()->Retain(value); | 
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 875       } | 882       } | 
| 876     } | 883     } | 
| 877   } | 884   } | 
| 878 | 885 | 
| 879   bound_ = true; | 886   bound_ = true; | 
| 880 } | 887 } | 
| 881 | 888 | 
| 882 }  // namespace compiler | 889 }  // namespace compiler | 
| 883 }  // namespace internal | 890 }  // namespace internal | 
| 884 }  // namespace v8 | 891 }  // namespace v8 | 
| OLD | NEW | 
|---|