Chromium Code Reviews| Index: src/ast/ast.cc |
| diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
| index 97d1f9d7701638713ef2ba9815026352f1a21b73..b5df51ad2cb4c547e2a2f92277971ce42a225789 100644 |
| --- a/src/ast/ast.cc |
| +++ b/src/ast/ast.cc |
| @@ -288,6 +288,10 @@ Token::Value Assignment::binary_op() const { |
| return Token::ILLEGAL; |
| } |
| +void FunctionLiteral::set_should_eager_compile() { |
| + scope()->SetShouldCompileLazily(false); |
|
marja
2016/10/06 11:53:06
FunctionLiteral::set_should_eagerly_compile but Sc
|
| + bit_field_ = ShouldEagerCompile::update(bit_field_, true); |
| +} |
| bool FunctionLiteral::AllowsLazyCompilation() { |
| return scope()->AllowsLazyCompilation(); |