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

Issue 23003026: Avoid array bounds check when allowed by guarded field. (Closed)

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

Description

Avoid array bounds check when allowed by guarded field. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=26604

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -18 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 1 chunk +46 lines, -18 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
Cutch
7 years, 4 months ago (2013-08-22 21:34:38 UTC) #1
srdjan
https://codereview.chromium.org/23003026/diff/1/runtime/vm/intermediate_language_arm.cc File runtime/vm/intermediate_language_arm.cc (right): https://codereview.chromium.org/23003026/diff/1/runtime/vm/intermediate_language_arm.cc#newcode4328 runtime/vm/intermediate_language_arm.cc:4328: intptr_t guarded_array_length = -1; Instead of checking here, move ...
7 years, 4 months ago (2013-08-22 22:02:42 UTC) #2
Cutch
On 2013/08/22 22:02:42, srdjan wrote: > https://codereview.chromium.org/23003026/diff/1/runtime/vm/intermediate_language_arm.cc > File runtime/vm/intermediate_language_arm.cc (right): > > https://codereview.chromium.org/23003026/diff/1/runtime/vm/intermediate_language_arm.cc#newcode4328 > ...
7 years, 4 months ago (2013-08-22 22:51:32 UTC) #3
srdjan
lgtm
7 years, 4 months ago (2013-08-22 22:56:18 UTC) #4
Florian Schneider
dbc: https://codereview.chromium.org/23003026/diff/6001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/23003026/diff/6001/runtime/vm/flow_graph_optimizer.cc#newcode789 runtime/vm/flow_graph_optimizer.cc:789: if (i->IsConstant() && guarded_array_length >= 0) { When ...
7 years, 4 months ago (2013-08-23 08:26:15 UTC) #5
Cutch
Committed patchset #2 manually as r26604 (presubmit successful).
7 years, 4 months ago (2013-08-23 17:48:31 UTC) #6
Cutch
7 years, 4 months ago (2013-08-23 17:48:40 UTC) #7
Message was sent while issue was closed.
On 2013/08/23 08:26:15, Florian Schneider wrote:
> dbc:
> 
>
https://codereview.chromium.org/23003026/diff/6001/runtime/vm/flow_graph_opti...
> File runtime/vm/flow_graph_optimizer.cc (right):
> 
>
https://codereview.chromium.org/23003026/diff/6001/runtime/vm/flow_graph_opti...
> runtime/vm/flow_graph_optimizer.cc:789: if (i->IsConstant() &&
> guarded_array_length >= 0) {
> When done here, it works only for constant index expressions.
> But if you eliminate the bounds check after range analysis, there will be more
> opportunities for non-constant index where the range is known.

Hi Florian,

I will be in AAR next week. Let's discuss how to extend what I have with your
idea.

Powered by Google App Engine
This is Rietveld 408576698