Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index 8086cf9515e24f08ec6be2f5954789c84b69c956..35f7be5416019770a72505bbc3acf1aa071d422b 100644 |
--- a/src/string-stream.cc |
+++ b/src/string-stream.cc |
@@ -350,29 +350,24 @@ void StringStream::PrintUsingMap(JSObject* js_object) { |
} |
DescriptorArray* descs = map->instance_descriptors(); |
for (int i = 0; i < descs->number_of_descriptors(); i++) { |
- switch (descs->GetType(i)) { |
- case FIELD: { |
- Object* key = descs->GetKey(i); |
- if (key->IsString() || key->IsNumber()) { |
- int len = 3; |
- if (key->IsString()) { |
- len = String::cast(key)->length(); |
- } |
- for (; len < 18; len++) |
- Put(' '); |
- if (key->IsString()) { |
- Put(String::cast(key)); |
- } else { |
- key->ShortPrint(); |
- } |
- Add(": "); |
- Object* value = js_object->FastPropertyAt(descs->GetFieldIndex(i)); |
- Add("%o\n", value); |
+ if (descs->GetType(i) == FIELD) { |
+ Object* key = descs->GetKey(i); |
+ if (key->IsString() || key->IsNumber()) { |
+ int len = 3; |
+ if (key->IsString()) { |
+ len = String::cast(key)->length(); |
} |
+ for (; len < 18; len++) |
+ Put(' '); |
+ if (key->IsString()) { |
+ Put(String::cast(key)); |
+ } else { |
+ key->ShortPrint(); |
+ } |
+ Add(": "); |
+ Object* value = js_object->FastPropertyAt(descs->GetFieldIndex(i)); |
+ Add("%o\n", value); |
} |
- break; |
- default: |
- break; |
} |
} |
} |