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
This commit is contained in:
parent
16303936de
commit
8595cbb0d3
@ -952,11 +952,7 @@ class Slot: public Expression {
|
|||||||
// variable name in the context object on the heap,
|
// variable name in the context object on the heap,
|
||||||
// with lookup starting at the current context. index()
|
// with lookup starting at the current context. index()
|
||||||
// is invalid.
|
// is invalid.
|
||||||
LOOKUP,
|
LOOKUP
|
||||||
|
|
||||||
// A property in the global object. var()->name() is
|
|
||||||
// the property name.
|
|
||||||
GLOBAL
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Slot(Variable* var, Type type, int index)
|
Slot(Variable* var, Type type, int index)
|
||||||
|
@ -1339,9 +1339,6 @@ void JsonAstBuilder::VisitSlot(Slot* expr) {
|
|||||||
case Slot::LOOKUP:
|
case Slot::LOOKUP:
|
||||||
AddAttribute("type", "LOOKUP");
|
AddAttribute("type", "LOOKUP");
|
||||||
break;
|
break;
|
||||||
case Slot::GLOBAL:
|
|
||||||
AddAttribute("type", "GLOBAL");
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
AddAttribute("index", expr->index());
|
AddAttribute("index", expr->index());
|
||||||
}
|
}
|
||||||
|
@ -100,8 +100,7 @@ ScopeInfo<Allocator>::ScopeInfo(Scope* scope)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Slot::LOOKUP:
|
case Slot::LOOKUP:
|
||||||
case Slot::GLOBAL:
|
// This is currently not used.
|
||||||
// these are currently not used
|
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user