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

Issue 281823002: Fix an undetected Smi overflow on ARM. (Closed)

Created:
6 years, 7 months ago by regis
Modified:
6 years, 7 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix an undetected Smi overflow on ARM. Fix wrongly triggered overflow in optimized code on Intel. Add a test. Address a few TODOs. R=zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=36186

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -99 lines) Patch
M runtime/vm/assembler_arm.h View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M runtime/vm/assembler_arm.cc View 1 2 3 5 chunks +15 lines, -18 lines 0 comments Download
M runtime/vm/assembler_arm64.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/assembler_arm64.cc View 1 2 3 3 chunks +27 lines, -0 lines 0 comments Download
M runtime/vm/assembler_ia32.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/assembler_ia32.cc View 1 2 1 chunk +22 lines, -7 lines 0 comments Download
M runtime/vm/assembler_x64.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/assembler_x64.cc View 1 2 3 chunks +56 lines, -27 lines 0 comments Download
M runtime/vm/ast.cc View 1 2 2 chunks +25 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 4 chunks +14 lines, -7 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 1 chunk +14 lines, -6 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 2 chunks +13 lines, -8 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 1 chunk +9 lines, -9 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 2 chunks +12 lines, -7 lines 0 comments Download
M runtime/vm/object.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
A tests/language/arithmetic_smi_overflow_test.dart View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
regis
6 years, 7 months ago (2014-05-13 21:40:02 UTC) #1
zra
lgtm
6 years, 7 months ago (2014-05-13 21:54:38 UTC) #2
regis
Thanks! After doing a bit more cleanup, I realize that the bug exists on ia32 ...
6 years, 7 months ago (2014-05-13 22:14:31 UTC) #3
regis
On 2014/05/13 22:14:31, regis wrote: > Thanks! > > After doing a bit more cleanup, ...
6 years, 7 months ago (2014-05-13 22:17:37 UTC) #4
regis
There are several reasons preventing the test from unveiling the bug on 64-bit architectures. First, ...
6 years, 7 months ago (2014-05-14 18:38:57 UTC) #5
zra
lgtm https://codereview.chromium.org/281823002/diff/40001/runtime/vm/assembler_arm.cc File runtime/vm/assembler_arm.cc (right): https://codereview.chromium.org/281823002/diff/40001/runtime/vm/assembler_arm.cc#newcode2501 runtime/vm/assembler_arm.cc:2501: if (ShifterOperand::CanHold(value, &shifter_op)) { Maybe add a comment ...
6 years, 7 months ago (2014-05-14 19:40:55 UTC) #6
regis
Thanks! https://codereview.chromium.org/281823002/diff/40001/runtime/vm/assembler_arm.cc File runtime/vm/assembler_arm.cc (right): https://codereview.chromium.org/281823002/diff/40001/runtime/vm/assembler_arm.cc#newcode2501 runtime/vm/assembler_arm.cc:2501: if (ShifterOperand::CanHold(value, &shifter_op)) { On 2014/05/14 19:40:55, zra ...
6 years, 7 months ago (2014-05-14 19:54:52 UTC) #7
regis
6 years, 7 months ago (2014-05-14 19:57:22 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r36186 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698