Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Issue 314123003: Field layout in class Arguments is incompatible w\ 64-bit archs. (Closed)

Created:
6 years, 6 months ago by andrew_low
Modified:
6 years, 6 months ago
Reviewers:
danno
CC:
v8-dev
Visibility:
Public.

Description

Field layout in class Arguments is incompatible w\ 64-bit archs. The length_ field must be defined as intptr_t rather than int. This is due to the fact that we place native argc/argv values into stack slots (via SetFrameSlot) and then interpret the slots as a an instance of Arguments class. Little endian architectures get 'lucky' that the layout happens to work with implicit padding. Big endian is not as lucky. See Runtime_ArrayConstructor for an example. Based on https://github.com/andrewlow/v8/commit/d8c3570f71c0be9914e79139740124bd1ca711a7 BUG=v8:3366 LOG=N R=danno@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21711

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M src/arguments.h View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
danno
LGTM, I'll land this for you
6 years, 6 months ago (2014-06-06 08:51:02 UTC) #1
danno
Committed patchset #1 manually as r21711 (presubmit successful).
6 years, 6 months ago (2014-06-06 09:57:16 UTC) #2
Andrew Low
On 2014/06/06 09:57:16, danno wrote: > Committed patchset #1 manually as r21711 (presubmit successful). Was ...
6 years, 6 months ago (2014-06-06 13:06:49 UTC) #3
danno
Yes, it was fine. In the future, if you want to be sure, you can ...
6 years, 6 months ago (2014-06-06 13:10:30 UTC) #4
Andrew Low
6 years, 6 months ago (2014-06-06 14:14:28 UTC) #5
Message was sent while issue was closed.
The most recent version (as of yesterday) of depot_tools is broken in some way
that prevents pre-submit from running. I see some new updates today that may
address that.

I think the issue I was hitting is here
https://code.google.com/p/chromium/issues/detail?id=379065 (the error appears
identical).

However, understood - I'll keep current with depot_tools and ensure presubmit is
clean. We do run tools/presubmit.py for every internal build.

Powered by Google App Engine
This is Rietveld 408576698