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

Issue 1969093002: Miscellaneous runtime fixes. (Closed)

Created:
4 years, 7 months ago by Leaf
Modified:
4 years, 7 months ago
Reviewers:
sra1, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Miscellaneous runtime fixes. Shaves some time off of the sample app startup. BUG= R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/083713468cb7696cb3cde8d101b874a5da64d84d

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -18 lines) Patch
M lib/runtime/dart_sdk.js View 1 4 chunks +9 lines, -7 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/classes.dart View 1 2 chunks +7 lines, -5 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/types.dart View 1 2 chunks +7 lines, -4 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/utils.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Leaf
4 years, 7 months ago (2016-05-11 19:40:59 UTC) #2
Jennifer Messerly
Well it's kind of a shame to see more crazy-interpolation-JS-functions-in-Dart, but otherwise LGTM. https://codereview.chromium.org/1969093002/diff/1/tool/input_sdk/private/ddc_runtime/classes.dart File ...
4 years, 7 months ago (2016-05-11 19:56:26 UTC) #3
Leaf
Committed patchset #2 (id:20001) manually as 083713468cb7696cb3cde8d101b874a5da64d84d (presubmit successful).
4 years, 7 months ago (2016-05-12 00:20:45 UTC) #5
Leaf
4 years, 7 months ago (2016-05-12 17:00:44 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1969093002/diff/1/tool/input_sdk/private/ddc_...
File tool/input_sdk/private/ddc_runtime/classes.dart (right):

https://codereview.chromium.org/1969093002/diff/1/tool/input_sdk/private/ddc_...
tool/input_sdk/private/ddc_runtime/classes.dart:290: for (var i = 0; i <
names.length; ++i) {
On 2016/05/11 19:56:26, John Messerly wrote:
> nit: use `let` if writing JS code

Done.

https://codereview.chromium.org/1969093002/diff/1/tool/input_sdk/private/ddc_...
tool/input_sdk/private/ddc_runtime/classes.dart:291: let name = names[i];
On 2016/05/11 19:56:26, John Messerly wrote:
> fyi ... there is a way to write this in Dart without converting it back to the
> old pattern (that I've been slowly trying to remove).
> 
> This would work:
> 
> var names = getOwnPropertyNames(coreObjProto);
> for (int i = 0; i < JS('int', '#.length', names); ++i) {
>     var name = JS('', '#[#], names, i);
>     ...
> }
> 
> 
> That said, if we're microoptimizing, maybe we need to convert large chunks of
> the runtime back to a .js file.

Done.

https://codereview.chromium.org/1969093002/diff/1/tool/input_sdk/private/ddc_...
File tool/input_sdk/private/ddc_runtime/utils.dart (right):

https://codereview.chromium.org/1969093002/diff/1/tool/input_sdk/private/ddc_...
tool/input_sdk/private/ddc_runtime/utils.dart:96: for (var i = 0; i <
$names.length; ++i) {
On 2016/05/11 19:56:26, John Messerly wrote:
> nit: use `let`

Done.

Powered by Google App Engine
This is Rietveld 408576698