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

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

Issue 2884233002: Use entities in runtime_types (Closed)
Patch Set: Remove debug print Created 3 years, 7 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
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 library dart2js.enqueue; 5 library dart2js.enqueue;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import 'common/tasks.dart' show CompilerTask; 9 import 'common/tasks.dart' show CompilerTask;
10 import 'common/work.dart' show WorkItem; 10 import 'common/work.dart' show WorkItem;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 /// Called to notify to the backend that a class is implemented by an 107 /// Called to notify to the backend that a class is implemented by an
108 /// instantiated class. Any backend specific [WorldImpact] of this is 108 /// instantiated class. Any backend specific [WorldImpact] of this is
109 /// returned. 109 /// returned.
110 WorldImpact registerImplementedClass(ClassEntity cls); 110 WorldImpact registerImplementedClass(ClassEntity cls);
111 111
112 /// Called to register that a static function has been closurized. Any backend 112 /// Called to register that a static function has been closurized. Any backend
113 /// specific [WorldImpact] of this is returned. 113 /// specific [WorldImpact] of this is returned.
114 WorldImpact registerGetOfStaticFunction(); 114 WorldImpact registerGetOfStaticFunction();
115 115
116 /// Called to register that [member] has been closurized. Any backend specific 116 /// Called to register that [function] has been closurized. Any backend
117 /// [WorldImpact] of this is returned. 117 /// specific [WorldImpact] of this is returned.
118 WorldImpact registerClosurizedMember(MemberEntity member); 118 WorldImpact registerClosurizedMember(FunctionEntity function);
119 119
120 /// Called to register that [element] is statically known to be used. Any 120 /// Called to register that [element] is statically known to be used. Any
121 /// backend specific [WorldImpact] of this is returned. 121 /// backend specific [WorldImpact] of this is returned.
122 WorldImpact registerUsedElement(MemberEntity member); 122 WorldImpact registerUsedElement(MemberEntity member);
123 123
124 /// Called to register that [value] is statically known to be used. Any 124 /// Called to register that [value] is statically known to be used. Any
125 /// backend specific [WorldImpact] of this is returned. 125 /// backend specific [WorldImpact] of this is returned.
126 WorldImpact registerUsedConstant(ConstantValue value); 126 WorldImpact registerUsedConstant(ConstantValue value);
127 127
128 void onQueueOpen(Enqueuer enqueuer, FunctionEntity mainMethod, 128 void onQueueOpen(Enqueuer enqueuer, FunctionEntity mainMethod,
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 final Entity element; 592 final Entity element;
593 final DeferredActionFunction action; 593 final DeferredActionFunction action;
594 594
595 DeferredAction(this.element, this.action); 595 DeferredAction(this.element, this.action);
596 } 596 }
597 597
598 /// Interface for creating work items for enqueued member entities. 598 /// Interface for creating work items for enqueued member entities.
599 abstract class WorkItemBuilder { 599 abstract class WorkItemBuilder {
600 WorkItem createWorkItem(MemberEntity entity); 600 WorkItem createWorkItem(MemberEntity entity);
601 } 601 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698