 Chromium Code Reviews
 Chromium Code Reviews Issue 3781014:
  Fix missing check for GC failure in number dictionary code.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
    
  
    Issue 3781014:
  Fix missing check for GC failure in number dictionary code.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/| Index: src/objects.cc | 
| =================================================================== | 
| --- src/objects.cc (revision 5634) | 
| +++ src/objects.cc (working copy) | 
| @@ -8591,7 +8591,9 @@ | 
| details = PropertyDetails(details.attributes(), | 
| details.type(), | 
| DetailsAt(entry).index()); | 
| - SetEntry(entry, NumberDictionaryShape::AsObject(key), value, details); | 
| + Object* okey = NumberDictionaryShape::AsObject(key); | 
| 
Mads Ager (chromium)
2010/10/18 10:04:16
I don't like the name. key_object?
 | 
| + if (okey->IsFailure()) return okey; | 
| + SetEntry(entry, okey, value, details); | 
| return this; | 
| } |