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

Issue 2453333002: MIPS64: Fix VirtualObject field offset calculation on Big-endian architectures (Closed)

Created:
4 years, 1 month ago by ivica.bogosavljevic
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS64: Fix VirtualObject field offset calculation on Big-endian architectures If a HeapObject field is 8 bytes long and 8 bytes aligned, but we use only four bytes of it on little endian architectures we will access to lower 4 bytes of the field using the same base address as accessing the whole eight bytes On big-endian architectures however we use base address to access the full 8 bytes, but base address + 4 to access to lower 4 bytes. For this reason, the assert in OffsetForFieldAccess fails on MIPS64 big endian. We fix the issue by removing the assert that checks that offset is pointer size aligned. TEST=mjsunit/regress/regress-crbug-648737 BUG= Committed: https://crrev.com/848524756b555045f116a5e1fdb4d9feeef02562 Cr-Commit-Position: refs/heads/master@{#40772}

Patch Set 1 #

Patch Set 2 : Add DCHECK for big-endian #

Total comments: 2

Patch Set 3 : Address code reveiw remarks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M src/compiler/escape-analysis.cc View 1 2 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
ivica.bogosavljevic
PTAL
4 years, 1 month ago (2016-10-27 13:09:11 UTC) #3
ivica.bogosavljevic
Reminder...
4 years, 1 month ago (2016-11-03 12:51:33 UTC) #5
ivica.bogosavljevic
4 years, 1 month ago (2016-11-03 12:51:44 UTC) #7
Michael Starzinger
https://codereview.chromium.org/2453333002/diff/20001/src/compiler/escape-analysis.cc File src/compiler/escape-analysis.cc (right): https://codereview.chromium.org/2453333002/diff/20001/src/compiler/escape-analysis.cc#newcode1417 src/compiler/escape-analysis.cc:1417: FieldAccessOf(node->op()).offset % kPointerSize == 0) { It seems this ...
4 years, 1 month ago (2016-11-03 14:29:55 UTC) #8
ivica.bogosavljevic
https://codereview.chromium.org/2453333002/diff/20001/src/compiler/escape-analysis.cc File src/compiler/escape-analysis.cc (right): https://codereview.chromium.org/2453333002/diff/20001/src/compiler/escape-analysis.cc#newcode1417 src/compiler/escape-analysis.cc:1417: FieldAccessOf(node->op()).offset % kPointerSize == 0) { On 2016/11/03 14:29:55, ...
4 years, 1 month ago (2016-11-03 15:47:30 UTC) #9
ivica.bogosavljevic
PTAL
4 years, 1 month ago (2016-11-04 12:44:24 UTC) #10
Michael Starzinger
LGTM. Thanks!
4 years, 1 month ago (2016-11-04 13:37:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2453333002/40001
4 years, 1 month ago (2016-11-04 15:04:59 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-04 15:06:58 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:23:12 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/848524756b555045f116a5e1fdb4d9feeef02562
Cr-Commit-Position: refs/heads/master@{#40772}

Powered by Google App Engine
This is Rietveld 408576698