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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1842 const Class& cls, | 1842 const Class& cls, |
1843 Register result) | 1843 Register result) |
1844 : instruction_(instruction), | 1844 : instruction_(instruction), |
1845 cls_(cls), | 1845 cls_(cls), |
1846 result_(result) { } | 1846 result_(result) { } |
1847 | 1847 |
1848 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1848 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
1849 if (Assembler::EmittingComments()) { | 1849 if (Assembler::EmittingComments()) { |
1850 __ Comment("%s slow path allocation of %s", | 1850 __ Comment("%s slow path allocation of %s", |
1851 instruction_->DebugName(), | 1851 instruction_->DebugName(), |
1852 String::Handle(cls_.PrettyName()).ToCString()); | 1852 String::Handle(cls_.ScrubbedName()).ToCString()); |
1853 } | 1853 } |
1854 __ Bind(entry_label()); | 1854 __ Bind(entry_label()); |
1855 const Code& stub = Code::ZoneHandle( | 1855 const Code& stub = Code::ZoneHandle( |
1856 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); | 1856 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); |
1857 const StubEntry stub_entry(stub); | 1857 const StubEntry stub_entry(stub); |
1858 | 1858 |
1859 LocationSummary* locs = instruction_->locs(); | 1859 LocationSummary* locs = instruction_->locs(); |
1860 locs->live_registers()->Remove(Location::RegisterLocation(result_)); | 1860 locs->live_registers()->Remove(Location::RegisterLocation(result_)); |
1861 | 1861 |
1862 compiler->SaveLiveRegisters(locs); | 1862 compiler->SaveLiveRegisters(locs); |
(...skipping 3740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5603 1, | 5603 1, |
5604 locs()); | 5604 locs()); |
5605 __ lw(result, Address(SP, 1 * kWordSize)); | 5605 __ lw(result, Address(SP, 1 * kWordSize)); |
5606 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5606 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
5607 } | 5607 } |
5608 | 5608 |
5609 | 5609 |
5610 } // namespace dart | 5610 } // namespace dart |
5611 | 5611 |
5612 #endif // defined TARGET_ARCH_MIPS | 5612 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |