OLD | NEW |
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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 bitmap->Set(bitmap->Length(), false); | 554 bitmap->Set(bitmap->Length(), false); |
555 } | 555 } |
556 } | 556 } |
557 } | 557 } |
558 } | 558 } |
559 // General purpose registers have the lowest register number at the | 559 // General purpose registers have the lowest register number at the |
560 // highest address (i.e., first in the stackmap). | 560 // highest address (i.e., first in the stackmap). |
561 for (intptr_t i = 0; i < kNumberOfCpuRegisters; ++i) { | 561 for (intptr_t i = 0; i < kNumberOfCpuRegisters; ++i) { |
562 Register reg = static_cast<Register>(i); | 562 Register reg = static_cast<Register>(i); |
563 if (locs->live_registers()->ContainsRegister(reg)) { | 563 if (locs->live_registers()->ContainsRegister(reg)) { |
564 bitmap->Set(bitmap->Length(), true); | 564 bitmap->Set(bitmap->Length(), locs->live_registers()->IsTagged(reg)); |
565 } | 565 } |
566 } | 566 } |
567 } | 567 } |
568 | 568 |
569 intptr_t register_bit_count = bitmap->Length() - StackSize(); | 569 intptr_t register_bit_count = bitmap->Length() - StackSize(); |
570 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), | 570 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), |
571 bitmap, | 571 bitmap, |
572 register_bit_count); | 572 register_bit_count); |
573 } | 573 } |
574 } | 574 } |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 | 1325 |
1326 for (int i = 0; i < len; i++) { | 1326 for (int i = 0; i < len; i++) { |
1327 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), | 1327 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), |
1328 &Function::ZoneHandle(ic_data.GetTargetAt(i)), | 1328 &Function::ZoneHandle(ic_data.GetTargetAt(i)), |
1329 ic_data.GetCountAt(i))); | 1329 ic_data.GetCountAt(i))); |
1330 } | 1330 } |
1331 sorted->Sort(HighestCountFirst); | 1331 sorted->Sort(HighestCountFirst); |
1332 } | 1332 } |
1333 | 1333 |
1334 } // namespace dart | 1334 } // namespace dart |
OLD | NEW |