Index: src/property.cc |
diff --git a/src/property.cc b/src/property.cc |
index 406caec671aa5238739441c3961977ff18099597..e7d0c4e2f4bbbf8c58271958d8c584e5e68a3279 100644 |
--- a/src/property.cc |
+++ b/src/property.cc |
@@ -30,60 +30,41 @@ void LookupResult::Print(FILE* out) { |
PrintF(out, " -cacheable = %s\n", IsCacheable() ? "true" : "false"); |
PrintF(out, " -attributes = %x\n", GetAttributes()); |
if (IsTransition()) { |
- switch (type()) { |
- case FIELD: |
- PrintF(out, " -type = map transition\n"); |
- PrintF(out, " -map:\n"); |
- GetTransitionTarget()->Print(out); |
- PrintF(out, "\n"); |
- break; |
- case CONSTANT: |
- PrintF(out, " -type = constant property transition\n"); |
- PrintF(out, " -map:\n"); |
- GetTransitionTarget()->Print(out); |
- PrintF(out, "\n"); |
- break; |
- case CALLBACKS: |
- PrintF(out, " -type = callbacks transition\n"); |
- PrintF(out, " -callback object:\n"); |
- GetCallbackObject()->Print(out); |
- break; |
- default: |
- UNREACHABLE(); |
- break; |
- } |
- } else { |
- switch (type()) { |
- case NORMAL: |
- PrintF(out, " -type = normal\n"); |
- PrintF(out, " -entry = %d", GetDictionaryEntry()); |
- break; |
- case CONSTANT: |
- PrintF(out, " -type = constant\n"); |
- PrintF(out, " -value:\n"); |
- GetConstant()->Print(out); |
- PrintF(out, "\n"); |
- break; |
- case FIELD: |
- PrintF(out, " -type = field\n"); |
- PrintF(out, " -index = %d", GetFieldIndex().field_index()); |
- PrintF(out, "\n"); |
- break; |
- case CALLBACKS: |
- PrintF(out, " -type = call backs\n"); |
- PrintF(out, " -callback object:\n"); |
- GetCallbackObject()->Print(out); |
- break; |
- case HANDLER: |
- PrintF(out, " -type = lookup proxy\n"); |
- break; |
- case INTERCEPTOR: |
- PrintF(out, " -type = lookup interceptor\n"); |
- break; |
- case NONEXISTENT: |
- UNREACHABLE(); |
- break; |
- } |
+ PrintF(out, " -transition target:\n"); |
+ GetTransitionTarget()->Print(out); |
+ PrintF(out, "\n"); |
+ } |
+ switch (type()) { |
+ case NORMAL: |
+ PrintF(out, " -type = normal\n"); |
+ PrintF(out, " -entry = %d", GetDictionaryEntry()); |
+ break; |
+ case CONSTANT: |
+ PrintF(out, " -type = constant\n"); |
+ PrintF(out, " -value:\n"); |
+ GetConstant()->Print(out); |
+ PrintF(out, "\n"); |
+ break; |
+ case FIELD: |
+ PrintF(out, " -type = field\n"); |
+ PrintF(out, " -index = %d\n", GetFieldIndex().field_index()); |
+ PrintF(out, " -field type:\n"); |
+ GetFieldType()->TypePrint(out); |
+ break; |
+ case CALLBACKS: |
+ PrintF(out, " -type = call backs\n"); |
+ PrintF(out, " -callback object:\n"); |
+ GetCallbackObject()->Print(out); |
+ break; |
+ case HANDLER: |
+ PrintF(out, " -type = lookup proxy\n"); |
+ break; |
+ case INTERCEPTOR: |
+ PrintF(out, " -type = lookup interceptor\n"); |
+ break; |
+ case NONEXISTENT: |
+ UNREACHABLE(); |
+ break; |
} |
} |