R=rafaelw@chromium.org
BUG=chromium:352664
LOG=N
Review URL: https://codereview.chromium.org/
204493002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20440
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
void JSObject::SetObserved(Handle<JSObject> object) {
+ ASSERT(!object->map()->is_observed());
Isolate* isolate = object->GetIsolate();
- if (object->map()->is_observed())
- return;
-
LookupResult result(isolate);
object->map()->LookupTransition(*object,
isolate->heap()->observed_symbol(),
if (obj->IsJSProxy())
return isolate->heap()->undefined_value();
- ASSERT(!(obj->map()->is_observed() && obj->IsJSObject() &&
- Handle<JSObject>::cast(obj)->HasFastElements()));
ASSERT(obj->IsJSObject());
JSObject::SetObserved(Handle<JSObject>::cast(obj));
return isolate->heap()->undefined_value();