Becuase of cross-context calls, hydrogen-based Array constructor needs to ensure (issue 14846017)
2 views
Skip to first unread message
mvst...@chromium.org
unread,
May 7, 2013, 5:51:11 AM5/7/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to da...@chromium.org, v8-...@googlegroups.com
Reviewers: danno,
Message:
Hi Danno, here is the fix for the cross-context issue we discussed. Thanks
for
the look,
--Michael
Description:
Becuase of cross-context calls, hydrogen-based Array constructor needs to
ensure
the array constructor pointer passed in matches that of the current context.
Affected files:
M src/arm/code-stubs-arm.cc
M src/builtins.cc
M src/code-stubs-hydrogen.cc
M src/code-stubs.h
M src/heap.cc
M src/hydrogen.h
M src/hydrogen.cc
M src/ia32/code-stubs-ia32.cc
M src/x64/code-stubs-x64.cc
M test/mjsunit/allocation-site-info.js
mvst...@chromium.org
unread,
May 7, 2013, 6:30:16 AM5/7/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to da...@chromium.org, verw...@chromium.org, v8-...@googlegroups.com
https://codereview.chromium.org/14846017/diff/2001/src/builtins.cc#newcode235 src/builtins.cc:235: ASSERT(constructor->initial_map()->elements_kind()
== kind);
It seems more resilient to just use the initial map (and its elements
kind), and make that one holey when necessary. You can keep the ASSERT
just to find this place back when you make changes.
On 2013/05/07 11:02:06, Toon Verwaest wrote:
> It seems more resilient to just use the initial map (and its elements
kind), and
> make that one holey when necessary. You can keep the ASSERT just to
find this
> place back when you make changes.