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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 11304021: Add NativeEnqueuer to work with the Enqueuer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
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 part of js_backend; 5 part of js_backend;
6 6
7 typedef void Recompile(Element element); 7 typedef void Recompile(Element element);
8 8
9 class ReturnInfo { 9 class ReturnInfo {
10 HType returnType; 10 HType returnType;
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 compiler.codegenWorld.addBailoutCode(work, codeBuffer); 741 compiler.codegenWorld.addBailoutCode(work, codeBuffer);
742 optimizer.prepareForSpeculativeOptimizations(work, graph); 742 optimizer.prepareForSpeculativeOptimizations(work, graph);
743 optimizer.optimize(work, graph, true); 743 optimizer.optimize(work, graph, true);
744 } 744 }
745 CodeBuffer codeBuffer = generator.generateCode(work, graph); 745 CodeBuffer codeBuffer = generator.generateCode(work, graph);
746 compiler.codegenWorld.addGeneratedCode(work, codeBuffer); 746 compiler.codegenWorld.addGeneratedCode(work, codeBuffer);
747 invalidateAfterCodegen.forEach(compiler.enqueuer.codegen.eagerRecompile); 747 invalidateAfterCodegen.forEach(compiler.enqueuer.codegen.eagerRecompile);
748 invalidateAfterCodegen.clear(); 748 invalidateAfterCodegen.clear();
749 } 749 }
750 750
751 void processNativeClasses(Enqueuer world, 751
752 Collection<LibraryElement> libraries) { 752 native.NativeEnqueuer nativeResolutionEnqueuer(Enqueuer world) =>
753 native.processNativeClasses(world, emitter, libraries); 753 new native.NativeResolutionEnqueuer(world, compiler);
754 } 754
755 native.NativeEnqueuer nativeCodegenEnqueuer(Enqueuer world) =>
756 new native.NativeCodegenEnqueuer(world, compiler, emitter);
757
758 //void processNativeClasses(Enqueuer world,
759 // Collection<LibraryElement> libraries) {
760 // native.processNativeClasses(world, emitter, libraries);
761 //}
755 762
756 void assembleProgram() { 763 void assembleProgram() {
757 emitter.assembleProgram(); 764 emitter.assembleProgram();
758 } 765 }
759 766
760 /** 767 /**
761 * Documentation wanted -- johnniwinther 768 * Documentation wanted -- johnniwinther
762 * 769 *
763 * Invariant: [element] must be a declaration element. 770 * Invariant: [element] must be a declaration element.
764 */ 771 */
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 print("Inferred return types:"); 959 print("Inferred return types:");
953 print("----------------------"); 960 print("----------------------");
954 dumpReturnTypes(); 961 dumpReturnTypes();
955 print(""); 962 print("");
956 print("Inferred field types:"); 963 print("Inferred field types:");
957 print("------------------------"); 964 print("------------------------");
958 fieldTypes.dump(); 965 fieldTypes.dump();
959 print(""); 966 print("");
960 } 967 }
961 } 968 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698