Make proxy fixing GC safe.

R=vegorov@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7460009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8708 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
rossberg@chromium.org 2011-07-21 11:28:18 +00:00
parent 3f5bc11c55
commit 3ff882ff64
2 changed files with 2 additions and 2 deletions

View File

@ -2331,7 +2331,7 @@ void JSProxy::Fix() {
Handle<JSProxy> self(this);
isolate->factory()->BecomeJSObject(self);
ASSERT(IsJSObject());
ASSERT(self->IsJSObject());
// TODO(rossberg): recognize function proxies.
}

View File

@ -619,7 +619,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Fix) {
ASSERT(args.length() == 1);
CONVERT_CHECKED(JSProxy, proxy, args[0]);
proxy->Fix();
return proxy;
return isolate->heap()->undefined_value();
}