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

Unified Diff: src/scopeinfo.cc

Issue 1161393007: OLD type Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 6 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/scanner.cc ('k') | src/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « src/scanner.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698