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

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

Issue 252333002: Use GPRs for mints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 bitmap->Set(bitmap->Length(), false); 529 bitmap->Set(bitmap->Length(), false);
530 } 530 }
531 } 531 }
532 } 532 }
533 } 533 }
534 // General purpose registers have the lowest register number at the 534 // General purpose registers have the lowest register number at the
535 // highest address (i.e., first in the stackmap). 535 // highest address (i.e., first in the stackmap).
536 for (intptr_t i = 0; i < kNumberOfCpuRegisters; ++i) { 536 for (intptr_t i = 0; i < kNumberOfCpuRegisters; ++i) {
537 Register reg = static_cast<Register>(i); 537 Register reg = static_cast<Register>(i);
538 if (locs->live_registers()->ContainsRegister(reg)) { 538 if (locs->live_registers()->ContainsRegister(reg)) {
539 bitmap->Set(bitmap->Length(), true); 539 bitmap->Set(bitmap->Length(), locs->live_registers()->IsTagged(reg));
540 } 540 }
541 } 541 }
542 } 542 }
543 543
544 intptr_t register_bit_count = bitmap->Length() - StackSize(); 544 intptr_t register_bit_count = bitmap->Length() - StackSize();
545 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), 545 stackmap_table_builder_->AddEntry(assembler()->CodeSize(),
546 bitmap, 546 bitmap,
547 register_bit_count); 547 register_bit_count);
548 } 548 }
549 } 549 }
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 1295
1296 for (int i = 0; i < len; i++) { 1296 for (int i = 0; i < len; i++) {
1297 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), 1297 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i),
1298 &Function::ZoneHandle(ic_data.GetTargetAt(i)), 1298 &Function::ZoneHandle(ic_data.GetTargetAt(i)),
1299 ic_data.GetCountAt(i))); 1299 ic_data.GetCountAt(i)));
1300 } 1300 }
1301 sorted->Sort(HighestCountFirst); 1301 sorted->Sort(HighestCountFirst);
1302 } 1302 }
1303 1303
1304 } // namespace dart 1304 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698