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

Issue 2823004: X64: Change overflow checks to only jump on overflow. (Closed)

Created:
10 years, 6 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

X64: Change overflow checks to only jump on overflow. Costs an extra move because the result is calculated in a scratch register and only moved to destination on non-overflow in order to preserve source registers in case of overflow. Committed as revision 4877.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -41 lines) Patch
M src/x64/macro-assembler-x64.cc View 1 6 chunks +42 lines, -41 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
Small review.
10 years, 6 months ago (2010-06-15 13:00:01 UTC) #1
William Hesse
LGTM. http://codereview.chromium.org/2823004/diff/1/2 File src/x64/macro-assembler-x64.cc (right): http://codereview.chromium.org/2823004/diff/1/2#newcode699 src/x64/macro-assembler-x64.cc:699: Assert(no_overflow, "Smi addition onverflow"); overflow http://codereview.chromium.org/2823004/diff/1/2#newcode728 src/x64/macro-assembler-x64.cc:728: Assert(no_overflow, ...
10 years, 6 months ago (2010-06-15 13:53:19 UTC) #2
Lasse Reichstein
10 years, 6 months ago (2010-06-16 08:20:18 UTC) #3
Fixed typos, added comments, changed "positive" to "not_sign" (and added
comment). Reduced one case by one instruction to make it match the similar
cases.

Powered by Google App Engine
This is Rietveld 408576698