Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 73287f417344995ba72dd17c92556ad1d87b08d7..ae940841680622d5531a972af483859610348780 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5989,8 +5989,10 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField( |
proto = proto_result.holder(); |
} else { |
// Otherwise, find the top prototype. |
- while (proto->GetPrototype()->IsJSObject()) proto = proto->GetPrototype(); |
- ASSERT(proto->GetPrototype()->IsNull()); |
+ while (proto->GetPrototype(isolate())->IsJSObject()) { |
+ proto = proto->GetPrototype(isolate()); |
+ } |
+ ASSERT(proto->GetPrototype(isolate())->IsNull()); |
} |
ASSERT(proto->IsJSObject()); |
AddInstruction(new(zone()) HCheckPrototypeMaps( |