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

Issue 11186047: Inline indexed store ([]=) array operations in checked mode. (Closed)

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

Description

Inline indexed store ([]=) array operations in checked mode. Committed: https://code.google.com/p/dart/source/detail?r=13794

Patch Set 1 #

Patch Set 2 : bugfix #

Total comments: 4

Patch Set 3 : addressed comments, rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -2 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 2 2 chunks +52 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Florian Schneider
8 years, 2 months ago (2012-10-18 14:08:54 UTC) #1
srdjan
LGTM with comment, please wait for Regis to LGTM it as well. Can you also ...
8 years, 2 months ago (2012-10-18 16:25:48 UTC) #2
srdjan
8 years, 2 months ago (2012-10-18 16:26:02 UTC) #3
regis
LGTM https://codereview.chromium.org/11186047/diff/3001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/11186047/diff/3001/runtime/vm/flow_graph_optimizer.cc#newcode491 runtime/vm/flow_graph_optimizer.cc:491: UNREACHABLE(); How about a comment explaining that other ...
8 years, 2 months ago (2012-10-18 17:07:26 UTC) #4
Florian Schneider
8 years, 2 months ago (2012-10-18 18:13:10 UTC) #5
I checked for test coverage and the optimization is triggered in a large number
of the existing checked-mode tests.

https://codereview.chromium.org/11186047/diff/3001/runtime/vm/flow_graph_opti...
File runtime/vm/flow_graph_optimizer.cc (right):

https://codereview.chromium.org/11186047/diff/3001/runtime/vm/flow_graph_opti...
runtime/vm/flow_graph_optimizer.cc:462: InsertBefore(call, assert_index, NULL,
Definition::kValue);
On 2012/10/18 16:25:48, srdjan wrote:
> Do we need the index check at all, since it will be done as part of
StoreIndexed
> code. (deoptimizes if index is not integer).

Good point. I agree that we don't need it here. The unoptimized code will take
care of throwing the proper exception in case the index is not a smi.

https://codereview.chromium.org/11186047/diff/3001/runtime/vm/flow_graph_opti...
runtime/vm/flow_graph_optimizer.cc:491: UNREACHABLE();
On 2012/10/18 17:07:26, regis wrote:
> How about a comment explaining that other array flavors are not inlined yet?

Done.

Powered by Google App Engine
This is Rietveld 408576698