| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 return builder->CreateDeoptInfo(deopt_table); | 152 return builder->CreateDeoptInfo(deopt_table); |
| 153 } | 153 } |
| 154 | 154 |
| 155 | 155 |
| 156 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 156 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
| 157 intptr_t stub_ix) { | 157 intptr_t stub_ix) { |
| 158 // Calls do not need stubs, they share a deoptimization trampoline. | 158 // Calls do not need stubs, they share a deoptimization trampoline. |
| 159 ASSERT(reason() != ICData::kDeoptAtCall); | 159 ASSERT(reason() != ICData::kDeoptAtCall); |
| 160 Assembler* assem = compiler->assembler(); | 160 Assembler* assem = compiler->assembler(); |
| 161 #define __ assem-> | 161 #define __ assem-> |
| 162 __ Comment("Deopt stub for id %" Pd "", deopt_id()); | 162 __ Comment("%s", Name()); |
| 163 __ Bind(entry_label()); | 163 __ Bind(entry_label()); |
| 164 if (FLAG_trap_on_deoptimization) { | 164 if (FLAG_trap_on_deoptimization) { |
| 165 __ break_(0); | 165 __ break_(0); |
| 166 } | 166 } |
| 167 | 167 |
| 168 ASSERT(deopt_env() != NULL); | 168 ASSERT(deopt_env() != NULL); |
| 169 | 169 |
| 170 StubCode* stub_code = compiler->isolate()->stub_code(); | 170 StubCode* stub_code = compiler->isolate()->stub_code(); |
| 171 __ BranchLink(&stub_code->DeoptimizeLabel()); | 171 __ BranchLink(&stub_code->DeoptimizeLabel()); |
| 172 set_pc_offset(assem->CodeSize()); | 172 set_pc_offset(assem->CodeSize()); |
| (...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1816 __ AddImmediate(SP, kDoubleSize); | 1816 __ AddImmediate(SP, kDoubleSize); |
| 1817 } | 1817 } |
| 1818 | 1818 |
| 1819 | 1819 |
| 1820 #undef __ | 1820 #undef __ |
| 1821 | 1821 |
| 1822 | 1822 |
| 1823 } // namespace dart | 1823 } // namespace dart |
| 1824 | 1824 |
| 1825 #endif // defined TARGET_ARCH_MIPS | 1825 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |