Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: runtime/vm/intermediate_language_mips.cc

Issue 19370003: Enable allocation sinking for closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698