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

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

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove lazy bailout initializers. 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
Index: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index 0e2843d29d55f822c51a86b4347847ae1195e732..b20e5a475052742f1f4011f244a0c52157520f93 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -52,6 +52,10 @@ class SsaOptimizerTask extends CompilerTask {
}
bool trySpeculativeOptimizations(WorkItem work, HGraph graph) {
+ if (work.element.isField()) {
+ // Lazy initializers may not have bailout methods.
+ return false;
+ }
JavaScriptItemCompilationContext context = work.compilationContext;
HTypeMap types = context.types;
return measure(() {

Powered by Google App Engine
This is Rietveld 408576698