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

Unified Diff: src/objects.h

Issue 898983002: Add strong mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index b5da265ecc70d9d5d738d5708a3b409fa9f75bea..6fab48e56dc24f07c6f6bbf882bc59b77bd8fab3 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4321,12 +4321,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.
@@ -7173,6 +7173,7 @@ class SharedFunctionInfo: public HeapObject {
kAllowLazyCompilationWithoutContext,
kOptimizationDisabled,
kStrictModeFunction,
+ kSaneModeFunction,
kUsesArguments,
kUsesSuperProperty,
kUsesSuperConstructorCall,
@@ -7195,7 +7196,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> {};

Powered by Google App Engine
This is Rietveld 408576698