Revision: 20901
Author:   bmeu...@chromium.org
Date:     Wed Apr 23 09:41:28 2014 UTC
Log: Fix tracking of computed fields when field type tracking is disabled.

R=svenpa...@chromium.org

Review URL: https://codereview.chromium.org/247523004
http://code.google.com/p/v8/source/detail?r=20901

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

=======================================
--- /branches/bleeding_edge/src/objects.cc      Wed Apr 23 09:21:24 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc      Wed Apr 23 09:41:28 2014 UTC
@@ -63,8 +63,8 @@

 Handle<HeapType> Object::OptimalType(Isolate* isolate,
                                      Representation representation) {
+  if (representation.IsNone()) return HeapType::None(isolate);
   if (FLAG_track_field_types) {
-    if (representation.IsNone()) return HeapType::None(isolate);
     if (representation.IsHeapObject() && IsHeapObject()) {
       // We can track only JavaScript objects with stable maps.
       Handle<Map> map(HeapObject::cast(this)->map(), isolate);

--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to