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

Issue 9702114: MIPS: Ensure proper alignment of LazyInstance objects. (Closed)

Created:
8 years, 9 months ago by kalmard
Modified:
8 years, 8 months ago
CC:
v8-dev
Visibility:
Public.

Description

MIPS: Ensure proper alignment of LazyInstance objects. The template system converts the actual struct type to an array of chars. Make sure the alignment is kept by the compiler. This fixes a lot of serialization-related HW tests, for example cctest test-serialize/Serialize. BUG= TEST=cctest test-serialize Committed: https://code.google.com/p/v8/source/detail?r=11240

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated based on review comments. #

Patch Set 3 : Updated LAZY_ALIGN to check for gcc version. #

Patch Set 4 : rebased on r11201 #

Patch Set 5 : rebased on r11230 #

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

Messages

Total messages: 14 (0 generated)
kalmard
8 years, 9 months ago (2012-03-16 12:15:30 UTC) #1
Philippe
http://codereview.chromium.org/9702114/diff/1/src/lazy-instance.h File src/lazy-instance.h (right): http://codereview.chromium.org/9702114/diff/1/src/lazy-instance.h#newcode188 src/lazy-instance.h:188: // Note that the previous field, OnceType, is an ...
8 years, 9 months ago (2012-03-16 12:24:30 UTC) #2
danno
http://codereview.chromium.org/9702114/diff/1/src/lazy-instance.h File src/lazy-instance.h (right): http://codereview.chromium.org/9702114/diff/1/src/lazy-instance.h#newcode107 src/lazy-instance.h:107: #if V8_HOST_ARCH_MIPS I'd prefer avoiding the platform-specific define. Is ...
8 years, 9 months ago (2012-03-16 12:40:08 UTC) #3
kalmard
Thanks for the quick replies! In case any of the questions was directed at me: ...
8 years, 9 months ago (2012-03-16 12:56:30 UTC) #4
Philippe
On 2012/03/16 12:56:30, kalmard wrote: > Thanks for the quick replies! > > In case ...
8 years, 9 months ago (2012-03-16 13:12:02 UTC) #5
kalmard
On 2012/03/16 13:12:02, Philippe wrote: > Great, so maybe you can replace your MIPS ifdef ...
8 years, 9 months ago (2012-03-17 10:32:47 UTC) #6
Philippe
On 2012/03/17 10:32:47, kalmard wrote: > On 2012/03/16 13:12:02, Philippe wrote: > > Great, so ...
8 years, 9 months ago (2012-03-19 09:03:28 UTC) #7
fschneider
lgtm
8 years, 9 months ago (2012-03-20 11:02:25 UTC) #8
Paul Lind
Unfortunately, this is broken on mac (gcc 4.2.1, on osx 10.6.8). The '__attribute__((aligned(__alignof__(x))))' generates error: ...
8 years, 9 months ago (2012-03-21 07:06:24 UTC) #9
kalmard
Updated issue based on Paul's and Gergely's recommendation.
8 years, 9 months ago (2012-03-22 09:30:25 UTC) #10
Philippe
On 2012/03/22 09:30:25, kalmard wrote: > Updated issue based on Paul's and Gergely's recommendation. LGTM.
8 years, 9 months ago (2012-03-22 09:34:02 UTC) #11
kalmard
rebased on r11201
8 years, 8 months ago (2012-03-31 11:12:41 UTC) #12
Philippe
On 2012/03/31 11:12:41, kalmard wrote: > rebased on r11201 LGTM.
8 years, 8 months ago (2012-04-02 07:35:54 UTC) #13
kalmard
8 years, 8 months ago (2012-04-05 08:45:24 UTC) #14
rebased on r11230

Powered by Google App Engine
This is Rietveld 408576698