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

Unified Diff: src/string-stream.cc

Issue 391693002: In-object double fields unboxing (for 64-bit only). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/string-stream.cc
diff --git a/src/string-stream.cc b/src/string-stream.cc
index 196e5bb4a16fac72b43118de8f9f9c6f4754e78b..98ef2e81889c1d978bebccb151bb8d44460a4a0c 100644
--- a/src/string-stream.cc
+++ b/src/string-stream.cc
@@ -343,8 +343,13 @@ void StringStream::PrintUsingMap(JSObject* js_object) {
}
Add(": ");
FieldIndex index = FieldIndex::ForDescriptor(map, i);
- Object* value = js_object->RawFastPropertyAt(index);
- Add("%o\n", value);
+ if (map->IsUnboxedDoubleField(index)) {
+ Add("<unboxed double> %.16g\n",
+ js_object->RawFastDoublePropertyAt(index));
+ } else {
+ Object* value = js_object->RawFastPropertyAt(index);
+ Add("%o\n", value);
+ }
}
}
}

Powered by Google App Engine
This is Rietveld 408576698