Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: src/preparser.cc

Issue 1161393007: OLD type Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/preparser.h ('k') | src/scanner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.cc
diff --git a/src/preparser.cc b/src/preparser.cc
index 348c6b61ab2f4b3da1de8ff7f077f61f52ce98b8..da8e572ee29ef91ebc8d4b5e5d10e9e99c46e768 100644
--- a/src/preparser.cc
+++ b/src/preparser.cc
@@ -251,6 +251,8 @@ void PreParser::ParseStatementList(int end_token, bool* ok,
} else if (statement.IsUseStrongLiteral() && allow_strong_mode()) {
scope_->SetLanguageMode(static_cast<LanguageMode>(
scope_->language_mode() | STRICT_BIT | STRONG_BIT));
+ } else if (statement.IsUseAsmLiteral()) {
+ scope_->SetAsmMode(ASM_MODULE);
} else if (!statement.IsStringLiteral()) {
directive_prologue = false;
}
@@ -1106,7 +1108,8 @@ void PreParser::ParseLazyFunctionLiteralBody(bool* ok,
log_->LogFunction(body_start, body_end,
function_state_->materialized_literal_count(),
function_state_->expected_property_count(), language_mode(),
- scope_->uses_super_property(), scope_->calls_eval());
+ asm_mode(), scope_->uses_super_property(),
+ scope_->calls_eval());
}
« no previous file with comments | « src/preparser.h ('k') | src/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698