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

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

Issue 9978014: Implement closure with type arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 void FlowGraphCompiler::VisitCreateClosure(CreateClosureComp* comp) { 629 void FlowGraphCompiler::VisitCreateClosure(CreateClosureComp* comp) {
630 const Function& function = comp->function(); 630 const Function& function = comp->function();
631 const Code& stub = Code::Handle( 631 const Code& stub = Code::Handle(
632 StubCode::GetAllocationStubForClosure(function)); 632 StubCode::GetAllocationStubForClosure(function));
633 const ExternalLabel label(function.ToCString(), stub.EntryPoint()); 633 const ExternalLabel label(function.ToCString(), stub.EntryPoint());
634 GenerateCall(comp->token_index(), &label, PcDescriptors::kOther); 634 GenerateCall(comp->token_index(), &label, PcDescriptors::kOther);
635 635
636 const Class& cls = Class::Handle(function.signature_class()); 636 const Class& cls = Class::Handle(function.signature_class());
637 if (cls.HasTypeArguments()) { 637 if (cls.HasTypeArguments()) {
638 UNIMPLEMENTED(); // We should have bailed out.
639 __ popq(RCX); // Discard type arguments. 638 __ popq(RCX); // Discard type arguments.
640 } 639 }
641 if (function.IsImplicitInstanceClosureFunction()) { 640 if (function.IsImplicitInstanceClosureFunction()) {
642 __ popq(RCX); // Discard receiver. 641 __ popq(RCX); // Discard receiver.
643 } 642 }
644 } 643 }
645 644
646 645
647 void FlowGraphCompiler::VisitNativeLoadField(NativeLoadFieldComp* comp) { 646 void FlowGraphCompiler::VisitNativeLoadField(NativeLoadFieldComp* comp) {
648 __ popq(RAX); 647 __ popq(RAX);
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { 1280 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
1282 // We don't compile exception handlers yet. 1281 // We don't compile exception handlers yet.
1283 code.set_exception_handlers( 1282 code.set_exception_handlers(
1284 ExceptionHandlers::Handle(ExceptionHandlers::New(0))); 1283 ExceptionHandlers::Handle(ExceptionHandlers::New(0)));
1285 } 1284 }
1286 1285
1287 1286
1288 } // namespace dart 1287 } // namespace dart
1289 1288
1290 #endif // defined TARGET_ARCH_X64 1289 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698