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

Unified Diff: src/objects-printer.cc

Issue 203583007: Support weak heap references in the ConstantPool to support IsWeakObjectInOptimizedCode objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 518167cc51e0d63216056f51b5508fdd94424b0e..362cf701a9fe1e69a6269f21d9b0844a45cb9db4 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -611,9 +611,12 @@ void ConstantPoolArray::ConstantPoolArrayPrint(FILE* out) {
} else if (i < first_heap_ptr_index()) {
PrintF(out, "\n [%d]: code target pointer: %p", i,
reinterpret_cast<void*>(get_code_ptr_entry(i)));
- } else if (i < first_int32_index()) {
+ } else if (i < first_weak_ptr_index()) {
PrintF(out, "\n [%d]: heap pointer: %p", i,
reinterpret_cast<void*>(get_heap_ptr_entry(i)));
+ } else if (i < first_int32_index()) {
+ PrintF(out, "\n [%d]: weak heap pointer: %p", i,
+ reinterpret_cast<void*>(get_weak_ptr_entry(i)));
} else {
PrintF(out, "\n [%d]: int32: %d", i, get_int32_entry(i));
}
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting-inl.h » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698