Revision: 9210
Author: [email protected]
Date: Fri Sep 9 05:26:55 2011
Log: NewGC: Clean up a TODO. Make the empty string one of the
immortal immovable objects.
Review URL: http://codereview.chromium.org/7857027
http://code.google.com/p/v8/source/detail?r=9210
Modified:
/branches/experimental/gc/src/hydrogen-instructions.h
=======================================
--- /branches/experimental/gc/src/hydrogen-instructions.h Thu Sep 8
12:00:24 2011
+++ /branches/experimental/gc/src/hydrogen-instructions.h Fri Sep 9
05:26:55 2011
@@ -2258,6 +2258,7 @@
if (*handle_ == heap->the_hole_value()) return true;
if (*handle_ == heap->minus_zero_value()) return true;
if (*handle_ == heap->nan_value()) return true;
+ if (*handle_ == heap->empty_string()) return true;
return false;
}
@@ -3342,9 +3343,6 @@
static inline bool StoringValueNeedsWriteBarrier(HValue* value) {
- // TODO(gc) On bleeding edge we omit write barrier when we are
- // storing old space constant. We can't allow such an optimization
- // on GC branch.
return !value->type().IsBoolean()
&& !value->type().IsSmi()
&& !(value->IsConstant() &&
HConstant::cast(value)->ImmortalImmovable());
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev