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:
parent
3f5bc11c55
commit
3ff882ff64
@ -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.
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user