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

Issue 22640019: Fix for running with --throw_on_javascript_int_overflow: recognize pattern (a << b) & mask and test… (Closed)

Created:
7 years, 4 months ago by srdjan
Modified:
7 years, 4 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix for running with --throw_on_javascript_int_overflow: recognize pattern (a << b) & mask and test for overflow only after the mask. R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=26122

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 4

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -13 lines) Patch
M runtime/lib/integers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +28 lines, -4 lines 0 comments Download
M runtime/lib/integers.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -1 line 0 comments Download
M runtime/lib/object_patch.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/ast.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +38 lines, -0 lines 0 comments Download
M runtime/vm/ast.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/ast_printer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +50 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +61 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -2 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +23 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/javascript_int_overflow_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
srdjan
Seems to have no performance impact except 18% gain on SHA256, x64.
7 years, 4 months ago (2013-08-12 21:51:52 UTC) #1
Florian Schneider
I think we need a more generic approach because I don't think adding recognized patterns ...
7 years, 4 months ago (2013-08-13 14:45:23 UTC) #2
Florian Schneider
lgtm. As discussed off-line, before adding more patterns like this we should consider a more ...
7 years, 4 months ago (2013-08-13 15:29:52 UTC) #3
srdjan
PTAL https://codereview.chromium.org/22640019/diff/52001/runtime/vm/ast.h File runtime/vm/ast.h (right): https://codereview.chromium.org/22640019/diff/52001/runtime/vm/ast.h#newcode613 runtime/vm/ast.h:613: int64_t mask32_; On 2013/08/13 15:29:52, Florian Schneider wrote: ...
7 years, 4 months ago (2013-08-13 18:44:59 UTC) #4
Florian Schneider
lgtm https://codereview.chromium.org/22640019/diff/123001/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/22640019/diff/123001/runtime/vm/flow_graph_builder.cc#newcode1096 runtime/vm/flow_graph_builder.cc:1096: void ValueGraphVisitor::VisitBinaryOpWithMask32Node( You can just have the Visit ...
7 years, 4 months ago (2013-08-14 08:42:47 UTC) #5
srdjan
https://codereview.chromium.org/22640019/diff/123001/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/22640019/diff/123001/runtime/vm/flow_graph_builder.cc#newcode1096 runtime/vm/flow_graph_builder.cc:1096: void ValueGraphVisitor::VisitBinaryOpWithMask32Node( On 2013/08/14 08:42:47, Florian Schneider wrote: > ...
7 years, 4 months ago (2013-08-14 14:29:05 UTC) #6
srdjan
7 years, 4 months ago (2013-08-14 15:12:49 UTC) #7
Message was sent while issue was closed.
Committed patchset #15 manually as r26122 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698