Index: src/crankshaft/hydrogen-instructions.cc |
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc |
index 91deb9c2330a9d72c9a11e17c0e791175af96dfa..7417c1b898cede6b47d886adbb5a472b3f7cac1d 100644 |
--- a/src/crankshaft/hydrogen-instructions.cc |
+++ b/src/crankshaft/hydrogen-instructions.cc |
@@ -4680,13 +4680,13 @@ std::ostream& operator<<(std::ostream& os, const HObjectAccess& access) { |
break; |
case HObjectAccess::kDouble: // fall through |
case HObjectAccess::kInobject: |
- if (!access.name().is_null()) { |
+ if (!access.name().is_null() && access.name()->IsString()) { |
os << Handle<String>::cast(access.name())->ToCString().get(); |
} |
os << "[in-object]"; |
break; |
case HObjectAccess::kBackingStore: |
- if (!access.name().is_null()) { |
+ if (!access.name().is_null() && access.name()->IsString()) { |
os << Handle<String>::cast(access.name())->ToCString().get(); |
} |
os << "[backing-store]"; |