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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 861713002: Handle super-method invocations in CPS->JS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 11 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 | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_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 dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 163
164 void registerStaticInvocation(Element element) { 164 void registerStaticInvocation(Element element) {
165 world.registerStaticUse(element); 165 world.registerStaticUse(element);
166 } 166 }
167 167
168 void registerSuperInvocation(Element element) { 168 void registerSuperInvocation(Element element) {
169 world.registerStaticUse(element); 169 world.registerStaticUse(element);
170 } 170 }
171 171
172 void registerDirectInvocation(Element element) {
173 world.registerStaticUse(element);
174 }
175
172 void registerInstantiation(InterfaceType type) { 176 void registerInstantiation(InterfaceType type) {
173 world.registerInstantiatedType(type, this); 177 world.registerInstantiatedType(type, this);
174 } 178 }
175 } 179 }
176 180
177 /// [WorkItem] used exclusively by the [CodegenEnqueuer]. 181 /// [WorkItem] used exclusively by the [CodegenEnqueuer].
178 class CodegenWorkItem extends WorkItem { 182 class CodegenWorkItem extends WorkItem {
179 Registry registry; 183 Registry registry;
180 final TreeElements resolutionTree; 184 final TreeElements resolutionTree;
181 185
(...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 InterfaceType get nullType => nullClass.computeType(compiler); 2388 InterfaceType get nullType => nullClass.computeType(compiler);
2385 2389
2386 @override 2390 @override
2387 InterfaceType get numType => numClass.computeType(compiler); 2391 InterfaceType get numType => numClass.computeType(compiler);
2388 2392
2389 @override 2393 @override
2390 InterfaceType get stringType => stringClass.computeType(compiler); 2394 InterfaceType get stringType => stringClass.computeType(compiler);
2391 } 2395 }
2392 2396
2393 typedef void InternalErrorFunction(Spannable location, String message); 2397 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698