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

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

Issue 2302363003: No longer store the compilation-context in WorkItem. (Closed)
Patch Set: ... lint Created 4 years, 3 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
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/compiler.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 library dart2js.common.work; 5 library dart2js.common.work;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../elements/elements.dart' show AstElement; 9 import '../elements/elements.dart' show AstElement;
10 import '../enqueue.dart' show Enqueuer; 10 import '../enqueue.dart' show Enqueuer;
11 import '../universe/world_impact.dart' show WorldImpact; 11 import '../universe/world_impact.dart' show WorldImpact;
12 12
13 /**
14 * Contains backend-specific data that is used throughout the compilation of
15 * one work item.
16 */
17 class ItemCompilationContext {}
18
19 abstract class WorkItem { 13 abstract class WorkItem {
20 final ItemCompilationContext compilationContext; 14 /// Element on which the work will be done.
21 /**
22 * Documentation wanted -- johnniwinther
23 *
24 * Invariant: [element] must be a declaration element.
25 */
26 final AstElement element; 15 final AstElement element;
27 16
28 WorkItem(this.element, this.compilationContext) { 17 WorkItem(this.element) {
29 assert(invariant(element, element.isDeclaration)); 18 assert(invariant(element, element.isDeclaration));
30 } 19 }
31 20
32 WorldImpact run(Compiler compiler, Enqueuer world); 21 WorldImpact run(Compiler compiler, Enqueuer world);
33 } 22 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698