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

Unified Diff: src/objects-debug.cc

Issue 183883011: Differentate between code target pointers and heap pointers in constant pools. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Minor fix to ConstantPoolArray visiting 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-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index 626ff00931a3be3841bc5b216aff90279875e35d..f3f847e2a93749a05935af3478f4fb14670658d7 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -404,6 +404,9 @@ void FixedDoubleArray::FixedDoubleArrayVerify() {
void ConstantPoolArray::ConstantPoolArrayVerify() {
CHECK(IsConstantPoolArray());
+ for (int i = 0; i < count_of_heap_ptr_entries(); i++) {
+ VerifyObjectField(OffsetOfElementAt(first_heap_ptr_index() + i));
+ }
Michael Starzinger 2014/03/07 15:07:47 Can we also verify that all code_ptr entries point
rmcilroy 2014/03/10 14:03:05 Done.
}

Powered by Google App Engine
This is Rietveld 408576698