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

Side by Side Diff: lib/compiler/implementation/compiler.dart

Issue 10119010: Start propagating non-primitive types in the backend, and fold instructions that know about the typ… (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
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 bool allowSpeculativeOptimization = true; 9 bool allowSpeculativeOptimization = true;
10 List<HTypeGuard> guards = const <HTypeGuard>[]; 10 List<HTypeGuard> guards = const <HTypeGuard>[];
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 void registerGetOfStaticFunction(FunctionElement element) { 378 void registerGetOfStaticFunction(FunctionElement element) {
379 registerStaticUse(element); 379 registerStaticUse(element);
380 universe.staticFunctionsNeedingGetter.add(element); 380 universe.staticFunctionsNeedingGetter.add(element);
381 } 381 }
382 382
383 void registerDynamicInvocation(SourceString methodName, Selector selector) { 383 void registerDynamicInvocation(SourceString methodName, Selector selector) {
384 assert(selector !== null); 384 assert(selector !== null);
385 enqueuer.registerInvocation(methodName, selector); 385 enqueuer.registerInvocation(methodName, selector);
386 } 386 }
387 387
388 void registerDynamicInvocationOf(Element element) {
389 addToWorkList(element);
390 }
391
388 void registerDynamicGetter(SourceString methodName) { 392 void registerDynamicGetter(SourceString methodName) {
389 enqueuer.registerGetter(methodName); 393 enqueuer.registerGetter(methodName);
390 } 394 }
391 395
392 void registerDynamicSetter(SourceString methodName) { 396 void registerDynamicSetter(SourceString methodName) {
393 enqueuer.registerSetter(methodName); 397 enqueuer.registerSetter(methodName);
394 } 398 }
395 399
396 void registerInstantiatedClass(ClassElement element) { 400 void registerInstantiatedClass(ClassElement element) {
397 universe.instantiatedClasses.add(element); 401 universe.instantiatedClasses.add(element);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 555 }
552 } 556 }
553 557
554 class SourceSpan { 558 class SourceSpan {
555 final Uri uri; 559 final Uri uri;
556 final int begin; 560 final int begin;
557 final int end; 561 final int end;
558 562
559 const SourceSpan(this.uri, this.begin, this.end); 563 const SourceSpan(this.uri, this.begin, this.end);
560 } 564 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/compile_time_constants.dart ('k') | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698