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

Issue 12256037: Fix bug in optimizing string .length loads. (Closed)

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

Description

Fix bug in optimizing string .length loads. We're not allowed to hoist a .length load if the corresponding class-check is not also hoisted out of a loop. TEST=tests/language/optimized_string_charcodeat_test.dart Committed: https://code.google.com/p/dart/source/detail?r=18519

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -20 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 3 chunks +6 lines, -10 lines 0 comments Download
M tests/language/optimized_string_charcodeat_test.dart View 2 chunks +37 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Florian Schneider
7 years, 10 months ago (2013-02-14 13:38:49 UTC) #1
Vyacheslav Egorov (Google)
LGTM But can we just forbid externalization to change actual length? It does not make ...
7 years, 10 months ago (2013-02-14 15:14:57 UTC) #2
Florian Schneider
On 2013/02/14 15:14:57, Vyacheslav Egorov (Google) wrote: > LGTM > > But can we just ...
7 years, 10 months ago (2013-02-14 15:46:11 UTC) #3
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-02-14 16:00:29 UTC) #4
Message was sent while issue was closed.
Yes, you are absolutely right. 

You can however still hoist if def->Type() is string.

But we should really introduce dependencies to make things more robust.

Powered by Google App Engine
This is Rietveld 408576698