OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return builder->CreateDeoptInfo(deopt_table); | 156 return builder->CreateDeoptInfo(deopt_table); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 160 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
161 intptr_t stub_ix) { | 161 intptr_t stub_ix) { |
162 // Calls do not need stubs, they share a deoptimization trampoline. | 162 // Calls do not need stubs, they share a deoptimization trampoline. |
163 ASSERT(reason() != ICData::kDeoptAtCall); | 163 ASSERT(reason() != ICData::kDeoptAtCall); |
164 Assembler* assem = compiler->assembler(); | 164 Assembler* assem = compiler->assembler(); |
165 #define __ assem-> | 165 #define __ assem-> |
166 __ Comment("Deopt stub for id %" Pd "", deopt_id()); | 166 __ Comment("%s", Name()); |
167 __ Bind(entry_label()); | 167 __ Bind(entry_label()); |
168 if (FLAG_trap_on_deoptimization) { | 168 if (FLAG_trap_on_deoptimization) { |
169 __ bkpt(0); | 169 __ bkpt(0); |
170 } | 170 } |
171 | 171 |
172 ASSERT(deopt_env() != NULL); | 172 ASSERT(deopt_env() != NULL); |
173 | 173 |
174 StubCode* stub_code = compiler->isolate()->stub_code(); | 174 StubCode* stub_code = compiler->isolate()->stub_code(); |
175 __ BranchLink(&stub_code->DeoptimizeLabel()); | 175 __ BranchLink(&stub_code->DeoptimizeLabel()); |
176 set_pc_offset(assem->CodeSize()); | 176 set_pc_offset(assem->CodeSize()); |
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 DRegister dreg = EvenDRegisterOf(reg); | 1772 DRegister dreg = EvenDRegisterOf(reg); |
1773 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1773 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1774 } | 1774 } |
1775 | 1775 |
1776 | 1776 |
1777 #undef __ | 1777 #undef __ |
1778 | 1778 |
1779 } // namespace dart | 1779 } // namespace dart |
1780 | 1780 |
1781 #endif // defined TARGET_ARCH_ARM | 1781 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |