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

Issue 354028: Fix xssue 492: ARM debug crash: mozilla/ecma/FunctionObjects/15.3.1.1-3... (Closed)

Created:
11 years, 1 month ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Fix xssue 492: ARM debug crash: mozilla/ecma/FunctionObjects/15.3.1.1-3 When the number of parameters times 4 (kPointerSize) to a function cannot be encoded in 12 bits the return sequence gets one more instruction. Changed the assertion to check for this case. BUG=http://code.google.com/p/v8/issues/detail?id=492 TEST=test/mjsunit/regress/regress-492.js Committed: http://code.google.com/p/v8/source/detail?r=3211

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -3 lines) Patch
M src/arm/assembler-arm.h View 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 2 3 4 1 chunk +15 lines, -3 lines 0 comments Download
A test/mjsunit/regress/regress-492.js View 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Søren Thygesen Gjesse
11 years, 1 month ago (2009-11-03 16:19:11 UTC) #1
Erik Corry
LGTM with a regression test. http://codereview.chromium.org/354028/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/354028/diff/1/2#newcode321 Line 321: //masm_->BlockConstPoolBefore(masm_->pc_offset() + 4 ...
11 years, 1 month ago (2009-11-03 17:48:52 UTC) #2
Erik Corry
Oops! Laurent Desnogues points out that this is wrong. The correct test is not is_int12. ...
11 years, 1 month ago (2009-11-03 17:56:40 UTC) #3
Erik Corry
Oops! Laurent Desnogues points out that this is wrong. The correct test is not is_int12. ...
11 years, 1 month ago (2009-11-03 17:56:41 UTC) #4
Søren Thygesen Gjesse
Erik, please take another look. Fixed the check for whether the immediate can be encoded ...
11 years, 1 month ago (2009-11-03 22:57:33 UTC) #5
Erik Corry
LGTM http://codereview.chromium.org/354028/diff/7005/10003 File src/arm/assembler-arm.h (right): http://codereview.chromium.org/354028/diff/7005/10003#newcode686 Line 686: bool ImmediateFitsAddInstruction(int32_t imm32); It's not just add ...
11 years, 1 month ago (2009-11-04 09:33:09 UTC) #6
Søren Thygesen Gjesse
11 years, 1 month ago (2009-11-04 09:54:38 UTC) #7
http://codereview.chromium.org/354028/diff/7005/10003
File src/arm/assembler-arm.h (right):

http://codereview.chromium.org/354028/diff/7005/10003#newcode686
Line 686: bool ImmediateFitsAddInstruction(int32_t imm32);
On 2009/11/04 09:33:09, Erik Corry wrote:
> It's not just add instructions.  Almost all ARM instructions take an immediate
> with these restrictions.  So the name should be more general.

Changed name to ImmediateFitsAddrMode1Instruction and added a comment that add
is an addressing mode 1 instruction.

Powered by Google App Engine
This is Rietveld 408576698