| 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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 const Class& cls, | 1810 const Class& cls, |
| 1811 Register result) | 1811 Register result) |
| 1812 : instruction_(instruction), | 1812 : instruction_(instruction), |
| 1813 cls_(cls), | 1813 cls_(cls), |
| 1814 result_(result) { } | 1814 result_(result) { } |
| 1815 | 1815 |
| 1816 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1816 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1817 if (Assembler::EmittingComments()) { | 1817 if (Assembler::EmittingComments()) { |
| 1818 __ Comment("%s slow path allocation of %s", | 1818 __ Comment("%s slow path allocation of %s", |
| 1819 instruction_->DebugName(), | 1819 instruction_->DebugName(), |
| 1820 String::Handle(cls_.PrettyName()).ToCString()); | 1820 String::Handle(cls_.ScrubbedName()).ToCString()); |
| 1821 } | 1821 } |
| 1822 __ Bind(entry_label()); | 1822 __ Bind(entry_label()); |
| 1823 const Code& stub = Code::ZoneHandle( | 1823 const Code& stub = Code::ZoneHandle( |
| 1824 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); | 1824 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); |
| 1825 const StubEntry stub_entry(stub); | 1825 const StubEntry stub_entry(stub); |
| 1826 | 1826 |
| 1827 LocationSummary* locs = instruction_->locs(); | 1827 LocationSummary* locs = instruction_->locs(); |
| 1828 | 1828 |
| 1829 locs->live_registers()->Remove(Location::RegisterLocation(result_)); | 1829 locs->live_registers()->Remove(Location::RegisterLocation(result_)); |
| 1830 | 1830 |
| (...skipping 4992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6823 1, | 6823 1, |
| 6824 locs()); | 6824 locs()); |
| 6825 __ Drop(1); | 6825 __ Drop(1); |
| 6826 __ Pop(result); | 6826 __ Pop(result); |
| 6827 } | 6827 } |
| 6828 | 6828 |
| 6829 | 6829 |
| 6830 } // namespace dart | 6830 } // namespace dart |
| 6831 | 6831 |
| 6832 #endif // defined TARGET_ARCH_ARM | 6832 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |