Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 10a493f5d6a13add7be2c55669aaf18b7d93bc70..d62bc4129588196d3f3faf6d7c1fd035b39bbaa6 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -64,7 +64,9 @@ Handle<ScopeInfo> ScopeInfo::Create(Isolate* isolate, Zone* zone, |
FunctionVariableMode::encode(function_variable_mode) | |
AsmModuleField::encode(scope->asm_module()) | |
AsmFunctionField::encode(scope->asm_function()) | |
- IsSimpleParameterListField::encode(simple_parameter_list); |
+ IsSimpleParameterListField::encode(simple_parameter_list) | |
+ BlockScopeIsClassScopeField::encode(scope->is_class_scope()) | |
+ FunctionKindField::encode(scope->function_kind()); |
scope_info->SetFlags(flags); |
scope_info->SetParameterCount(parameter_count); |
scope_info->SetStackLocalCount(stack_local_count); |
@@ -373,6 +375,16 @@ int ScopeInfo::FunctionContextSlotIndex(String* name, VariableMode* mode) { |
} |
+bool ScopeInfo::block_scope_is_class_scope() { |
+ return BlockScopeIsClassScopeField::decode(Flags()); |
+} |
+ |
+ |
+FunctionKind ScopeInfo::function_kind() { |
+ return FunctionKindField::decode(Flags()); |
+} |
+ |
+ |
bool ScopeInfo::CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, |
Handle<Context> context, |
Handle<JSObject> scope_object) { |