When collecting maps is disabled we do not clear non-live references.
BUG=
R=ishell@chromium.org
Review URL: https://codereview.chromium.org/
258163003
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21044
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
bool Code::IsWeakObjectInOptimizedCode(Object* object) {
+ if (!FLAG_collect_maps) return false;
if (object->IsMap()) {
return Map::cast(object)->CanTransition() &&
- FLAG_collect_maps &&
FLAG_weak_embedded_maps_in_optimized_code;
}
if (object->IsJSObject() ||