Remove an unused enumeration value.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 5 Nov 2009 17:25:50 +0000 (17:25 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 5 Nov 2009 17:25:50 +0000 (17:25 +0000)
Review URL: http://codereview.chromium.org/366030

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3233 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/ast.h
src/prettyprinter.cc
src/scopeinfo.cc

index 83f341c948b67dc868520ab31e7a21aff4b916f9..92d3cb6a6c11fbc9c8f0201594af38d4c18d909f 100644 (file)
--- a/src/ast.h
+++ b/src/ast.h
@@ -952,11 +952,7 @@ class Slot: public Expression {
     // variable name in the context object on the heap,
     // with lookup starting at the current context. index()
     // is invalid.
-    LOOKUP,
-
-    // A property in the global object. var()->name() is
-    // the property name.
-    GLOBAL
+    LOOKUP
   };
 
   Slot(Variable* var, Type type, int index)
index 10c1ea871777570230df57b432222260c3dde5cd..87da026426880b8d2ff0f35d84ced6ee3785585b 100644 (file)
@@ -1339,9 +1339,6 @@ void JsonAstBuilder::VisitSlot(Slot* expr) {
       case Slot::LOOKUP:
         AddAttribute("type", "LOOKUP");
         break;
-      case Slot::GLOBAL:
-        AddAttribute("type", "GLOBAL");
-        break;
     }
     AddAttribute("index", expr->index());
   }
index 8a237fd0ec916e8191c877817221e91cfbe2ffe5..78cc71e3d907d684072856a2ccf4f838a00b566b 100644 (file)
@@ -100,8 +100,7 @@ ScopeInfo<Allocator>::ScopeInfo(Scope* scope)
             break;
 
           case Slot::LOOKUP:
-          case Slot::GLOBAL:
-            // these are currently not used
+            // This is currently not used.
             UNREACHABLE();
             break;
         }