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

Issue 568753002: Remove V8_HOST_CAN_READ_UNALIGNED and its uses. (Closed)

Created:
6 years, 3 months ago by Yang
Modified:
6 years, 3 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Remove V8_HOST_CAN_READ_UNALIGNED and its uses. R=jkummerow@chromium.org BUG=chromium:412967 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=23915

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -109 lines) Patch
M src/base/build_config.h View 2 chunks +0 lines, -4 lines 0 comments Download
M src/deoptimizer.h View 1 1 chunk +4 lines, -6 lines 0 comments Download
M src/objects.h View 1 chunk +19 lines, -8 lines 0 comments Download
M src/objects.cc View 1 chunk +1 line, -30 lines 0 comments Download
M src/regexp-macro-assembler.h View 1 chunk +1 line, -1 line 0 comments Download
M src/regexp-macro-assembler.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 chunks +32 lines, -29 lines 0 comments Download
M src/snapshot-source-sink.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/utils.h View 2 chunks +3 lines, -18 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Yang
6 years, 3 months ago (2014-09-12 10:44:28 UTC) #1
Jakob Kummerow
LGTM with comments. https://codereview.chromium.org/568753002/diff/1/src/deoptimizer.h File src/deoptimizer.h (right): https://codereview.chromium.org/568753002/diff/1/src/deoptimizer.h#newcode26 src/deoptimizer.h:26: c.u[0] = Memory::uint32_at(p); Since Memory::uint32_at does ...
6 years, 3 months ago (2014-09-12 11:08:44 UTC) #2
Jakob Kummerow
lgtm
6 years, 3 months ago (2014-09-12 11:45:47 UTC) #3
Yang
Committed patchset #2 (id:20001) manually as 23915 (presubmit successful).
6 years, 3 months ago (2014-09-12 12:42:17 UTC) #4
Sven Panne
6 years, 3 months ago (2014-09-12 13:12:08 UTC) #6
Message was sent while issue was closed.
A bit late, but...

https://codereview.chromium.org/568753002/diff/1/src/deoptimizer.h
File src/deoptimizer.h (right):

https://codereview.chromium.org/568753002/diff/1/src/deoptimizer.h#newcode26
src/deoptimizer.h:26: c.u[0] = Memory::uint32_at(p);
On 2014/09/12 11:08:44, Jakob wrote:
> Since Memory::uint32_at does a reinterpret_cast<uint32_t*>, this is only safe
> when p is 4-byte aligned. I understand that this is guaranteed by current
> callers, but please add a comment and/or DCHECK to make it explicit.

Even simpler: Just use memcpy...

Powered by Google App Engine
This is Rietveld 408576698