OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
7 | 7 |
8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
9 | 9 |
10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 } | 1103 } |
1104 } | 1104 } |
1105 } | 1105 } |
1106 | 1106 |
1107 VisitBlocks(); | 1107 VisitBlocks(); |
1108 | 1108 |
1109 __ brk(0); | 1109 __ brk(0); |
1110 ASSERT(assembler()->constant_pool_allowed()); | 1110 ASSERT(assembler()->constant_pool_allowed()); |
1111 GenerateDeferredCode(); | 1111 GenerateDeferredCode(); |
1112 | 1112 |
1113 if (is_optimizing()) { | 1113 if (is_optimizing() && Compiler::allow_recompilation()) { |
1114 // Leave enough space for patching in case of lazy deoptimization from | 1114 // Leave enough space for patching in case of lazy deoptimization from |
1115 // deferred code. | 1115 // deferred code. |
1116 for (intptr_t i = 0; | 1116 for (intptr_t i = 0; |
1117 i < CallPattern::kDeoptCallLengthInInstructions; | 1117 i < CallPattern::kDeoptCallLengthInInstructions; |
1118 ++i) { | 1118 ++i) { |
1119 __ orr(R0, ZR, Operand(R0)); // nop | 1119 __ orr(R0, ZR, Operand(R0)); // nop |
1120 } | 1120 } |
1121 lazy_deopt_pc_offset_ = assembler()->CodeSize(); | 1121 lazy_deopt_pc_offset_ = assembler()->CodeSize(); |
1122 __ BranchPatchable(*StubCode::DeoptimizeLazy_entry()); | 1122 __ BranchPatchable(*StubCode::DeoptimizeLazy_entry()); |
1123 } | 1123 } |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1819 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
1820 __ PopDouble(reg); | 1820 __ PopDouble(reg); |
1821 } | 1821 } |
1822 | 1822 |
1823 | 1823 |
1824 #undef __ | 1824 #undef __ |
1825 | 1825 |
1826 } // namespace dart | 1826 } // namespace dart |
1827 | 1827 |
1828 #endif // defined TARGET_ARCH_ARM64 | 1828 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |