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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
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 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 const Class& cls, | 1637 const Class& cls, |
1638 Register result) | 1638 Register result) |
1639 : instruction_(instruction), | 1639 : instruction_(instruction), |
1640 cls_(cls), | 1640 cls_(cls), |
1641 result_(result) { } | 1641 result_(result) { } |
1642 | 1642 |
1643 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1643 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
1644 if (Assembler::EmittingComments()) { | 1644 if (Assembler::EmittingComments()) { |
1645 __ Comment("%s slow path allocation of %s", | 1645 __ Comment("%s slow path allocation of %s", |
1646 instruction_->DebugName(), | 1646 instruction_->DebugName(), |
1647 String::Handle(cls_.PrettyName()).ToCString()); | 1647 String::Handle(cls_.ScrubbedName()).ToCString()); |
1648 } | 1648 } |
1649 __ Bind(entry_label()); | 1649 __ Bind(entry_label()); |
1650 const Code& stub = Code::ZoneHandle( | 1650 const Code& stub = Code::ZoneHandle( |
1651 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); | 1651 compiler->zone(), StubCode::GetAllocationStubForClass(cls_)); |
1652 const StubEntry stub_entry(stub); | 1652 const StubEntry stub_entry(stub); |
1653 | 1653 |
1654 LocationSummary* locs = instruction_->locs(); | 1654 LocationSummary* locs = instruction_->locs(); |
1655 | 1655 |
1656 locs->live_registers()->Remove(Location::RegisterLocation(result_)); | 1656 locs->live_registers()->Remove(Location::RegisterLocation(result_)); |
1657 | 1657 |
(...skipping 5174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6832 __ Drop(1); | 6832 __ Drop(1); |
6833 __ popl(result); | 6833 __ popl(result); |
6834 } | 6834 } |
6835 | 6835 |
6836 | 6836 |
6837 } // namespace dart | 6837 } // namespace dart |
6838 | 6838 |
6839 #undef __ | 6839 #undef __ |
6840 | 6840 |
6841 #endif // defined TARGET_ARCH_IA32 | 6841 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |