| 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 "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 3826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3837 | 3837 |
| 3838 | 3838 |
| 3839 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { | 3839 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { |
| 3840 return MakeCallSummary(); | 3840 return MakeCallSummary(); |
| 3841 } | 3841 } |
| 3842 | 3842 |
| 3843 | 3843 |
| 3844 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3844 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3845 __ TraceSimMsg("AllocateObjectInstr"); | 3845 __ TraceSimMsg("AllocateObjectInstr"); |
| 3846 __ Comment("AllocateObjectInstr"); | 3846 __ Comment("AllocateObjectInstr"); |
| 3847 const Class& cls = Class::ZoneHandle(constructor().Owner()); | 3847 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 3848 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls)); | 3848 const ExternalLabel label(cls().ToCString(), stub.EntryPoint()); |
| 3849 const ExternalLabel label(cls.ToCString(), stub.EntryPoint()); | |
| 3850 compiler->GenerateCall(token_pos(), | 3849 compiler->GenerateCall(token_pos(), |
| 3851 &label, | 3850 &label, |
| 3852 PcDescriptors::kOther, | 3851 PcDescriptors::kOther, |
| 3853 locs()); | 3852 locs()); |
| 3854 __ Drop(ArgumentCount()); // Discard arguments. | 3853 __ Drop(ArgumentCount()); // Discard arguments. |
| 3855 } | 3854 } |
| 3856 | 3855 |
| 3857 | 3856 |
| 3858 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { | 3857 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { |
| 3859 return MakeCallSummary(); | 3858 return MakeCallSummary(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3870 compiler->GenerateCall(token_pos(), | 3869 compiler->GenerateCall(token_pos(), |
| 3871 &label, | 3870 &label, |
| 3872 PcDescriptors::kOther, | 3871 PcDescriptors::kOther, |
| 3873 locs()); | 3872 locs()); |
| 3874 __ Drop(2); // Discard type arguments and receiver. | 3873 __ Drop(2); // Discard type arguments and receiver. |
| 3875 } | 3874 } |
| 3876 | 3875 |
| 3877 } // namespace dart | 3876 } // namespace dart |
| 3878 | 3877 |
| 3879 #endif // defined TARGET_ARCH_MIPS | 3878 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |