diff --git a/deps/v8/src/objects.h b/deps/v8/src/objects.h index 563618ab71461c..83e103db510b89 100644 --- a/deps/v8/src/objects.h +++ b/deps/v8/src/objects.h @@ -4086,7 +4086,6 @@ class ScopeInfo : public FixedArray { FOR_EACH_NUMERIC_FIELD(FIELD_ACCESSORS) #undef FIELD_ACCESSORS - private: enum { #define DECL_INDEX(name) k##name, FOR_EACH_NUMERIC_FIELD(DECL_INDEX) @@ -4095,6 +4094,7 @@ class ScopeInfo : public FixedArray { kVariablePartIndex }; + private: // The layout of the variable part of a ScopeInfo is as follows: // 1. ParameterEntries: // This part stores the names of the parameters for function scopes. One diff --git a/deps/v8/tools/gen-postmortem-metadata.py b/deps/v8/tools/gen-postmortem-metadata.py index 19a44b8033a976..600da12a791ae9 100644 --- a/deps/v8/tools/gen-postmortem-metadata.py +++ b/deps/v8/tools/gen-postmortem-metadata.py @@ -132,6 +132,15 @@ 'value': 'JavaScriptFrameConstants::kFunctionOffset' }, { 'name': 'off_fp_args', 'value': 'JavaScriptFrameConstants::kLastParameterOffset' }, + + { 'name': 'scopeinfo_idx_nparams', + 'value': 'ScopeInfo::kParameterCount' }, + { 'name': 'scopeinfo_idx_nstacklocals', + 'value': 'ScopeInfo::kStackLocalCount' }, + { 'name': 'scopeinfo_idx_ncontextlocals', + 'value': 'ScopeInfo::kContextLocalCount' }, + { 'name': 'scopeinfo_idx_first_vars', + 'value': 'ScopeInfo::kVariablePartIndex' }, ]; #