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

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

Issue 11364175: Cleanup how we query for interceptors. (Closed) Base URL: http://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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('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 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 692
693 Element get cyclicThrowHelper { 693 Element get cyclicThrowHelper {
694 return compiler.findHelper(const SourceString("throwCyclicInit")); 694 return compiler.findHelper(const SourceString("throwCyclicInit"));
695 } 695 }
696 696
697 JavaScriptItemCompilationContext createItemCompilationContext() { 697 JavaScriptItemCompilationContext createItemCompilationContext() {
698 return new JavaScriptItemCompilationContext(); 698 return new JavaScriptItemCompilationContext();
699 } 699 }
700 700
701 Element getInterceptor(Selector selector) { 701 Element getInterceptor(Selector selector) {
702 return interceptors.getStaticInterceptorBySelector(selector); 702 return interceptors.getStaticInterceptor(selector);
703 } 703 }
704 704
705 void enqueueHelpers(Enqueuer world) { 705 void enqueueHelpers(Enqueuer world) {
706 enqueueAllTopLevelFunctions(compiler.jsHelperLibrary, world); 706 enqueueAllTopLevelFunctions(compiler.jsHelperLibrary, world);
707 707
708 jsIndexingBehaviorInterface = 708 jsIndexingBehaviorInterface =
709 compiler.findHelper(const SourceString('JavaScriptIndexingBehavior')); 709 compiler.findHelper(const SourceString('JavaScriptIndexingBehavior'));
710 if (jsIndexingBehaviorInterface != null) { 710 if (jsIndexingBehaviorInterface != null) {
711 world.registerIsCheck(jsIndexingBehaviorInterface.computeType(compiler)); 711 world.registerIsCheck(jsIndexingBehaviorInterface.computeType(compiler));
712 } 712 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 print("Inferred return types:"); 952 print("Inferred return types:");
953 print("----------------------"); 953 print("----------------------");
954 dumpReturnTypes(); 954 dumpReturnTypes();
955 print(""); 955 print("");
956 print("Inferred field types:"); 956 print("Inferred field types:");
957 print("------------------------"); 957 print("------------------------");
958 fieldTypes.dump(); 958 fieldTypes.dump();
959 print(""); 959 print("");
960 } 960 }
961 } 961 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698