Chromium Code Reviews| Index: src/property.h |
| =================================================================== |
| --- src/property.h (revision 5559) |
| +++ src/property.h (working copy) |
| @@ -46,9 +46,11 @@ |
| } |
| Object* KeyToSymbol() { |
| + Object* result; |
| + { TryAllocation t = Heap::LookupSymbol(key_); |
| + if (!t->ToObject(&result)) return t; |
| + } |
| if (!StringShape(key_).IsSymbol()) { |
| - Object* result = Heap::LookupSymbol(key_); |
| - if (result->IsFailure()) return result; |
| key_ = String::cast(result); |
| } |
| return key_; |