| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 295 |
| 296 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, | 296 Node* CodeAssembler::AtomicStore(MachineRepresentation rep, Node* base, |
| 297 Node* index, Node* value) { | 297 Node* index, Node* value) { |
| 298 return raw_assembler_->AtomicStore(rep, base, index, value); | 298 return raw_assembler_->AtomicStore(rep, base, index, value); |
| 299 } | 299 } |
| 300 | 300 |
| 301 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { | 301 Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) { |
| 302 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); | 302 DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index)); |
| 303 Node* roots_array_start = | 303 Node* roots_array_start = |
| 304 ExternalConstant(ExternalReference::roots_array_start(isolate())); | 304 ExternalConstant(ExternalReference::roots_array_start(isolate())); |
| 305 return StoreNoWriteBarrier(MachineRepresentation::kTagged, roots_array_start, | 305 return StoreNoWriteBarrier(MachineRepresentation::kTaggedPointer, |
| 306 roots_array_start, |
| 306 IntPtrConstant(root_index * kPointerSize), value); | 307 IntPtrConstant(root_index * kPointerSize), value); |
| 307 } | 308 } |
| 308 | 309 |
| 309 Node* CodeAssembler::Projection(int index, Node* value) { | 310 Node* CodeAssembler::Projection(int index, Node* value) { |
| 310 return raw_assembler_->Projection(index, value); | 311 return raw_assembler_->Projection(index, value); |
| 311 } | 312 } |
| 312 | 313 |
| 313 void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) { | 314 void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) { |
| 314 Label if_condition_is_true(this), if_condition_is_false(this); | 315 Label if_condition_is_true(this), if_condition_is_false(this); |
| 315 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 316 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 } | 1088 } |
| 1088 } | 1089 } |
| 1089 } | 1090 } |
| 1090 | 1091 |
| 1091 bound_ = true; | 1092 bound_ = true; |
| 1092 } | 1093 } |
| 1093 | 1094 |
| 1094 } // namespace compiler | 1095 } // namespace compiler |
| 1095 } // namespace internal | 1096 } // namespace internal |
| 1096 } // namespace v8 | 1097 } // namespace v8 |
| OLD | NEW |