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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2331923002: Handle signature types and fields in kernel_impact (Closed)
Patch Set: Updated cf. comments. 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
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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 8 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
9 import '../common/tasks.dart' show CompilerTask; 9 import '../common/tasks.dart' show CompilerTask;
10 import '../compiler.dart'; 10 import '../compiler.dart';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 graph.sourceInformation = 78 graph.sourceInformation =
79 sourceInformationBuilder.buildVariableDeclaration(); 79 sourceInformationBuilder.buildVariableDeclaration();
80 this.localsHandler = 80 this.localsHandler =
81 new LocalsHandler(this, functionElement, null, compiler); 81 new LocalsHandler(this, functionElement, null, compiler);
82 this.astAdapter = new KernelAstAdapter( 82 this.astAdapter = new KernelAstAdapter(
83 compiler.backend, 83 compiler.backend,
84 resolvedAst, 84 resolvedAst,
85 kernel.nodeToAst, 85 kernel.nodeToAst,
86 kernel.nodeToElement, 86 kernel.nodeToElement,
87 kernel.functions, 87 kernel.functions,
88 kernel.fields,
88 kernel.classes, 89 kernel.classes,
89 kernel.libraries); 90 kernel.libraries);
90 } 91 }
91 92
92 HGraph build() { 93 HGraph build() {
93 // TODO(het): no reason to do this here... 94 // TODO(het): no reason to do this here...
94 HInstruction.idCounter = 0; 95 HInstruction.idCounter = 0;
95 if (function.kind == ir.ProcedureKind.Method || 96 if (function.kind == ir.ProcedureKind.Method ||
96 function.kind == ir.ProcedureKind.Operator) { 97 function.kind == ir.ProcedureKind.Operator) {
97 buildMethod(function, functionElement); 98 buildMethod(function, functionElement);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 visitThisExpression(ir.ThisExpression thisExpression) { 299 visitThisExpression(ir.ThisExpression thisExpression) {
299 stack.add(localsHandler.readThis()); 300 stack.add(localsHandler.readThis());
300 } 301 }
301 302
302 @override 303 @override
303 visitNot(ir.Not not) { 304 visitNot(ir.Not not) {
304 not.operand.accept(this); 305 not.operand.accept(this);
305 push(new HNot(popBoolified(), backend.boolType)); 306 push(new HNot(popBoolified(), backend.boolType));
306 } 307 }
307 } 308 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698