| OLD | NEW |
| 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 | 4 |
| 5 #include "vm/code_generator.h" | 5 #include "vm/code_generator.h" |
| 6 | 6 |
| 7 #include "vm/assembler_macros.h" | 7 #include "vm/assembler_macros.h" |
| 8 #include "vm/ast.h" | 8 #include "vm/ast.h" |
| 9 #include "vm/code_patcher.h" | 9 #include "vm/code_patcher.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1691 DeferredDouble* deferred_double = Isolate::Current()->DetachDeferredDoubles(); | 1691 DeferredDouble* deferred_double = Isolate::Current()->DetachDeferredDoubles(); |
| 1692 | 1692 |
| 1693 while (deferred_double != NULL) { | 1693 while (deferred_double != NULL) { |
| 1694 DeferredDouble* current = deferred_double; | 1694 DeferredDouble* current = deferred_double; |
| 1695 deferred_double = deferred_double->next(); | 1695 deferred_double = deferred_double->next(); |
| 1696 | 1696 |
| 1697 RawDouble** slot = current->slot(); | 1697 RawDouble** slot = current->slot(); |
| 1698 *slot = Double::New(current->value()); | 1698 *slot = Double::New(current->value()); |
| 1699 | 1699 |
| 1700 if (FLAG_trace_deopt) { | 1700 if (FLAG_trace_deopt) { |
| 1701 OS::Print("materialing double at %p: %g\n", | 1701 OS::Print("materializing double at %"Px": %g\n", |
| 1702 current->slot(), | 1702 reinterpret_cast<uword>(current->slot()), |
| 1703 current->value()); |
| 1704 } |
| 1705 |
| 1706 delete current; |
| 1707 } |
| 1708 |
| 1709 DeferredMint* deferred_mint = Isolate::Current()->DetachDeferredMints(); |
| 1710 |
| 1711 while (deferred_mint != NULL) { |
| 1712 DeferredMint* current = deferred_mint; |
| 1713 deferred_mint = deferred_mint->next(); |
| 1714 |
| 1715 RawMint** slot = current->slot(); |
| 1716 ASSERT(!Smi::IsValid64(current->value())); |
| 1717 *slot = Mint::New(current->value()); |
| 1718 |
| 1719 if (FLAG_trace_deopt) { |
| 1720 OS::Print("materializing mint at %"Px": %"Pd64"\n", |
| 1721 reinterpret_cast<uword>(current->slot()), |
| 1703 current->value()); | 1722 current->value()); |
| 1704 } | 1723 } |
| 1705 | 1724 |
| 1706 delete current; | 1725 delete current; |
| 1707 } | 1726 } |
| 1708 } | 1727 } |
| 1709 | 1728 |
| 1710 | 1729 |
| 1711 } // namespace dart | 1730 } // namespace dart |
| OLD | NEW |