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

Unified Diff: src/objects.h

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/ic/ic.h ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 286f6fb798a0bb5175f962ac54a48366782cfd19..b49efaa1feb9eb6eb18d01870813954a9c919434 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4325,12 +4325,12 @@ class ScopeInfo : public FixedArray {
// Properties of scopes.
class ScopeTypeField : public BitField<ScopeType, 0, 4> {};
class CallsEvalField : public BitField<bool, 4, 1> {};
- STATIC_ASSERT(LANGUAGE_END == 2);
- class LanguageModeField : public BitField<LanguageMode, 5, 1> {};
- class FunctionVariableField : public BitField<FunctionVariableInfo, 6, 2> {};
- class FunctionVariableMode : public BitField<VariableMode, 8, 3> {};
- class AsmModuleField : public BitField<bool, 11, 1> {};
- class AsmFunctionField : public BitField<bool, 12, 1> {};
+ STATIC_ASSERT(LANGUAGE_END == 3);
+ class LanguageModeField : public BitField<LanguageMode, 5, 2> {};
+ class FunctionVariableField : public BitField<FunctionVariableInfo, 7, 2> {};
+ class FunctionVariableMode : public BitField<VariableMode, 9, 3> {};
+ class AsmModuleField : public BitField<bool, 12, 1> {};
+ class AsmFunctionField : public BitField<bool, 13, 1> {};
// BitFields representing the encoded information for context locals in the
// ContextLocalInfoEntries part.
@@ -7181,6 +7181,7 @@ class SharedFunctionInfo: public HeapObject {
kAllowLazyCompilationWithoutContext,
kOptimizationDisabled,
kStrictModeFunction,
+ kStrongModeFunction,
kUsesArguments,
kUsesSuperProperty,
kUsesSuperConstructorCall,
@@ -7203,7 +7204,7 @@ class SharedFunctionInfo: public HeapObject {
kCompilerHintsCount // Pseudo entry
};
// Add hints for other modes when they're added.
- STATIC_ASSERT(LANGUAGE_END == 2);
+ STATIC_ASSERT(LANGUAGE_END == 3);
class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 5> {};
« no previous file with comments | « src/ic/ic.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698