Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 5c85b97ba655848215c623222509fc4528ea1b31..41618d50c941bb4df8f220825dc849fb4953517e 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -917,8 +917,6 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info, Scope** scope, |
FunctionLiteral::ANONYMOUS_EXPRESSION, FunctionLiteral::kGlobalOrEval, |
FunctionLiteral::kNotParenthesized, FunctionKind::kNormalFunction, 0); |
result->set_ast_properties(factory()->visitor()->ast_properties()); |
- result->set_dont_optimize_reason( |
- factory()->visitor()->dont_optimize_reason()); |
} |
} |
@@ -3502,7 +3500,6 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
? FunctionLiteral::kIsParenthesized |
: FunctionLiteral::kNotParenthesized; |
AstProperties ast_properties; |
- BailoutReason dont_optimize_reason = kNoReason; |
// Parse function body. |
{ |
AstNodeFactory<AstConstructionVisitor> function_factory( |
@@ -3671,7 +3668,6 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
CHECK_OK); |
} |
ast_properties = *factory()->visitor()->ast_properties(); |
- dont_optimize_reason = factory()->visitor()->dont_optimize_reason(); |
if (allow_harmony_scoping() && strict_mode() == STRICT) { |
CheckConflictingVarDeclarations(scope, CHECK_OK); |
@@ -3685,7 +3681,6 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
FunctionLiteral::kIsFunction, parenthesized, kind, pos); |
function_literal->set_function_token_position(function_token_pos); |
function_literal->set_ast_properties(&ast_properties); |
- function_literal->set_dont_optimize_reason(dont_optimize_reason); |
if (fni_ != NULL && should_infer_name) fni_->AddFunction(function_literal); |
return function_literal; |