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

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

Issue 814833008: dart2js: rename Elements.isErroneousElement to Elements.isErroneous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/resolution/members.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 3e7d7f8f7dea348fc4c7505706593f56549e1c97..3feb37a992b7d931a98fba4355ec46894757ca9b 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -3215,7 +3215,7 @@ class SsaBuilder extends ResolvedVisitor {
push(new HStatic(element.declaration, backend.nonNullType));
// TODO(ahe): This should be registered in codegen.
registry.registerGetOfStaticFunction(element.declaration);
- } else if (Elements.isErroneousElement(element)) {
+ } else if (Elements.isErroneous(element)) {
if (element is ErroneousElement) {
// An erroneous element indicates an unresolved static getter.
generateThrowNoSuchMethod(
@@ -3272,7 +3272,7 @@ class SsaBuilder extends ResolvedVisitor {
addWithPosition(new HStaticStore(element, value), location);
}
stack.add(value);
- } else if (Elements.isErroneousElement(element)) {
+ } else if (Elements.isErroneous(element)) {
List<HInstruction> arguments =
send == null ? const <HInstruction>[] : <HInstruction>[value];
// An erroneous element indicates an unresolved static setter.
@@ -4668,11 +4668,11 @@ class SsaBuilder extends ResolvedVisitor {
visitNewExpression(ast.NewExpression node) {
Element element = elements[node.send];
final bool isSymbolConstructor = element == compiler.symbolConstructor;
- if (!Elements.isErroneousElement(element)) {
+ if (!Elements.isErroneous(element)) {
ConstructorElement function = element;
element = function.effectiveTarget;
}
- if (Elements.isErroneousElement(element)) {
+ if (Elements.isErroneous(element)) {
if (element is !ErroneousElement) {
// TODO(ahe): Do something like [generateWrongArgumentCountError].
stack.add(graph.addConstantNull(compiler));
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698