Chromium Code Reviews| Index: runtime/vm/code_generator.cc |
| =================================================================== |
| --- runtime/vm/code_generator.cc (revision 12765) |
| +++ runtime/vm/code_generator.cc (working copy) |
| @@ -1710,13 +1710,35 @@ |
| *slot = Double::New(current->value()); |
| if (FLAG_trace_deopt) { |
| - OS::Print("materialing double at %p: %g\n", |
| - current->slot(), |
| + OS::Print("materialing double at %"Px": %g\n", |
|
srdjan
2012/09/24 17:29:24
s/materialing/materializing/
Florian Schneider
2012/09/26 11:51:33
Done.
|
| + reinterpret_cast<uword>(current->slot()), |
| current->value()); |
| } |
| delete current; |
| } |
| + |
| + DeferredMint* deferred_mint = Isolate::Current()->DetachDeferredMints(); |
| + |
| + while (deferred_mint != NULL) { |
| + DeferredMint* current = deferred_mint; |
| + deferred_mint = deferred_mint->next(); |
| + |
| + RawInteger** slot = current->slot(); |
| + if (Smi::IsValid64(current->value())) { |
| + *slot = Smi::New(current->value()); |
| + } else { |
| + *slot = Mint::New(current->value()); |
| + } |
| + |
| + if (FLAG_trace_deopt) { |
| + OS::Print("materializing mint at %"Px": %"Pd64"\n", |
| + reinterpret_cast<uword>(current->slot()), |
| + current->value()); |
| + } |
| + |
| + delete current; |
| + } |
| } |