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

Issue 2647283009: [mips] Fix code generation bug in handling of immediates (Closed)

Created:
3 years, 10 months ago by danno
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[mips] Fix code generation bug in handling of immediates When testing turning --verify-csa off to generate better code for builtins, mips started failing mksnapshot due to an assert in instruction-selection-mips.cc's VisitBinop routine, which creates a buffer to hold InstructionOperand of size 4 that would be overflowed. This fix is somewhat speculative, assuming that either the LHS or the RHS operand of a mips binary op can be an immediate (as opposed to the current code which seems to have a code path where both the left and right operands are added, leading to the buffer overflow). With this fix, the assert doesn't fire and all of the mips tests run through successfully in debug mode. R=ishell@chromium.org TBR=dusan.m.milosavljevic@gmail.com Review-Url: https://codereview.chromium.org/2647283009 Cr-Commit-Position: refs/heads/master@{#42701} Committed: https://chromium.googlesource.com/v8/v8/+/abd9610edab27cf97889bc0407c7765607d02463

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M src/compiler/mips/instruction-selector-mips.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/compiler/mips64/instruction-selector-mips64.cc View 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
danno
ptal
3 years, 10 months ago (2017-01-26 13:08:09 UTC) #3
epertoso
lgtm
3 years, 10 months ago (2017-01-26 13:21:17 UTC) #4
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/2647283009/1
3 years, 10 months ago (2017-01-26 13:47:24 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-01-26 14:22:26 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/abd9610edab27cf97889bc0407c7765607d...

Powered by Google App Engine
This is Rietveld 408576698