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

Issue 15743017: Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow. (Closed)

Created:
7 years, 7 months ago by zra
Modified:
7 years, 6 months ago
CC:
reviews_dartlang.org, floitsch
Visibility:
Public.

Description

Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow. R=asiva@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=23640

Patch Set 1 #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -35 lines) Patch
M runtime/lib/double.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/exceptions.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/intrinsifier.h View 1 2 3 4 5 6 7 8 9 4 chunks +34 lines, -31 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -2 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 9 4 chunks +44 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/core/errors.dart View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
A tests/standalone/53bit_overflow_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
zra
I think I've got the check in all the places that Srdjan mentioned. Please let ...
7 years, 7 months ago (2013-05-22 22:25:12 UTC) #1
siva
There are some intrinsified function in intrinsifier.h which deal with IntegerImplementation, how are those handled ...
7 years, 7 months ago (2013-05-23 01:28:22 UTC) #2
zra
https://codereview.chromium.org/15743017/diff/7001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://codereview.chromium.org/15743017/diff/7001/runtime/lib/double.cc#newcode19 runtime/lib/double.cc:19: DECLARE_FLAG(bool, throw_on_53bit_overflow); On 2013/05/23 01:28:22, siva wrote: > I ...
7 years, 7 months ago (2013-05-23 15:59:06 UTC) #3
siva
LGTM. Maybe in bool Intrinsifier::CanIntrinsify(const Function& function) { if (!FLAG_intrinsify) return false; if (function.IsClosureFunction()) return ...
7 years, 7 months ago (2013-05-23 17:38:57 UTC) #4
zra
I've updated based on my previous CL. I've also added the check Siva suggested to ...
7 years, 7 months ago (2013-05-24 23:12:18 UTC) #5
srdjan
DBC What is the plan, shouldn't we have be turning the flag on as part ...
7 years, 7 months ago (2013-05-28 10:57:14 UTC) #6
zra
Lots of tests fail with this flag on, so I'm not sure turning it on ...
7 years, 6 months ago (2013-05-28 17:06:39 UTC) #7
siva
On 2013/05/24 23:12:18, zra wrote: > I've updated based on my previous CL. I've also ...
7 years, 6 months ago (2013-05-28 17:47:33 UTC) #8
zra
On 2013/05/28 17:47:33, siva wrote: > Turning off intrinsification is going to have a pretty ...
7 years, 6 months ago (2013-05-28 21:15:24 UTC) #9
srdjan
On 2013/05/28 21:15:24, zra wrote: > On 2013/05/28 17:47:33, siva wrote: > > Turning off ...
7 years, 6 months ago (2013-05-29 12:34:24 UTC) #10
zra
On 2013/05/28 17:47:33, siva wrote: > Turning off intrinsification is going to have a pretty ...
7 years, 6 months ago (2013-05-31 18:29:28 UTC) #11
zra
On 2013/05/31 18:29:28, zra wrote: > I've created a new list of the Integer intrinsics ...
7 years, 6 months ago (2013-06-05 15:10:42 UTC) #12
srdjan
LGTM https://codereview.chromium.org/15743017/diff/59001/tests/standalone/53bit_overflow_test.dart File tests/standalone/53bit_overflow_test.dart (right): https://codereview.chromium.org/15743017/diff/59001/tests/standalone/53bit_overflow_test.dart#newcode45 tests/standalone/53bit_overflow_test.dart:45: Expect.equals(190000000000000 ,double_to_int()); Fix comma formatting.
7 years, 6 months ago (2013-06-05 15:32:00 UTC) #13
zra
Committed patchset #10 manually as r23640 (presubmit successful).
7 years, 6 months ago (2013-06-05 17:18:15 UTC) #14
Lasse Reichstein Nielsen
7 years, 6 months ago (2013-06-20 12:30:53 UTC) #15
Message was sent while issue was closed.
Please CC or add either myself or floitsch as reviewers on library changes (like
the change to lib/core/errors.dart here).

Powered by Google App Engine
This is Rietveld 408576698