Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 0eea0e66181149e75cae1c52cb3622ef1326ea03..4fd1914bbfdbf7c90cc84773f4a11c938c181d64 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -84,9 +84,9 @@ |
} |
PreParser::PreParseResult PreParser::PreParseLazyFunction( |
- FunctionKind kind, DeclarationScope* function_scope, bool parsing_module, |
- ParserRecorder* log, bool is_inner_function, bool may_abort, |
- int* use_counts) { |
+ DeclarationScope* function_scope, bool parsing_module, ParserRecorder* log, |
+ bool is_inner_function, bool may_abort, int* use_counts) { |
+ DCHECK_EQ(FUNCTION_SCOPE, function_scope->scope_type()); |
parsing_module_ = parsing_module; |
log_ = log; |
use_counts_ = use_counts; |
@@ -98,7 +98,7 @@ |
// PreParser. |
DCHECK_NULL(scope_state_); |
FunctionState function_state(&function_state_, &scope_state_, function_scope, |
- kind); |
+ function_scope->function_kind()); |
DCHECK_EQ(Token::LBRACE, scanner()->current_token()); |
bool ok = true; |
int start_position = peek_position(); |
@@ -113,7 +113,7 @@ |
ReportUnexpectedToken(scanner()->current_token()); |
} else { |
DCHECK_EQ(Token::RBRACE, scanner()->peek()); |
- if (is_strict(scope()->language_mode())) { |
+ if (is_strict(function_scope->language_mode())) { |
int end_pos = scanner()->location().end_pos; |
CheckStrictOctalLiteral(start_position, end_pos, &ok); |
CheckDecimalLiteralWithLeadingZero(start_position, end_pos); |