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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 void ConstantPoolArray::ConstantPoolArrayPrint(FILE* out) { 605 void ConstantPoolArray::ConstantPoolArrayPrint(FILE* out) {
606 HeapObject::PrintHeader(out, "ConstantPoolArray"); 606 HeapObject::PrintHeader(out, "ConstantPoolArray");
607 PrintF(out, " - length: %d", length()); 607 PrintF(out, " - length: %d", length());
608 for (int i = 0; i < length(); i++) { 608 for (int i = 0; i < length(); i++) {
609 if (i < first_code_ptr_index()) { 609 if (i < first_code_ptr_index()) {
610 PrintF(out, "\n [%d]: double: %g", i, get_int64_entry_as_double(i)); 610 PrintF(out, "\n [%d]: double: %g", i, get_int64_entry_as_double(i));
611 } else if (i < first_heap_ptr_index()) { 611 } else if (i < first_heap_ptr_index()) {
612 PrintF(out, "\n [%d]: code target pointer: %p", i, 612 PrintF(out, "\n [%d]: code target pointer: %p", i,
613 reinterpret_cast<void*>(get_code_ptr_entry(i))); 613 reinterpret_cast<void*>(get_code_ptr_entry(i)));
614 } else if (i < first_int32_index()) { 614 } else if (i < first_weak_ptr_index()) {
615 PrintF(out, "\n [%d]: heap pointer: %p", i, 615 PrintF(out, "\n [%d]: heap pointer: %p", i,
616 reinterpret_cast<void*>(get_heap_ptr_entry(i))); 616 reinterpret_cast<void*>(get_heap_ptr_entry(i)));
617 } else if (i < first_int32_index()) {
618 PrintF(out, "\n [%d]: weak heap pointer: %p", i,
619 reinterpret_cast<void*>(get_weak_ptr_entry(i)));
617 } else { 620 } else {
618 PrintF(out, "\n [%d]: int32: %d", i, get_int32_entry(i)); 621 PrintF(out, "\n [%d]: int32: %d", i, get_int32_entry(i));
619 } 622 }
620 } 623 }
621 PrintF(out, "\n"); 624 PrintF(out, "\n");
622 } 625 }
623 626
624 627
625 void JSValue::JSValuePrint(FILE* out) { 628 void JSValue::JSValuePrint(FILE* out) {
626 HeapObject::PrintHeader(out, "ValueObject"); 629 HeapObject::PrintHeader(out, "ValueObject");
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 } 1233 }
1231 } 1234 }
1232 PrintF(out, "\n"); 1235 PrintF(out, "\n");
1233 } 1236 }
1234 1237
1235 1238
1236 #endif // OBJECT_PRINT 1239 #endif // OBJECT_PRINT
1237 1240
1238 1241
1239 } } // namespace v8::internal 1242 } } // namespace v8::internal
OLDNEW
« 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