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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 return builder->CreateDeoptInfo(deopt_table); | 148 return builder->CreateDeoptInfo(deopt_table); |
149 } | 149 } |
150 | 150 |
151 | 151 |
152 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 152 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
153 intptr_t stub_ix) { | 153 intptr_t stub_ix) { |
154 // Calls do not need stubs, they share a deoptimization trampoline. | 154 // Calls do not need stubs, they share a deoptimization trampoline. |
155 ASSERT(reason() != ICData::kDeoptAtCall); | 155 ASSERT(reason() != ICData::kDeoptAtCall); |
156 Assembler* assem = compiler->assembler(); | 156 Assembler* assem = compiler->assembler(); |
157 #define __ assem-> | 157 #define __ assem-> |
158 __ Comment("Deopt stub for id %" Pd "", deopt_id()); | 158 __ Comment("%s", Name()); |
159 __ Bind(entry_label()); | 159 __ Bind(entry_label()); |
160 if (FLAG_trap_on_deoptimization) { | 160 if (FLAG_trap_on_deoptimization) { |
161 __ brk(0); | 161 __ brk(0); |
162 } | 162 } |
163 | 163 |
164 ASSERT(deopt_env() != NULL); | 164 ASSERT(deopt_env() != NULL); |
165 | 165 |
166 StubCode* stub_code = compiler->isolate()->stub_code(); | 166 StubCode* stub_code = compiler->isolate()->stub_code(); |
167 __ BranchLink(&stub_code->DeoptimizeLabel(), PP); | 167 __ BranchLink(&stub_code->DeoptimizeLabel(), PP); |
168 set_pc_offset(assem->CodeSize()); | 168 set_pc_offset(assem->CodeSize()); |
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1735 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
1736 UNIMPLEMENTED(); | 1736 UNIMPLEMENTED(); |
1737 } | 1737 } |
1738 | 1738 |
1739 | 1739 |
1740 #undef __ | 1740 #undef __ |
1741 | 1741 |
1742 } // namespace dart | 1742 } // namespace dart |
1743 | 1743 |
1744 #endif // defined TARGET_ARCH_ARM64 | 1744 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |