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

Issue 22842014: Fold equals and not equals comparisons for constant strings. (Closed)

Created:
7 years, 3 months ago by Kevin Millikin (Google)
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fold equals and not equals comparisons for constant strings. BUG=https://code.google.com/p/dart/issues/detail?id=12530 R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=26645

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
Kevin Millikin (Google)
7 years, 3 months ago (2013-08-26 12:04:49 UTC) #1
Florian Schneider
lgtm
7 years, 3 months ago (2013-08-26 12:17:03 UTC) #2
Kevin Millikin (Google)
Committed patchset #1 manually as r26645 (presubmit successful).
7 years, 3 months ago (2013-08-26 12:37:28 UTC) #3
srdjan
7 years, 3 months ago (2013-08-26 16:00:38 UTC) #4
Message was sent while issue was closed.
DBC

https://codereview.chromium.org/22842014/diff/1/runtime/vm/flow_graph_optimiz...
File runtime/vm/flow_graph_optimizer.cc (right):

https://codereview.chromium.org/22842014/diff/1/runtime/vm/flow_graph_optimiz...
runtime/vm/flow_graph_optimizer.cc:6067: } else if (left.IsString() &&
right.IsString()) {
I believe all constant strings must be canonicalized, i.e., raw pointer
comparison should be enough.

Powered by Google App Engine
This is Rietveld 408576698