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

Issue 155234: Fix crash in arm conditional expression code generation. (Closed)

Created:
11 years, 5 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix crash in arm conditional expression code generation. Committed: http://code.google.com/p/v8/source/detail?r=2399

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M src/arm/codegen-arm.cc View 1 chunk +17 lines, -7 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (chromium)
11 years, 5 months ago (2009-07-08 19:37:45 UTC) #1
Erik Corry
LGTM
11 years, 5 months ago (2009-07-08 19:39:35 UTC) #2
Mads Ager (chromium)
I'll work on generating a regression test case. This crashes the nytimes.com webpage when using ...
11 years, 5 months ago (2009-07-08 19:40:30 UTC) #3
Kevin Millikin (Chromium)
This issue is pretty minor. It only comes up when the condition is unconditionally true. ...
11 years, 5 months ago (2009-07-09 01:20:31 UTC) #4
Mads Ager (chromium)
11 years, 5 months ago (2009-07-09 04:11:08 UTC) #5
http://codereview.chromium.org/155234/diff/1/2
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/155234/diff/1/2#newcode2434
Line 2434: if (frame_ != NULL) {
On 2009/07/09 01:20:31, Kevin Millikin wrote:
> You only need to jump around the else part if you are going to emit it.  You
> could write:
> 
> if (else_.is_linked()) {
>   JumpTarget exit;
>   if (has_valid_frame()) exit.Jump();
>   LoadAndSpill(node->else_expression(), typeof_state());
>   if (exit.is_linked()) exit.Bind();
> }

Done.  I left the binding of the else_ JumpTarget in there though.  :-)

Powered by Google App Engine
This is Rietveld 408576698