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

Unified Diff: src/property.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/property.cc
diff --git a/src/property.cc b/src/property.cc
index 1c42c4929669c89077a6d18a3ef1a21387a82224..cb9eca1362b2d4aa77a053d204f8a34bdd16d42e 100644
--- a/src/property.cc
+++ b/src/property.cc
@@ -56,9 +56,34 @@ OStream& operator<<(OStream& os, const LookupResult& r) {
}
+OStream& operator<<(OStream& os, const PropertyDetails& details) {
+ switch (details.type()) {
+ case NORMAL:
+ os << "(normal, dictionary_index: " << details.dictionary_index() << ")";
+ break;
+ case CONSTANT:
+ os << "(constant)\n";
+ break;
+ case FIELD:
+ os << "(field, field_index: " << details.field_index() << ", "
+ << details.representation().Mnemonic() << ")";
+ break;
+ case CALLBACKS:
+ os << "(callbacks)";
+ break;
+ case HANDLER:
+ case INTERCEPTOR:
+ case NONEXISTENT:
+ UNREACHABLE();
+ break;
+ }
+ return os;
+}
+
+
OStream& operator<<(OStream& os, const Descriptor& d) {
return os << "Descriptor " << Brief(*d.GetKey()) << " @ "
- << Brief(*d.GetValue());
+ << Brief(*d.GetValue()) << " " << d.GetDetails();
}
} } // namespace v8::internal

Powered by Google App Engine
This is Rietveld 408576698