| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 builder->AddCallerPc(slot_ix++); | 147 builder->AddCallerPc(slot_ix++); |
| 148 | 148 |
| 149 // PC marker. | 149 // PC marker. |
| 150 builder->AddPcMarker(previous->code(), slot_ix++); | 150 builder->AddPcMarker(previous->code(), slot_ix++); |
| 151 | 151 |
| 152 // For the outermost environment, set the incoming arguments. | 152 // For the outermost environment, set the incoming arguments. |
| 153 for (intptr_t i = previous->fixed_parameter_count() - 1; i >= 0; i--) { | 153 for (intptr_t i = previous->fixed_parameter_count() - 1; i >= 0; i--) { |
| 154 builder->AddCopy(previous->ValueAt(i), previous->LocationAt(i), slot_ix++); | 154 builder->AddCopy(previous->ValueAt(i), previous->LocationAt(i), slot_ix++); |
| 155 } | 155 } |
| 156 | 156 |
| 157 const DeoptInfo& deopt_info = | 157 return builder->CreateDeoptInfo(deopt_table); |
| 158 DeoptInfo::Handle(builder->CreateDeoptInfo(deopt_table)); | |
| 159 return deopt_info.raw(); | |
| 160 } | 158 } |
| 161 | 159 |
| 162 | 160 |
| 163 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 161 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
| 164 intptr_t stub_ix) { | 162 intptr_t stub_ix) { |
| 165 // Calls do not need stubs, they share a deoptimization trampoline. | 163 // Calls do not need stubs, they share a deoptimization trampoline. |
| 166 ASSERT(reason() != ICData::kDeoptAtCall); | 164 ASSERT(reason() != ICData::kDeoptAtCall); |
| 167 Assembler* assem = compiler->assembler(); | 165 Assembler* assem = compiler->assembler(); |
| 168 #define __ assem-> | 166 #define __ assem-> |
| 169 __ Comment("Deopt stub for id %" Pd "", deopt_id()); | 167 __ Comment("Deopt stub for id %" Pd "", deopt_id()); |
| (...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1785 DRegister dreg = EvenDRegisterOf(reg); | 1783 DRegister dreg = EvenDRegisterOf(reg); |
| 1786 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1784 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1787 } | 1785 } |
| 1788 | 1786 |
| 1789 | 1787 |
| 1790 #undef __ | 1788 #undef __ |
| 1791 | 1789 |
| 1792 } // namespace dart | 1790 } // namespace dart |
| 1793 | 1791 |
| 1794 #endif // defined TARGET_ARCH_ARM | 1792 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |