[Webkit-unassigned] [Bug 39256] Make sure globalExec always has a correct scopechain

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 17 20:01:53 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39256





--- Comment #2 from Darin Adler <darin at apple.com>  2010-05-17 20:01:53 PST ---
(From update of attachment 56310)
>  ExecState* JSGlobalObject::globalExec()
>  {
> -    return CallFrame::create(d()->globalCallFrame + RegisterFile::CallFrameHeaderSize);
> +    ExecState* result = CallFrame::create(d()->globalCallFrame + RegisterFile::CallFrameHeaderSize);
> +    ASSERT(d()->globalScopeChain.node());
> +    result->init(0, 0, d()->globalScopeChain.node(), CallFrame::noCaller(), 0, 0, 0);
> +    return result;
>  }

This seems to add quite a bit of extra work to a function that used to just compute and return a pointer. Why is this better?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list