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

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

Issue 10905305: Patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased. Created 8 years, 2 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
Index: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index 3bae34d7eef590950bdf7eceb3d81b061a00b920..ac3e59952ad323f9cae5a2cd468ab5c34c056b7a 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -205,7 +205,8 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
HInvokeStatic call = node.inputs[1];
Element element = call.inputs[0].element;
if (element.isConstructor() &&
- element.enclosingElement == compiler.listClass.defaultClass.element) {
+ element.enclosingElement.declaration ==
+ compiler.listClass.defaultClass.element) {
if (call.inputs.length == 2 && call.inputs[1].isInteger(types)) {
return call.inputs[1];
}

Powered by Google App Engine
This is Rietveld 408576698