Index: src/contexts.cc |
=================================================================== |
--- src/contexts.cc (revision 9568) |
+++ src/contexts.cc (working copy) |
@@ -145,7 +145,7 @@ |
scope_info = Handle<SerializedScopeInfo>( |
SerializedScopeInfo::cast(context->extension()), isolate); |
} |
- Variable::Mode mode; |
+ VariableMode mode; |
int slot_index = scope_info->ContextSlotIndex(*name, &mode); |
ASSERT(slot_index < 0 || slot_index >= MIN_CONTEXT_SLOTS); |
if (slot_index >= 0) { |
@@ -161,23 +161,23 @@ |
// declared variables that were introduced through declaration nodes) |
// must not appear here. |
switch (mode) { |
- case Variable::INTERNAL: // Fall through. |
- case Variable::VAR: |
+ case INTERNAL: // Fall through. |
+ case VAR: |
*attributes = NONE; |
*binding_flags = MUTABLE_IS_INITIALIZED; |
break; |
- case Variable::LET: |
+ case LET: |
*attributes = NONE; |
*binding_flags = MUTABLE_CHECK_INITIALIZED; |
break; |
- case Variable::CONST: |
+ case CONST: |
*attributes = READ_ONLY; |
*binding_flags = IMMUTABLE_CHECK_INITIALIZED; |
break; |
- case Variable::DYNAMIC: |
- case Variable::DYNAMIC_GLOBAL: |
- case Variable::DYNAMIC_LOCAL: |
- case Variable::TEMPORARY: |
+ case DYNAMIC: |
+ case DYNAMIC_GLOBAL: |
+ case DYNAMIC_LOCAL: |
+ case TEMPORARY: |
UNREACHABLE(); |
break; |
} |
@@ -245,7 +245,7 @@ |
// Check non-parameter locals. |
Handle<SerializedScopeInfo> scope_info( |
context->closure()->shared()->scope_info()); |
- Variable::Mode mode; |
+ VariableMode mode; |
int index = scope_info->ContextSlotIndex(*name, &mode); |
ASSERT(index < 0 || index >= MIN_CONTEXT_SLOTS); |
if (index >= 0) return false; |