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

Side by Side Diff: frog/leg/compiler.dart

Issue 9327001: Implement super initializers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 10 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 | frog/leg/elements/elements.dart » ('j') | frog/leg/ssa/builder.dart » ('J')
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 class WorkItem { 5 class WorkItem {
6 final Element element; 6 final Element element;
7 TreeElements resolutionTree; 7 TreeElements resolutionTree;
8 Function run; 8 Function run;
9 Map<int, BailoutInfo> bailouts = null; 9 Map<int, BailoutInfo> bailouts = null;
10 bool allowSpeculativeOptimization = true; 10 bool allowSpeculativeOptimization = true;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 registerInstantiatedClass(element.enclosingElement); 259 registerInstantiatedClass(element.enclosingElement);
260 } 260 }
261 worklist.add(new WorkItem.toCompile(element)); 261 worklist.add(new WorkItem.toCompile(element));
262 } 262 }
263 263
264 void registerStaticUse(Element element) { 264 void registerStaticUse(Element element) {
265 addToWorklist(element); 265 addToWorklist(element);
266 } 266 }
267 267
268 void registerDynamicInvocation(SourceString methodName, Selector selector) { 268 void registerDynamicInvocation(SourceString methodName, Selector selector) {
269 assert(selector !== null);
269 Set<Invocation> existing = universe.invokedNames[methodName]; 270 Set<Invocation> existing = universe.invokedNames[methodName];
270 if (existing == null) { 271 if (existing == null) {
271 universe.invokedNames[methodName] = new Set.from(<Selector>[selector]); 272 universe.invokedNames[methodName] = new Set.from(<Selector>[selector]);
272 } else { 273 } else {
273 existing.add(selector); 274 existing.add(selector);
274 } 275 }
275 } 276 }
276 277
277 void registerDynamicGetter(SourceString methodName) { 278 void registerDynamicGetter(SourceString methodName) {
278 universe.invokedGetters.add(methodName); 279 universe.invokedGetters.add(methodName);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 340
340 class CompilerCancelledException implements Exception { 341 class CompilerCancelledException implements Exception {
341 final String reason; 342 final String reason;
342 CompilerCancelledException(this.reason); 343 CompilerCancelledException(this.reason);
343 344
344 String toString() { 345 String toString() {
345 String banner = 'compiler cancelled'; 346 String banner = 'compiler cancelled';
346 return (reason !== null) ? '$banner: $reason' : '$banner'; 347 return (reason !== null) ? '$banner: $reason' : '$banner';
347 } 348 }
348 } 349 }
OLDNEW
« no previous file with comments | « no previous file | frog/leg/elements/elements.dart » ('j') | frog/leg/ssa/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698