Chromium Code Reviews| Index: src/ast.cc |
| diff --git a/src/ast.cc b/src/ast.cc |
| index c1ea0a8b3df790a271143bd8044e09b7964dfc5f..106d742919a2a4aa85dd87f823efdcefd1664dfe 100644 |
| --- a/src/ast.cc |
| +++ b/src/ast.cc |
| @@ -164,12 +164,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; |