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

Unified Diff: src/objects.h

Issue 2375793002: Reland: [modules] Properly initialize declared variables. (Closed)
Patch Set: Update CompilerHints. Created 4 years, 3 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/interpreter/bytecode-generator.cc ('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 d8c04247577f6a44f9b2db560dd88e4da31057ff..ea086931a4d53768ab85c93eeb9a98d5669e4aa8 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4542,7 +4542,7 @@ class ScopeInfo : public FixedArray {
class HasSimpleParametersField
: public BitField<bool, AsmFunctionField::kNext, 1> {};
class FunctionKindField
- : public BitField<FunctionKind, HasSimpleParametersField::kNext, 9> {};
+ : public BitField<FunctionKind, HasSimpleParametersField::kNext, 10> {};
class HasOuterScopeInfoField
: public BitField<bool, FunctionKindField::kNext, 1> {};
class IsDebugEvaluateScopeField
@@ -7707,6 +7707,7 @@ class SharedFunctionInfo: public HeapObject {
kIsSetterFunction,
// byte 3
kIsAsyncFunction,
+ kIsModule,
kDeserialized,
kIsDeclaration,
kIsAsmWasmBroken,
@@ -7728,9 +7729,11 @@ class SharedFunctionInfo: public HeapObject {
ASSERT_FUNCTION_KIND_ORDER(kBaseConstructor, kIsBaseConstructor);
ASSERT_FUNCTION_KIND_ORDER(kGetterFunction, kIsGetterFunction);
ASSERT_FUNCTION_KIND_ORDER(kSetterFunction, kIsSetterFunction);
+ ASSERT_FUNCTION_KIND_ORDER(kAsyncFunction, kIsAsyncFunction);
+ ASSERT_FUNCTION_KIND_ORDER(kModule, kIsModule);
#undef ASSERT_FUNCTION_KIND_ORDER
- class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 9> {};
+ class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 10> {};
class DeoptCountBits : public BitField<int, 0, 4> {};
class OptReenableTriesBits : public BitField<int, 4, 18> {};
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698