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

Unified Diff: src/heap/heap.cc

Issue 1301963002: [heap] Disable moving object starts aka left trimming (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add a flag Created 5 years, 4 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 | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 234bc9f563a14d148cc19967d902fb7cc1c4ff8e..864785729e0b899b1aa1cba7aa4e5722280c8ef2 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -3700,6 +3700,8 @@ void Heap::CreateFillerObjectAt(Address addr, int size) {
bool Heap::CanMoveObjectStart(HeapObject* object) {
+ if (!FLAG_move_object_start) return false;
+
Address address = object->address();
if (lo_space()->Contains(object)) return false;
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698