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

Issue 1423373004: MIPS: Fix unaligned read of bytecodes in interpreter. (Closed)

Created:
5 years, 1 month ago by akos.palfi.imgtec
Modified:
5 years, 1 month ago
Reviewers:
rmcilroy, paul.l...
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS: Fix unaligned read/write of bytecodes in interpreter. On MIPS arch, all memory accesses (including halfword) must be aligned to their native size or an alignment exception occurs. The kernel will fix this up, but with performance penalty. TEST=test-bytecode-generator/CallRuntime BUG= Committed: https://crrev.com/53c46f87dacaac7721cbc81e810b4606cb639ab5 Cr-Commit-Position: refs/heads/master@{#31845}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed nits and typos. #

Total comments: 2

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -23 lines) Patch
M src/interpreter/bytecode-array-builder.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-array-iterator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecodes.h View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/interpreter/bytecodes.cc View 1 2 2 chunks +1 line, -13 lines 0 comments Download
M src/utils.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
paul.l...
In commit message you should change read to read/write. And add a second line: On ...
5 years, 1 month ago (2015-10-30 17:40:32 UTC) #2
akos.palfi.imgtec
Thanks, done! https://codereview.chromium.org/1423373004/diff/1/src/utils.h File src/utils.h (right): https://codereview.chromium.org/1423373004/diff/1/src/utils.h#newcode1739 src/utils.h:1739: #ifndef V8_TARGET_ARCH_MIPS On 2015/10/30 17:40:32, paul.l... wrote: ...
5 years, 1 month ago (2015-10-30 22:26:32 UTC) #5
paul.l...
LGTM. Ross, could you please take a look at this?
5 years, 1 month ago (2015-11-05 17:36:51 UTC) #7
rmcilroy
https://codereview.chromium.org/1423373004/diff/20001/src/interpreter/bytecodes.cc File src/interpreter/bytecodes.cc (right): https://codereview.chromium.org/1423373004/diff/20001/src/interpreter/bytecodes.cc#newcode186 src/interpreter/bytecodes.cc:186: return ReadShortValue(bytes); Could you call this ReadUnalignedUInt16 and get ...
5 years, 1 month ago (2015-11-05 18:12:01 UTC) #8
akos.palfi.imgtec
I've addressed comments, PTAL. https://codereview.chromium.org/1423373004/diff/20001/src/interpreter/bytecodes.cc File src/interpreter/bytecodes.cc (right): https://codereview.chromium.org/1423373004/diff/20001/src/interpreter/bytecodes.cc#newcode186 src/interpreter/bytecodes.cc:186: return ReadShortValue(bytes); On 2015/11/05 18:12:01, ...
5 years, 1 month ago (2015-11-05 23:18:01 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423373004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423373004/40001
5 years, 1 month ago (2015-11-05 23:18:38 UTC) #11
rmcilroy
Lgtm, thanks.
5 years, 1 month ago (2015-11-05 23:33:58 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-05 23:37:36 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423373004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423373004/40001
5 years, 1 month ago (2015-11-05 23:40:39 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-05 23:42:27 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 23:43:08 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/53c46f87dacaac7721cbc81e810b4606cb639ab5
Cr-Commit-Position: refs/heads/master@{#31845}

Powered by Google App Engine
This is Rietveld 408576698