Commit 22db7b1e authored by ricow@chromium.org's avatar ricow@chromium.org

Use safe version (i.e. using write barrier) of set_map in ReinitializeJSReceiver.

We pass in the object that we set the map on.
Review URL: http://codereview.chromium.org/8486005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10007 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 84805694
......@@ -3846,7 +3846,7 @@ MaybeObject* Heap::ReinitializeJSReceiver(
// we must NOT fail after this point, where we have changed the type!
// Reset the map for the object.
object->set_map_unsafe(map);
object->set_map(map);
JSObject* jsobj = JSObject::cast(object);
// Reinitialize the object from the constructor map.
......
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