| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 return deopt_info.raw(); | 143 return deopt_info.raw(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 | 146 |
| 147 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 147 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
| 148 intptr_t stub_ix) { | 148 intptr_t stub_ix) { |
| 149 // Calls do not need stubs, they share a deoptimization trampoline. | 149 // Calls do not need stubs, they share a deoptimization trampoline. |
| 150 ASSERT(reason() != kDeoptAtCall); | 150 ASSERT(reason() != kDeoptAtCall); |
| 151 Assembler* assem = compiler->assembler(); | 151 Assembler* assem = compiler->assembler(); |
| 152 #define __ assem-> | 152 #define __ assem-> |
| 153 __ Comment("Deopt stub for id %"Pd"", deopt_id()); | 153 __ Comment("Deopt stub for id %" Pd "", deopt_id()); |
| 154 __ Bind(entry_label()); | 154 __ Bind(entry_label()); |
| 155 if (FLAG_trap_on_deoptimization) __ break_(0); | 155 if (FLAG_trap_on_deoptimization) __ break_(0); |
| 156 | 156 |
| 157 ASSERT(deopt_env() != NULL); | 157 ASSERT(deopt_env() != NULL); |
| 158 | 158 |
| 159 __ BranchLink(&StubCode::DeoptimizeLabel()); | 159 __ BranchLink(&StubCode::DeoptimizeLabel()); |
| 160 set_pc_offset(assem->CodeSize()); | 160 set_pc_offset(assem->CodeSize()); |
| 161 __ break_(0); // TODO(regis): Remove breakpoint to save space. | 161 __ break_(0); // TODO(regis): Remove breakpoint to save space. |
| 162 #undef __ | 162 #undef __ |
| 163 } | 163 } |
| (...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1999 __ AddImmediate(SP, kDoubleSize); | 1999 __ AddImmediate(SP, kDoubleSize); |
| 2000 } | 2000 } |
| 2001 | 2001 |
| 2002 | 2002 |
| 2003 #undef __ | 2003 #undef __ |
| 2004 | 2004 |
| 2005 | 2005 |
| 2006 } // namespace dart | 2006 } // namespace dart |
| 2007 | 2007 |
| 2008 #endif // defined TARGET_ARCH_MIPS | 2008 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |