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

Unified Diff: src/compiler.cc

Issue 898983002: Add strong mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code review + fixes Created 5 years, 10 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/compiler.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 5ac6353b3f4faea7b8837ca5da1841ed920d6cf3..9aab688c6a0492ecabd546c95969e7168437ce67 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1355,7 +1355,7 @@ Handle<SharedFunctionInfo> Compiler::CompileScript(
}
if (FLAG_use_strict) {
info.SetLanguageMode(
- static_cast<LanguageMode>(info.language_mode() | STRICT));
+ static_cast<LanguageMode>(info.language_mode() | STRICT_BIT));
}
result = CompileToplevel(&info);
@@ -1389,7 +1389,7 @@ Handle<SharedFunctionInfo> Compiler::CompileStreamedScript(
if (FLAG_use_strict) {
info->SetLanguageMode(
- static_cast<LanguageMode>(info->language_mode() | STRICT));
+ static_cast<LanguageMode>(info->language_mode() | STRICT_BIT));
}
// TODO(marja): FLAG_serialize_toplevel is not honoured and won't be; when the
// real code caching lands, streaming needs to be adapted to use it.
« no previous file with comments | « src/compiler.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698