Commit d816fd13 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Track all non-hole global constants.

R=mvstanton@chromium.org

Review URL: https://chromiumcodereview.appspot.com/19784004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15803 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ecc31a0c
......@@ -15918,10 +15918,9 @@ Type* PropertyCell::UpdateType(Handle<PropertyCell> cell,
Handle<Object> value) {
Isolate* isolate = cell->GetIsolate();
Handle<Type> old_type(cell->type(), isolate);
Handle<Type> new_type((value->IsSmi() || value->IsJSFunction() ||
value->IsUndefined())
? Type::Constant(value, isolate)
: Type::Any(), isolate);
Handle<Type> new_type(value->IsTheHole()
? Type::Any()
: Type::Constant(value, isolate), isolate);
if (new_type->Is(old_type)) {
return *old_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment