Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 3ab10fcac905871da62fafd9cf9f658e1e7e7d48..080ac2ef30cb2472ff7ef7721b17c554571271bf 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -417,6 +417,11 @@ void Deoptimizer::DeoptimizeMarkedCodeForContext(Context* context) { |
// Ignore all slots that might have been recorded on the deoptimized code |
// object. |
isolate->heap()->mark_compact_collector()->RemoveObjectSlots(codes[i]); |
+ |
+ // After removing all recorded slots of the code object, we add the slots |
+ // again that point to objects on evacuation candidates. |
Michael Starzinger
2015/07/03 10:46:09
nit: Let's add to the comment that this is only ab
Hannes Payer (out of office)
2015/07/03 10:55:53
Done.
|
+ isolate->heap()->mark_compact_collector()->RecordDeoptimizedCodeSlots( |
+ codes[i]); |
} |
} |