Chromium Code Reviews| Index: compiler/java/com/google/dart/compiler/backend/js/BasicOptimizationStrategy.java |
| diff --git a/compiler/java/com/google/dart/compiler/backend/js/BasicOptimizationStrategy.java b/compiler/java/com/google/dart/compiler/backend/js/BasicOptimizationStrategy.java |
| index 6e98bb0684ebf895c9d0af5a656839e0d0232454..ad15100b411d1e35b295e50bfc1e431ba9603229 100644 |
| --- a/compiler/java/com/google/dart/compiler/backend/js/BasicOptimizationStrategy.java |
| +++ b/compiler/java/com/google/dart/compiler/backend/js/BasicOptimizationStrategy.java |
| @@ -423,7 +423,7 @@ class BasicOptimizationStrategy implements OptimizationStrategy { |
| // For now we only inline classes that don't have Only immediate subtypes of object that are |
| // not subclassed. |
| // We will refine this in the near future to include arbitrary class hierarchies. |
| - if (classElement.getModifiers().isNative()) { |
| + if (classElement.getNativeName() != null) { |
|
mmendez
2012/01/18 16:27:54
Nit: I'm not sure how many other places might assu
|
| return false; |
| } |
| List<ConstructorElement> constructors = classElement.getConstructors(); |