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

Unified Diff: src/context-measure.cc

Issue 1992723002: [serializer] prepare attached references for general use. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments Created 4 years, 7 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/context-measure.h ('k') | src/snapshot/code-serializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/context-measure.cc
diff --git a/src/context-measure.cc b/src/context-measure.cc
index 07075840fd8e04c749836d44962d93bb689ab71c..00c11eebc2cf40a548d16270c4173242f0e78322 100644
--- a/src/context-measure.cc
+++ b/src/context-measure.cc
@@ -37,10 +37,10 @@ bool ContextMeasure::IsShared(HeapObject* object) {
void ContextMeasure::MeasureObject(HeapObject* object) {
- if (back_reference_map_.Lookup(object).is_valid()) return;
+ if (reference_map_.Lookup(object).is_valid()) return;
if (root_index_map_.Lookup(object) != RootIndexMap::kInvalidRootIndex) return;
if (IsShared(object)) return;
- back_reference_map_.Add(object, BackReference::DummyReference());
+ reference_map_.Add(object, SerializerReference::DummyReference());
recursion_depth_++;
if (recursion_depth_ > kMaxRecursion) {
deferred_objects_.Add(object);
« no previous file with comments | « src/context-measure.h ('k') | src/snapshot/code-serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698