From d816fd1333c2c0ef0a17a2450a77121fbc0bbd50 Mon Sep 17 00:00:00 2001 From: "verwaest@chromium.org" Date: Mon, 22 Jul 2013 12:15:13 +0000 Subject: [PATCH] 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 --- src/objects.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index 1967b13..0898700 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -15918,10 +15918,9 @@ Type* PropertyCell::UpdateType(Handle cell, Handle value) { Isolate* isolate = cell->GetIsolate(); Handle old_type(cell->type(), isolate); - Handle new_type((value->IsSmi() || value->IsJSFunction() || - value->IsUndefined()) - ? Type::Constant(value, isolate) - : Type::Any(), isolate); + Handle new_type(value->IsTheHole() + ? Type::Any() + : Type::Constant(value, isolate), isolate); if (new_type->Is(old_type)) { return *old_type; -- 2.7.4