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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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_arm.cc ('k') | runtime/vm/intermediate_language_mips.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_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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698