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

Side by Side Diff: runtime/vm/intrinsifier.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #include "vm/assembler.h" 6 #include "vm/assembler.h"
7 #include "vm/intrinsifier.h" 7 #include "vm/intrinsifier.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 Instance::ElementSizeFor(kArrayCid), // index scale 587 Instance::ElementSizeFor(kArrayCid), // index scale
588 kArrayCid, 588 kArrayCid,
589 Isolate::kNoDeoptId, 589 Isolate::kNoDeoptId,
590 builder.TokenPos())); 590 builder.TokenPos()));
591 builder.AddIntrinsicReturn(new Value(result)); 591 builder.AddIntrinsicReturn(new Value(result));
592 return true; 592 return true;
593 } 593 }
594 594
595 595
596 bool Intrinsifier::Build_GrowableArraySetIndexed(FlowGraph* flow_graph) { 596 bool Intrinsifier::Build_GrowableArraySetIndexed(FlowGraph* flow_graph) {
597 if (Isolate::Current()->TypeChecksEnabled()) { 597 if (Isolate::Current()->flags().type_checks()) {
598 return false; 598 return false;
599 } 599 }
600 600
601 GraphEntryInstr* graph_entry = flow_graph->graph_entry(); 601 GraphEntryInstr* graph_entry = flow_graph->graph_entry();
602 TargetEntryInstr* normal_entry = graph_entry->normal_entry(); 602 TargetEntryInstr* normal_entry = graph_entry->normal_entry();
603 BlockBuilder builder(flow_graph, normal_entry); 603 BlockBuilder builder(flow_graph, normal_entry);
604 604
605 Definition* value = builder.AddParameter(1); 605 Definition* value = builder.AddParameter(1);
606 Definition* index = builder.AddParameter(2); 606 Definition* index = builder.AddParameter(2);
607 Definition* array = builder.AddParameter(3); 607 Definition* array = builder.AddParameter(3);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 new Value(growable_array), 682 new Value(growable_array),
683 new Value(length), 683 new Value(length),
684 kNoStoreBarrier, 684 kNoStoreBarrier,
685 builder.TokenPos())); 685 builder.TokenPos()));
686 Definition* null_def = builder.AddNullDefinition(); 686 Definition* null_def = builder.AddNullDefinition();
687 builder.AddIntrinsicReturn(new Value(null_def)); 687 builder.AddIntrinsicReturn(new Value(null_def));
688 return true; 688 return true;
689 } 689 }
690 690
691 } // namespace dart 691 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698