Skip to content

Commit 8595cbb

Browse files
author
kmillikin@chromium.org
committed
Remove an unused enumeration value.
Review URL: http://codereview.chromium.org/366030 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3233 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent 1630393 commit 8595cbb

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/ast.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,11 +952,7 @@ class Slot: public Expression {
952952
// variable name in the context object on the heap,
953953
// with lookup starting at the current context. index()
954954
// is invalid.
955-
LOOKUP,
956-
957-
// A property in the global object. var()->name() is
958-
// the property name.
959-
GLOBAL
955+
LOOKUP
960956
};
961957

962958
Slot(Variable* var, Type type, int index)

src/prettyprinter.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,9 +1339,6 @@ void JsonAstBuilder::VisitSlot(Slot* expr) {
13391339
case Slot::LOOKUP:
13401340
AddAttribute("type", "LOOKUP");
13411341
break;
1342-
case Slot::GLOBAL:
1343-
AddAttribute("type", "GLOBAL");
1344-
break;
13451342
}
13461343
AddAttribute("index", expr->index());
13471344
}

src/scopeinfo.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ ScopeInfo<Allocator>::ScopeInfo(Scope* scope)
100100
break;
101101

102102
case Slot::LOOKUP:
103-
case Slot::GLOBAL:
104-
// these are currently not used
103+
// This is currently not used.
105104
UNREACHABLE();
106105
break;
107106
}

0 commit comments

Comments
 (0)