| Index: src/scopeinfo.cc
|
| diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc
|
| index b9dea2252e7f615301811756092688d31d8eb0ba..c9df1fb5801792881e256b11ac74ed6b2dc68dc7 100644
|
| --- a/src/scopeinfo.cc
|
| +++ b/src/scopeinfo.cc
|
| @@ -78,7 +78,7 @@ Handle<ScopeInfo> ScopeInfo::Create(Scope* scope, Zone* zone) {
|
| Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length);
|
|
|
| // Encode the flags.
|
| - int flags = TypeField::encode(scope->type()) |
|
| + int flags = ScopeTypeField::encode(scope->scope_type()) |
|
| CallsEvalField::encode(scope->calls_eval()) |
|
| LanguageModeField::encode(scope->language_mode()) |
|
| FunctionVariableField::encode(function_name_info) |
|
| @@ -155,9 +155,9 @@ ScopeInfo* ScopeInfo::Empty(Isolate* isolate) {
|
| }
|
|
|
|
|
| -ScopeType ScopeInfo::Type() {
|
| +ScopeType ScopeInfo::scope_type() {
|
| ASSERT(length() > 0);
|
| - return TypeField::decode(Flags());
|
| + return ScopeTypeField::decode(Flags());
|
| }
|
|
|
|
|
| @@ -193,9 +193,9 @@ int ScopeInfo::ContextLength() {
|
| FunctionVariableField::decode(Flags()) == CONTEXT;
|
| bool has_context = context_locals > 0 ||
|
| function_name_context_slot ||
|
| - Type() == WITH_SCOPE ||
|
| - (Type() == FUNCTION_SCOPE && CallsEval()) ||
|
| - Type() == MODULE_SCOPE;
|
| + scope_type() == WITH_SCOPE ||
|
| + (scope_type() == FUNCTION_SCOPE && CallsEval()) ||
|
| + scope_type() == MODULE_SCOPE;
|
| if (has_context) {
|
| return Context::MIN_CONTEXT_SLOTS + context_locals +
|
| (function_name_context_slot ? 1 : 0);
|
|
|