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

Issue 1891353003: Canonicalize TestCidsInstr (Closed)

Created:
4 years, 8 months ago by sra1
Modified:
4 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Canonicalize TestCidsInstr This reduces Uri.toString() in dart2js from 514 lines to 345 lines. (lines are instructions or code comments). I noticed the following: Uri.toString() has a statement: sb.write('//'); This was lined two levels deep, with effectively the following code for the inlining of interoplateSingle: TestCids on constant '//': _OneByteString -> return '//'; Uri -> fallthrough; Message -> fallthrough; else deopt; if ('//' is not Uri) deopt; String s = Uri.toString('//'); if (s is !_OneByteString) deopt; return s; With canonicalization of TestCidsInstr, this whole thing clears up eliminate interoplateSingle. R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/cceadc20d9de81ce23b5557e584e4245dc61f822

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M runtime/vm/constant_propagator.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
sra1
4 years, 8 months ago (2016-04-16 00:19:45 UTC) #2
Ivan Posva
+fschneider for reviewing the code. I just added a couple easily fixable style comments. Thanks, ...
4 years, 8 months ago (2016-04-18 04:37:46 UTC) #4
Florian Schneider
Lgtm https://chromiumcodereview.appspot.com/1891353003/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://chromiumcodereview.appspot.com/1891353003/diff/1/runtime/vm/intermediate_language.cc#newcode2599 runtime/vm/intermediate_language.cc:2599: break; Maybe something like: const intptr_t true_result = ...
4 years, 8 months ago (2016-04-18 14:57:28 UTC) #5
Florian Schneider
https://chromiumcodereview.appspot.com/1891353003/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://chromiumcodereview.appspot.com/1891353003/diff/1/runtime/vm/intermediate_language.cc#newcode2615 runtime/vm/intermediate_language.cc:2615: // against `null`. Add a TODO to add support ...
4 years, 8 months ago (2016-04-18 14:59:41 UTC) #6
sra1
https://chromiumcodereview.appspot.com/1891353003/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://chromiumcodereview.appspot.com/1891353003/diff/1/runtime/vm/intermediate_language.cc#newcode2599 runtime/vm/intermediate_language.cc:2599: break; On 2016/04/18 14:57:28, Florian Schneider wrote: > Maybe ...
4 years, 8 months ago (2016-04-19 03:19:19 UTC) #7
sra1
4 years, 8 months ago (2016-04-20 17:27:15 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
cceadc20d9de81ce23b5557e584e4245dc61f822 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698