| 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 "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 4833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4844 } | 4844 } |
| 4845 } | 4845 } |
| 4846 | 4846 |
| 4847 | 4847 |
| 4848 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { | 4848 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { |
| 4849 return MakeCallSummary(); | 4849 return MakeCallSummary(); |
| 4850 } | 4850 } |
| 4851 | 4851 |
| 4852 | 4852 |
| 4853 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4853 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4854 const Class& cls = Class::ZoneHandle(constructor().Owner()); | 4854 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 4855 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls)); | 4855 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
| 4856 const ExternalLabel label(cls.ToCString(), stub.EntryPoint()); | |
| 4857 compiler->GenerateCall(token_pos(), | 4856 compiler->GenerateCall(token_pos(), |
| 4858 &label, | 4857 &label, |
| 4859 PcDescriptors::kOther, | 4858 PcDescriptors::kOther, |
| 4860 locs()); | 4859 locs()); |
| 4861 __ Drop(ArgumentCount()); // Discard arguments. | 4860 __ Drop(ArgumentCount()); // Discard arguments. |
| 4862 } | 4861 } |
| 4863 | 4862 |
| 4864 | 4863 |
| 4865 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { | 4864 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { |
| 4866 return MakeCallSummary(); | 4865 return MakeCallSummary(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4878 PcDescriptors::kOther, | 4877 PcDescriptors::kOther, |
| 4879 locs()); | 4878 locs()); |
| 4880 __ Drop(2); // Discard type arguments and receiver. | 4879 __ Drop(2); // Discard type arguments and receiver. |
| 4881 } | 4880 } |
| 4882 | 4881 |
| 4883 } // namespace dart | 4882 } // namespace dart |
| 4884 | 4883 |
| 4885 #undef __ | 4884 #undef __ |
| 4886 | 4885 |
| 4887 #endif // defined TARGET_ARCH_IA32 | 4886 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |