From: ager@chromium.org Date: Thu, 30 Oct 2008 11:38:22 +0000 (+0000) Subject: Move assertion that might cause garbage collections to before X-Git-Tag: upstream/4.7.83~25069 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69e8060636ba5d50244f00580bc2e21522ecf9e1;p=platform%2Fupstream%2Fv8.git Move assertion that might cause garbage collections to before extracting raw pointers. Review URL: http://codereview.chromium.org/8913 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@654 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/runtime.cc b/src/runtime.cc index cb5c538..8459af1 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -3439,8 +3439,8 @@ static ObjectPair LoadContextSlotHelper(Arguments args, bool throw_error) { // If the holder is found, we read the property from it. if (!holder.is_null() && holder->IsJSObject()) { + ASSERT(Handle::cast(holder)->HasProperty(*name)); JSObject* object = JSObject::cast(*holder); - ASSERT(object->HasProperty(*name)); JSObject* receiver = (object->IsGlobalObject()) ? GlobalObject::cast(object)->global_receiver() : ComputeReceiverForNonGlobal(object);