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

Unified Diff: compiler/java/com/google/dart/compiler/backend/js/BasicOptimizationStrategy.java

Issue 9250005: Fix dartc in optimized mode (broken in r3358). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Created 8 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 | « no previous file | compiler/lib/implementation/array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | compiler/lib/implementation/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698