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

Unified Diff: src/contexts.h

Issue 177683002: Mode clean-up pt 1: rename classic/non-strict mode to sloppy mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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.cc ('k') | src/debug.cc » ('j') | src/globals.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.h
diff --git a/src/contexts.h b/src/contexts.h
index b2e0661a348557a864150c67fa78985b53f18452..407e69b052c36f3f5a0ed4033bd59db1e4f71f68 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -492,10 +492,10 @@ class Context: public FixedArray {
static int FunctionMapIndex(LanguageMode language_mode, bool is_generator) {
return is_generator
- ? (language_mode == CLASSIC_MODE
+ ? (language_mode == SLOPPY_MODE
? GENERATOR_FUNCTION_MAP_INDEX
: STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX)
- : (language_mode == CLASSIC_MODE
+ : (language_mode == SLOPPY_MODE
? FUNCTION_MAP_INDEX
: STRICT_MODE_FUNCTION_MAP_INDEX);
}
« no previous file with comments | « src/compiler.cc ('k') | src/debug.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698