| Index: src/scopeinfo.cc
|
| diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc
|
| index b819b172c4ad1db78926b0d59dc253d9841de94f..7beb1c2850f8b0dc178efb9593fe77e38db989d6 100644
|
| --- a/src/scopeinfo.cc
|
| +++ b/src/scopeinfo.cc
|
| @@ -86,7 +86,7 @@ Handle<ScopeInfo> ScopeInfo::Create(Isolate* isolate, Zone* zone,
|
| FunctionVariableField::encode(function_name_info) |
|
| FunctionVariableMode::encode(function_variable_mode) |
|
| AsmModuleField::encode(scope->asm_module()) |
|
| - AsmFunctionField::encode(scope->asm_function()) |
|
| + AsmFunctionField::encode(scope->asm_module()) |
|
| IsSimpleParameterListField::encode(simple_parameter_list) |
|
| BlockScopeIsClassScopeField::encode(scope->is_class_scope()) |
|
| FunctionKindField::encode(scope->function_kind());
|
| @@ -213,6 +213,15 @@ LanguageMode ScopeInfo::language_mode() {
|
| }
|
|
|
|
|
| +AsmMode ScopeInfo::asm_mode() {
|
| + if (length() > 0) {
|
| + if (AsmModuleField::decode(Flags())) return ASM_MODULE;
|
| + if (AsmFunctionField::decode(Flags())) return ASM_FUNCTION;
|
| + }
|
| + return ASM_NO;
|
| +}
|
| +
|
| +
|
| int ScopeInfo::LocalCount() {
|
| return StackLocalCount() + ContextLocalCount();
|
| }
|
|
|