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

Side by Side Diff: dart/runtime/vm/flow_graph_compiler.cc

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « dart/runtime/vm/flow_graph_compiler.h ('k') | dart/runtime/vm/flow_graph_optimizer.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/cha.h" 9 #include "vm/cha.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 block_info_(block_order_.length()), 77 block_info_(block_order_.length()),
78 deopt_infos_(), 78 deopt_infos_(),
79 static_calls_target_table_(GrowableObjectArray::ZoneHandle( 79 static_calls_target_table_(GrowableObjectArray::ZoneHandle(
80 GrowableObjectArray::New())), 80 GrowableObjectArray::New())),
81 is_optimizing_(is_optimizing), 81 is_optimizing_(is_optimizing),
82 may_reoptimize_(false), 82 may_reoptimize_(false),
83 double_class_(Class::ZoneHandle( 83 double_class_(Class::ZoneHandle(
84 Isolate::Current()->object_store()->double_class())), 84 Isolate::Current()->object_store()->double_class())),
85 float32x4_class_(Class::ZoneHandle( 85 float32x4_class_(Class::ZoneHandle(
86 Isolate::Current()->object_store()->float32x4_class())), 86 Isolate::Current()->object_store()->float32x4_class())),
87 uint32x4_class_(Class::ZoneHandle( 87 int32x4_class_(Class::ZoneHandle(
88 Isolate::Current()->object_store()->uint32x4_class())), 88 Isolate::Current()->object_store()->int32x4_class())),
89 list_class_(Class::ZoneHandle( 89 list_class_(Class::ZoneHandle(
90 Library::Handle(Library::CoreLibrary()). 90 Library::Handle(Library::CoreLibrary()).
91 LookupClass(Symbols::List()))), 91 LookupClass(Symbols::List()))),
92 parallel_move_resolver_(this), 92 parallel_move_resolver_(this),
93 pending_deoptimization_env_(NULL) { 93 pending_deoptimization_env_(NULL) {
94 ASSERT(assembler != NULL); 94 ASSERT(assembler != NULL);
95 ASSERT(!list_class_.IsNull()); 95 ASSERT(!list_class_.IsNull());
96 } 96 }
97 97
98 98
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 assembler()->Comment("You betcha!"); 498 assembler()->Comment("You betcha!");
499 intptr_t index = fpu_reg_slots[loc.fpu_reg()]; 499 intptr_t index = fpu_reg_slots[loc.fpu_reg()];
500 ASSERT(index >= 0); 500 ASSERT(index >= 0);
501 Value* value = it.CurrentValue(); 501 Value* value = it.CurrentValue();
502 switch (value->definition()->representation()) { 502 switch (value->definition()->representation()) {
503 case kUnboxedDouble: 503 case kUnboxedDouble:
504 case kUnboxedMint: 504 case kUnboxedMint:
505 it.SetCurrentLocation(Location::DoubleStackSlot(index)); 505 it.SetCurrentLocation(Location::DoubleStackSlot(index));
506 break; 506 break;
507 case kUnboxedFloat32x4: 507 case kUnboxedFloat32x4:
508 case kUnboxedUint32x4: 508 case kUnboxedInt32x4:
509 it.SetCurrentLocation(Location::QuadStackSlot(index)); 509 it.SetCurrentLocation(Location::QuadStackSlot(index));
510 break; 510 break;
511 default: 511 default:
512 UNREACHABLE(); 512 UNREACHABLE();
513 } 513 }
514 } 514 }
515 } 515 }
516 516
517 return env; 517 return env;
518 } 518 }
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 1204
1205 for (int i = 0; i < len; i++) { 1205 for (int i = 0; i < len; i++) {
1206 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), 1206 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i),
1207 &Function::ZoneHandle(ic_data.GetTargetAt(i)), 1207 &Function::ZoneHandle(ic_data.GetTargetAt(i)),
1208 ic_data.GetCountAt(i))); 1208 ic_data.GetCountAt(i)));
1209 } 1209 }
1210 sorted->Sort(HighestCountFirst); 1210 sorted->Sort(HighestCountFirst);
1211 } 1211 }
1212 1212
1213 } // namespace dart 1213 } // namespace dart
OLDNEW
« no previous file with comments | « dart/runtime/vm/flow_graph_compiler.h ('k') | dart/runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698