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

Unified Diff: pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart

Issue 2937203002: Add J-elements (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/loop_handler.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart
diff --git a/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart b/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart
index 2d2d5ff1ba9df4294fa814a05b5d0c88aaa056d9..fb7e173be47164c9ffc6bfcd32aef9c0053908f6 100644
--- a/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart
+++ b/pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart
@@ -1,6 +1,8 @@
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+
+import '../common/tasks.dart';
import '../elements/elements.dart';
import '../io/source_information.dart';
import '../js_backend/backend.dart' show JavaScriptBackend;
@@ -13,16 +15,17 @@ import 'nodes.dart';
import 'builder_kernel.dart';
/// Task for building SSA kernel IR generated from rasta.
-class RastaSsaBuilderTask extends SsaAstBuilderBase {
+class RastaSsaBuilder extends SsaAstBuilderBase {
final SourceInformationStrategy sourceInformationFactory;
String get name => 'SSA kernel builder';
- RastaSsaBuilderTask(JavaScriptBackend backend, this.sourceInformationFactory)
- : super(backend);
+ RastaSsaBuilder(CompilerTask task, JavaScriptBackend backend,
+ this.sourceInformationFactory)
+ : super(task, backend);
HGraph build(ElementCodegenWorkItem work, ClosedWorld closedWorld) {
- return measure(() {
+ return task.measure(() {
if (handleConstantField(work, closedWorld)) {
// No code is generated for `work.element`.
return null;
@@ -34,10 +37,10 @@ class RastaSsaBuilderTask extends SsaAstBuilderBase {
work.resolvedAst, kernel.nodeToAst, kernel.nodeToElement);
KernelAstTypeInferenceMap typeInferenceMap =
new KernelAstTypeInferenceMap(astAdapter);
- KernelSsaBuilder builder = new KernelSsaBuilder(
+ KernelSsaGraphBuilder builder = new KernelSsaGraphBuilder(
element,
element.contextClass,
- astAdapter.getInitialKernelNode(element),
+ astAdapter.getMemberNode(element),
backend.compiler,
astAdapter,
typeInferenceMap,
« no previous file with comments | « pkg/compiler/lib/src/ssa/loop_handler.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698