Revision: 12823
Author:   [email protected]
Date:     Thu Oct 25 08:45:24 2012
Log:      Update ReceiverObjectNeedsWriteBarrier to include HFastLiteral
This will prevent unnecessary write barriers for literals.
BUG=none
TEST=none

Review URL: https://codereview.chromium.org/11143005
Patch from Derek J Conrod <[email protected]>.
http://code.google.com/p/v8/source/detail?r=12823

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

=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Thu Oct 25 08:23:39 2012 +++ /branches/bleeding_edge/src/hydrogen-instructions.h Thu Oct 25 08:45:24 2012
@@ -3917,7 +3917,8 @@

 inline bool ReceiverObjectNeedsWriteBarrier(HValue* object,
                                             HValue* new_space_dominator) {
-  return !object->IsAllocateObject() || (object != new_space_dominator);
+  return (!object->IsAllocateObject() && !object->IsFastLiteral()) ||
+         (object != new_space_dominator);
 }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to