Revision: 15803
Author:   [email protected]
Date:     Mon Jul 22 05:15:13 2013
Log:      Track all non-hole global constants.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/19784004
http://code.google.com/p/v8/source/detail?r=15803

Modified:
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Mon Jul 22 01:32:24 2013
+++ /branches/bleeding_edge/src/objects.cc      Mon Jul 22 05:15:13 2013
@@ -15918,10 +15918,9 @@
                                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;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to