Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2330063002: [stubs] Port StoreFastElementsStub to TurboFan. (Closed)
Patch Set: Retain removed, a comment added Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::kTagged, roots_array_start,
306 IntPtrConstant(root_index * kPointerSize), value); 306 IntPtrConstant(root_index * kPointerSize), value);
307 } 307 }
308 308
309 Node* CodeAssembler::Retain(Node* value) {
310 return raw_assembler_->Retain(value);
311 }
312
309 Node* CodeAssembler::Projection(int index, Node* value) { 313 Node* CodeAssembler::Projection(int index, Node* value) {
310 return raw_assembler_->Projection(index, value); 314 return raw_assembler_->Projection(index, value);
311 } 315 }
312 316
313 void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) { 317 void CodeAssembler::BranchIf(Node* condition, Label* if_true, Label* if_false) {
314 Label if_condition_is_true(this), if_condition_is_false(this); 318 Label if_condition_is_true(this), if_condition_is_false(this);
315 Branch(condition, &if_condition_is_true, &if_condition_is_false); 319 Branch(condition, &if_condition_is_true, &if_condition_is_false);
316 Bind(&if_condition_is_true); 320 Bind(&if_condition_is_true);
317 Goto(if_true); 321 Goto(if_true);
318 Bind(&if_condition_is_false); 322 Bind(&if_condition_is_false);
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 } 1091 }
1088 } 1092 }
1089 } 1093 }
1090 1094
1091 bound_ = true; 1095 bound_ = true;
1092 } 1096 }
1093 1097
1094 } // namespace compiler 1098 } // namespace compiler
1095 } // namespace internal 1099 } // namespace internal
1096 } // namespace v8 1100 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698