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 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1541 + num_args; | 1541 + num_args; |
1542 DeoptimizationContext deopt_context(start, | 1542 DeoptimizationContext deopt_context(start, |
1543 to_frame_size, | 1543 to_frame_size, |
1544 Array::Handle(code.object_table()), | 1544 Array::Handle(code.object_table()), |
1545 num_args); | 1545 num_args); |
1546 for (intptr_t to_index = 0; to_index < len; to_index++) { | 1546 for (intptr_t to_index = 0; to_index < len; to_index++) { |
1547 deopt_instructions[to_index]->Execute(&deopt_context, to_index); | 1547 deopt_instructions[to_index]->Execute(&deopt_context, to_index); |
1548 } | 1548 } |
1549 if (FLAG_trace_deopt) { | 1549 if (FLAG_trace_deopt) { |
1550 for (intptr_t i = 0; i < len; i++) { | 1550 for (intptr_t i = 0; i < len; i++) { |
1551 OS::Print("*%d. 0x%x [%s]\n", | 1551 OS::Print("*%d. [0x%0" PRIxPTR "] 0x%012" PRIxPTR " [%s]\n", |
1552 i, start[i], deopt_instructions[i]->ToCString()); | 1552 i, |
| 1553 &start[i], |
| 1554 start[i], |
| 1555 deopt_instructions[i]->ToCString()); |
1553 } | 1556 } |
1554 } | 1557 } |
1555 } | 1558 } |
1556 | 1559 |
1557 | 1560 |
1558 // The stack has been adjusted to fit all values for unoptimized frame. | 1561 // The stack has been adjusted to fit all values for unoptimized frame. |
1559 // Fill the unoptimized frame. | 1562 // Fill the unoptimized frame. |
1560 DEFINE_LEAF_RUNTIME_ENTRY(void, DeoptimizeFillFrame, uword last_fp) { | 1563 DEFINE_LEAF_RUNTIME_ENTRY(void, DeoptimizeFillFrame, uword last_fp) { |
1561 Isolate* isolate = Isolate::Current(); | 1564 Isolate* isolate = Isolate::Current(); |
1562 Zone zone(isolate); | 1565 Zone zone(isolate); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 } | 1714 } |
1712 } | 1715 } |
1713 } | 1716 } |
1714 // The cache is null terminated, therefore the loop above should never | 1717 // The cache is null terminated, therefore the loop above should never |
1715 // terminate by itself. | 1718 // terminate by itself. |
1716 UNREACHABLE(); | 1719 UNREACHABLE(); |
1717 return Code::null(); | 1720 return Code::null(); |
1718 } | 1721 } |
1719 | 1722 |
1720 } // namespace dart | 1723 } // namespace dart |
OLD | NEW |