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

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

Issue 10919123: Reapply Issue 10911006. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/builder.dart
diff --git a/lib/compiler/implementation/ssa/builder.dart b/lib/compiler/implementation/ssa/builder.dart
index ac81eb7ea4e948c1e6ce2ab5e0d42d56852cb1e1..69cb30d2bcdef5c5fe6461e09365baaef5670acb 100644
--- a/lib/compiler/implementation/ssa/builder.dart
+++ b/lib/compiler/implementation/ssa/builder.dart
@@ -2712,7 +2712,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
if (element != null && element.isErroneous()) {
ErroneousElement error = element;
Message message = error.errorMessage;
- if (message.kind === MessageKind.CANNOT_FIND_CONSTRUCTOR) {
+ if (message.kind == MessageKind.CANNOT_FIND_CONSTRUCTOR) {
Element helper =
compiler.findHelper(const SourceString('throwNoSuchMethod'));
DartString receiverLiteral = new DartString.literal('');
@@ -2733,7 +2733,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
HInstruction arguments = new HLiteralList(inputs);
add(arguments);
pushInvokeHelper3(helper, receiver, name, arguments);
- } else if (message.kind === MessageKind.CANNOT_RESOLVE) {
+ } else if (message.kind == MessageKind.CANNOT_RESOLVE) {
generateRuntimeError(node.send, message.message);
} else {
compiler.internalError('unexpected unresolved constructor call',
« no previous file with comments | « lib/compiler/implementation/resolver.dart ('k') | lib/compiler/implementation/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698