Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: src/objects-inl.h

Issue 125873002: Fix for issue 3071: A zombie AlloctionSite must clear pointer fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index dbf21d2c833ccf820cf17b103091962005bfc151..d5ffe17317b5c487f3d58e68134a3940c7bd5c22 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1314,11 +1314,8 @@ void AllocationSite::Initialize() {
void AllocationSite::MarkZombie() {
ASSERT(!IsZombie());
+ Initialize();
set_pretenure_decision(Smi::FromInt(kZombie));
- // Clear all non-smi fields
- set_transition_info(Smi::FromInt(0));
- set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()),
- SKIP_WRITE_BARRIER);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698