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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_mips.cc ('k') | runtime/vm/symbols.h » ('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_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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 4506 matching lines...) Expand 10 before | Expand all | Expand 10 after
4517 } 4517 }
4518 } 4518 }
4519 4519
4520 4520
4521 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const { 4521 LocationSummary* AllocateObjectInstr::MakeLocationSummary() const {
4522 return MakeCallSummary(); 4522 return MakeCallSummary();
4523 } 4523 }
4524 4524
4525 4525
4526 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4526 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
4527 const Class& cls = Class::ZoneHandle(constructor().Owner()); 4527 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls()));
4528 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls)); 4528 const ExternalLabel label(cls().ToCString(), stub.EntryPoint());
4529 const ExternalLabel label(cls.ToCString(), stub.EntryPoint());
4530 compiler->GenerateCall(token_pos(), 4529 compiler->GenerateCall(token_pos(),
4531 &label, 4530 &label,
4532 PcDescriptors::kOther, 4531 PcDescriptors::kOther,
4533 locs()); 4532 locs());
4534 __ Drop(ArgumentCount()); // Discard arguments. 4533 __ Drop(ArgumentCount()); // Discard arguments.
4535 } 4534 }
4536 4535
4537 4536
4538 LocationSummary* CreateClosureInstr::MakeLocationSummary() const { 4537 LocationSummary* CreateClosureInstr::MakeLocationSummary() const {
4539 return MakeCallSummary(); 4538 return MakeCallSummary();
(...skipping 11 matching lines...) Expand all
4551 PcDescriptors::kOther, 4550 PcDescriptors::kOther,
4552 locs()); 4551 locs());
4553 __ Drop(2); // Discard type arguments and receiver. 4552 __ Drop(2); // Discard type arguments and receiver.
4554 } 4553 }
4555 4554
4556 } // namespace dart 4555 } // namespace dart
4557 4556
4558 #undef __ 4557 #undef __
4559 4558
4560 #endif // defined TARGET_ARCH_X64 4559 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698