Revision: 16044
Author:   [email protected]
Date:     Mon Aug  5 02:35:18 2013
Log:      Add explicit transition flag to HStoreNamedField.

[email protected]

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

Modified:
 /branches/bleeding_edge/src/hydrogen-instructions.h

=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Fri Aug 2 04:24:55 2013 +++ /branches/bleeding_edge/src/hydrogen-instructions.h Mon Aug 5 02:35:18 2013
@@ -6009,10 +6009,7 @@

   HObjectAccess access() const { return access_; }
   HValue* new_space_dominator() const { return new_space_dominator_; }
-
-  bool has_transition() const {
-    return transition() != object();
-  }
+  bool has_transition() const { return has_transition_; }

   Handle<Map> transition_map() const {
     if (has_transition()) {
@@ -6029,6 +6026,7 @@
map->AddDependentCompilationInfo(DependentCode::kTransitionGroup, info);
     }
     SetOperandAt(2, map_constant);
+    has_transition_ = true;
   }

   bool NeedsWriteBarrier() {
@@ -6058,7 +6056,8 @@
                    HValue* val)
       : access_(access),
         new_space_dominator_(NULL),
-        write_barrier_mode_(UPDATE_WRITE_BARRIER) {
+        write_barrier_mode_(UPDATE_WRITE_BARRIER),
+        has_transition_(false) {
     SetOperandAt(0, obj);
     SetOperandAt(1, val);
     SetOperandAt(2, obj);
@@ -6067,7 +6066,8 @@

   HObjectAccess access_;
   HValue* new_space_dominator_;
-  WriteBarrierMode write_barrier_mode_;
+  WriteBarrierMode write_barrier_mode_ : 1;
+  bool has_transition_ : 1;
 };


--
--
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