| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1666 const Class& cls, | 1666 const Class& cls, |
| 1667 Register result) | 1667 Register result) |
| 1668 : instruction_(instruction), | 1668 : instruction_(instruction), |
| 1669 cls_(cls), | 1669 cls_(cls), |
| 1670 result_(result) { } | 1670 result_(result) { } |
| 1671 | 1671 |
| 1672 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 1672 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1673 if (Assembler::EmittingComments()) { | 1673 if (Assembler::EmittingComments()) { |
| 1674 __ Comment("%s slow path allocation of %s", | 1674 __ Comment("%s slow path allocation of %s", |
| 1675 instruction_->DebugName(), | 1675 instruction_->DebugName(), |
| 1676 String::Handle(cls_.PrettyName()).ToCString()); | 1676 String::Handle(cls_.ScrubbedName()).ToCString()); |
| 1677 } | 1677 } |
| 1678 __ Bind(entry_label()); | 1678 __ Bind(entry_label()); |
| 1679 const Code& stub = Code::ZoneHandle(compiler->zone(), | 1679 const Code& stub = Code::ZoneHandle(compiler->zone(), |
| 1680 StubCode::GetAllocationStubForClass(cls_)); | 1680 StubCode::GetAllocationStubForClass(cls_)); |
| 1681 const StubEntry stub_entry(stub); | 1681 const StubEntry stub_entry(stub); |
| 1682 | 1682 |
| 1683 LocationSummary* locs = instruction_->locs(); | 1683 LocationSummary* locs = instruction_->locs(); |
| 1684 | 1684 |
| 1685 locs->live_registers()->Remove(Location::RegisterLocation(result_)); | 1685 locs->live_registers()->Remove(Location::RegisterLocation(result_)); |
| 1686 | 1686 |
| (...skipping 4709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6396 __ Drop(1); | 6396 __ Drop(1); |
| 6397 __ popq(result); | 6397 __ popq(result); |
| 6398 } | 6398 } |
| 6399 | 6399 |
| 6400 | 6400 |
| 6401 } // namespace dart | 6401 } // namespace dart |
| 6402 | 6402 |
| 6403 #undef __ | 6403 #undef __ |
| 6404 | 6404 |
| 6405 #endif // defined TARGET_ARCH_X64 | 6405 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |