Move assertion that might cause garbage collections to before
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 30 Oct 2008 11:38:22 +0000 (11:38 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 30 Oct 2008 11:38:22 +0000 (11:38 +0000)
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

src/runtime.cc

index cb5c5384db5cd1f689b0563e9a4d292d6c663257..8459af16b5a2461c5e288741c1cf51c04bbd2f33 100644 (file)
@@ -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);