Commit 69e80606 authored by ager@chromium.org's avatar ager@chromium.org

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
parent 128c1ab8
......@@ -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<JSObject>::cast(holder)->HasProperty(*name));
JSObject* object = JSObject::cast(*holder);
ASSERT(object->HasProperty(*name));
JSObject* receiver = (object->IsGlobalObject())
? GlobalObject::cast(object)->global_receiver()
: ComputeReceiverForNonGlobal(object);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment