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

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

Issue 2526123002: dart2js-kernel: Implement Let and PropertySet. (Closed)
Patch Set: dartfmt Created 4 years 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 | « no previous file | pkg/compiler/lib/src/kernel/kernel_visitor.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection' show Queue; 6 import 'dart:collection' show Queue;
7 7
8 import 'package:kernel/ast.dart' as ir; 8 import 'package:kernel/ast.dart' as ir;
9 import 'package:kernel/checks.dart' show CheckParentPointers; 9 import 'package:kernel/checks.dart' show CheckParentPointers;
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 final Map<TypeVariableElement, ir.TypeParameter> factoryTypeParameters = 66 final Map<TypeVariableElement, ir.TypeParameter> factoryTypeParameters =
67 <TypeVariableElement, ir.TypeParameter>{}; 67 <TypeVariableElement, ir.TypeParameter>{};
68 68
69 final Set<ir.TreeNode> checkedNodes = new Set<ir.TreeNode>(); 69 final Set<ir.TreeNode> checkedNodes = new Set<ir.TreeNode>();
70 70
71 final Map<LibraryElement, Map<String, int>> mixinApplicationNamesByLibrary = 71 final Map<LibraryElement, Map<String, int>> mixinApplicationNamesByLibrary =
72 <LibraryElement, Map<String, int>>{}; 72 <LibraryElement, Map<String, int>>{};
73 73
74 final Map<ir.Node, Element> nodeToElement = <ir.Node, Element>{}; 74 final Map<ir.Node, Element> nodeToElement = <ir.Node, Element>{};
75 final Map<ir.Node, Node> nodeToAst = <ir.Node, Node>{}; 75 final Map<ir.Node, Node> nodeToAst = <ir.Node, Node>{};
76 final Map<ir.Node, Node> nodeToAstOperator = <ir.Node, Node>{};
76 77
77 /// FIFO queue of work that needs to be completed before the returned AST 78 /// FIFO queue of work that needs to be completed before the returned AST
78 /// nodes are correct. 79 /// nodes are correct.
79 final Queue<WorkItem> workQueue = new Queue<WorkItem>(); 80 final Queue<WorkItem> workQueue = new Queue<WorkItem>();
80 81
81 Kernel(this.compiler); 82 Kernel(this.compiler);
82 83
83 void addWork(Element element, WorkAction action) { 84 void addWork(Element element, WorkAction action) {
84 workQueue.addLast(new WorkItem(element, action)); 85 workQueue.addLast(new WorkItem(element, action));
85 } 86 }
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 } 755 }
755 756
756 class ConstructorTarget { 757 class ConstructorTarget {
757 final ConstructorElement element; 758 final ConstructorElement element;
758 final DartType type; 759 final DartType type;
759 760
760 ConstructorTarget(this.element, this.type); 761 ConstructorTarget(this.element, this.type);
761 762
762 String toString() => "ConstructorTarget($element, $type)"; 763 String toString() => "ConstructorTarget($element, $type)";
763 } 764 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698