| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 4c02c90bd82dcc2a4f9d0d71bc2947c873a8da09..76360c5dfb71d7607f6e80c61316baa4247189c3 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -5017,9 +5017,9 @@ static bool CanInlinePropertyAccess(Type* type) {
|
| static bool IsFastLiteral(Handle<JSObject> boilerplate,
|
| int max_depth,
|
| int* max_properties) {
|
| - if (boilerplate->map()->is_deprecated()) {
|
| - Handle<Object> result = JSObject::TryMigrateInstance(boilerplate);
|
| - if (result.is_null()) return false;
|
| + if (boilerplate->map()->is_deprecated() &&
|
| + !JSObject::TryMigrateInstance(boilerplate)) {
|
| + return false;
|
| }
|
|
|
| ASSERT(max_depth >= 0 && *max_properties >= 0);
|
|
|