Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index b43e10f107eb4420f9f2f0e82118249d25432c11..4fe89be172459d648df67ee72e9e0caa7ed705c5 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -166,12 +166,6 @@ bool FunctionLiteral::AllowsLazyCompilation() { |
} |
-bool FunctionLiteral::AllowOptimize() { |
- // We can't deal with heap-allocated locals. |
- return scope()->num_heap_slots() == 0; |
-} |
- |
- |
ObjectLiteral::Property::Property(Literal* key, Expression* value) { |
emit_store_ = true; |
key_ = key; |