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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 90713003: Dart2js option to dump info about compilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index f5561478853e163efe6d1ace4262ce510b64dcfc..19baa09433fc77bc27563f882ae2e6626598588b 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -15,6 +15,8 @@ class InterceptedElement extends ElementX {
: super(name, ElementKind.PARAMETER, enclosing);
DartType computeType(Compiler compiler) => type;
+
+ accept(ElementVisitor visitor) => visitor.visitInterceptedElement(this);
}
class SsaBuilderTask extends CompilerTask {
@@ -1315,9 +1317,8 @@ class SsaBuilder extends ResolvedVisitor with SsaGraphBuilderMixin {
assert(argumentIndex == compiledArguments.length);
// TODO(kasperl): Bad smell. We shouldn't be constructing elements here.
- returnElement = new ElementX("result",
- ElementKind.VARIABLE,
- function);
+ returnElement = new VariableElementX.synthetic("result",
+ ElementKind.VARIABLE, function);
newLocalsHandler.updateLocal(returnElement,
graph.addConstantNull(compiler));
elements = compiler.enqueuer.resolution.getCachedElements(function);
@@ -5365,9 +5366,8 @@ class SsaBuilder extends ResolvedVisitor with SsaGraphBuilderMixin {
open(startCatchBlock);
// TODO(kasperl): Bad smell. We shouldn't be constructing elements here.
// Note that the name of this element is irrelevant.
- Element element = new ElementX('exception',
- ElementKind.PARAMETER,
- currentElement);
+ Element element = new VariableElementX.synthetic('exception',
+ ElementKind.PARAMETER, currentElement);
exception = new HLocalValue(element, backend.nonNullType);
add(exception);
HInstruction oldRethrowableException = rethrowableException;

Powered by Google App Engine
This is Rietveld 408576698