OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 const Class& cls, | 1662 const Class& cls, |
1663 Register result) | 1663 Register result) |
1664 : instruction_(instruction), | 1664 : instruction_(instruction), |
1665 cls_(cls), | 1665 cls_(cls), |
1666 result_(result) { } | 1666 result_(result) { } |
1667 | 1667 |
1668 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1668 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
1669 if (Assembler::EmittingComments()) { | 1669 if (Assembler::EmittingComments()) { |
1670 __ Comment("%s slow path allocation of %s", | 1670 __ Comment("%s slow path allocation of %s", |
1671 instruction_->DebugName(), | 1671 instruction_->DebugName(), |
1672 String::Handle(cls_.PrettyName()).ToCString()); | 1672 String::Handle(cls_.ScrubbedName()).ToCString()); |
1673 } | 1673 } |
1674 __ Bind(entry_label()); | 1674 __ Bind(entry_label()); |
1675 const Code& stub = Code::ZoneHandle(compiler->zone(), | 1675 const Code& stub = Code::ZoneHandle(compiler->zone(), |
1676 StubCode::GetAllocationStubForClass(cls_)); | 1676 StubCode::GetAllocationStubForClass(cls_)); |
1677 const StubEntry stub_entry(stub); | 1677 const StubEntry stub_entry(stub); |
1678 | 1678 |
1679 LocationSummary* locs = instruction_->locs(); | 1679 LocationSummary* locs = instruction_->locs(); |
1680 | 1680 |
1681 locs->live_registers()->Remove(Location::RegisterLocation(result_)); | 1681 locs->live_registers()->Remove(Location::RegisterLocation(result_)); |
1682 | 1682 |
(...skipping 3898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5581 1, | 5581 1, |
5582 locs()); | 5582 locs()); |
5583 __ Drop(1); | 5583 __ Drop(1); |
5584 __ Pop(result); | 5584 __ Pop(result); |
5585 } | 5585 } |
5586 | 5586 |
5587 | 5587 |
5588 } // namespace dart | 5588 } // namespace dart |
5589 | 5589 |
5590 #endif // defined TARGET_ARCH_ARM64 | 5590 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |