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

Issue 20468002: Allow equality operation on mixed double/smi arguments. (Closed)

Created:
7 years, 5 months ago by srdjan
Modified:
7 years, 5 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Allow equality operation on mixed double/smi arguments. Fix a bug in relational operations in 64 bit mode: if ICData specifies double and Smi as possible arguments, we generate code for double and unbox or convert to double the inputs. These works only if smi can fit into the double. Current solution for 64-bit architecture is to disallow two smi-s as input to a polymorphic comparison instruction (equality, relational). R=johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=25522

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -165 lines) Patch
M runtime/vm/flow_graph_optimizer.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 7 chunks +64 lines, -60 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 10 chunks +30 lines, -37 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 9 chunks +18 lines, -18 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 10 chunks +19 lines, -19 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 9 chunks +18 lines, -18 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 8 chunks +13 lines, -13 lines 0 comments Download
A tests/standalone/double_smi_comparison_test.dart View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
srdjan
7 years, 5 months ago (2013-07-25 20:40:17 UTC) #1
Cutch
https://codereview.chromium.org/20468002/diff/12001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/20468002/diff/12001/runtime/vm/flow_graph_optimizer.cc#newcode2665 runtime/vm/flow_graph_optimizer.cc:2665: const ICData& ic_data = *comp->ic_data(); To match HandleEqualityCompare why ...
7 years, 5 months ago (2013-07-25 21:03:35 UTC) #2
srdjan
https://codereview.chromium.org/20468002/diff/12001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/20468002/diff/12001/runtime/vm/flow_graph_optimizer.cc#newcode2665 runtime/vm/flow_graph_optimizer.cc:2665: const ICData& ic_data = *comp->ic_data(); On 2013/07/25 21:03:36, Cutch ...
7 years, 5 months ago (2013-07-25 22:17:01 UTC) #3
Cutch
lgtm
7 years, 5 months ago (2013-07-26 16:02:36 UTC) #4
srdjan
7 years, 5 months ago (2013-07-26 16:48:53 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 manually as r25522 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698