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

Unified Diff: src/objects.cc

Issue 2257703003: Replace LANGUAGE_END with LAST_LANGUAGE_MODE (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 7a8664cfd6cbdfb4b5f854b4c5f6bbc6dddfd3f4..4b5f93f54a2108f092a414ea33a1a9bcba0a503f 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -9168,7 +9168,7 @@ Handle<Map> Map::AsLanguageMode(Handle<Map> initial_map,
Handle<Map> function_map(
Map::cast(isolate->native_context()->get(map_index)));
- STATIC_ASSERT(LANGUAGE_END == 2);
+ STATIC_ASSERT(LAST_LANGUAGE_MODE == 1);
DCHECK_EQ(STRICT, language_mode);
Handle<Symbol> transition_symbol =
isolate->factory()->strict_function_transition_symbol();
@@ -16013,7 +16013,7 @@ class StringSharedKey : public HashTableKey {
// collection.
Script* script(Script::cast(shared->script()));
hash ^= String::cast(script->source())->Hash();
- STATIC_ASSERT(LANGUAGE_END == 2);
+ STATIC_ASSERT(LAST_LANGUAGE_MODE == 1);
if (is_strict(language_mode)) hash ^= 0x8000;
hash += scope_position;
}
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698