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

Issue 10914008: Add explicit smi-checks to smi comparisons. (Closed)

Created:
8 years, 3 months ago by Florian Schneider
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add explicit smi-checks to smi comparisons. This change works around some difficulties that come from the distiction between Instruction and Computation in our IL. We have now two instructions that can wrap a computation and that makes visiting and replacing in the flow graph optimizer harder. I added some helpers to work around this for now. Also fix register constraints for double comparisons: xmm1 is used, but was not reserved as temp. Committed: https://code.google.com/p/dart/source/detail?r=11758

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -53 lines) Patch
M runtime/vm/flow_graph_optimizer.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 8 chunks +55 lines, -9 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 5 chunks +8 lines, -7 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 5 chunks +23 lines, -15 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 5 chunks +24 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Florian Schneider
8 years, 3 months ago (2012-08-30 12:35:15 UTC) #1
srdjan
DBC https://chromiumcodereview.appspot.com/10914008/diff/1/runtime/vm/flow_graph_optimizer.h File runtime/vm/flow_graph_optimizer.h (right): https://chromiumcodereview.appspot.com/10914008/diff/1/runtime/vm/flow_graph_optimizer.h#newcode36 runtime/vm/flow_graph_optimizer.h:36: // and computation, this can be made private ...
8 years, 3 months ago (2012-08-30 18:36:11 UTC) #2
Florian Schneider
https://chromiumcodereview.appspot.com/10914008/diff/1/runtime/vm/flow_graph_optimizer.h File runtime/vm/flow_graph_optimizer.h (right): https://chromiumcodereview.appspot.com/10914008/diff/1/runtime/vm/flow_graph_optimizer.h#newcode36 runtime/vm/flow_graph_optimizer.h:36: // and computation, this can be made private again. ...
8 years, 3 months ago (2012-09-03 09:25:09 UTC) #3
Kevin Millikin (Google)
8 years, 3 months ago (2012-09-03 11:02:43 UTC) #4
LGTM.

Powered by Google App Engine
This is Rietveld 408576698