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

Issue 104313003: Remove unnecessary overflow check in BuildCreateAllocationMemento. (Closed)

Created:
7 years ago by mvstanton
Modified:
7 years ago
CC:
v8-dev
Visibility:
Public.

Description

Remove unnecessary overflow check in HGraphBuilder::BuildCreateAllocationMemento(). With this fix codegen looks like: mov ecx,[eax+0xf] ;;; <@52,#38> load-named-field add ecx,0x2 ;;; <@54,#40> add-i mov [eax+0xf],ecx ;;; <@56,#41> store-named-field without it there is an overflow check and jump to deopt. x64 code looks similar, except there is an (annoying) smi-untag then int32-to-smi around the add operation. R=bmeurer@chromium.org, hpayer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18255

Patch Set 1 #

Total comments: 1

Patch Set 2 : comment fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M src/hydrogen.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
mvstanton
Hi guys, here is the restored overflow check. Hannes, the reason we didn't see it ...
7 years ago (2013-12-04 10:24:52 UTC) #1
Benedikt Meurer
LGTM, go ahead! :-)
7 years ago (2013-12-04 10:25:40 UTC) #2
Hannes Payer (out of office)
LGTM, just make the comment more precise https://codereview.chromium.org/104313003/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/104313003/diff/1/src/hydrogen.cc#newcode2595 src/hydrogen.cc:2595: // This ...
7 years ago (2013-12-04 10:32:33 UTC) #3
Dmitry Lomov (no reviews)
sheriff's notice: ok to land
7 years ago (2013-12-04 10:42:36 UTC) #4
mvstanton
7 years ago (2013-12-04 10:46:25 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r18255.

Powered by Google App Engine
This is Rietveld 408576698