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

Unified Diff: src/objects-printer.cc

Issue 211333002: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (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..e16a19664f71708cd64cdacf72fdba3b61e0e445 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -92,6 +92,11 @@ void HeapObject::HeapObjectPrint(FILE* out) {
case HEAP_NUMBER_TYPE:
HeapNumber::cast(this)->HeapNumberPrint(out);
break;
+ case MUTABLE_HEAP_NUMBER_TYPE:
+ PrintF(out, "<mutable ");
+ HeapNumber::cast(this)->HeapNumberPrint(out);
+ PrintF(out, ">");
+ break;
case FIXED_DOUBLE_ARRAY_TYPE:
FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out);
break;

Powered by Google App Engine
This is Rietveld 408576698