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

Issue 10828416: Small changes to get the compilation size of code importing dart:html shorter. (Closed)

Created:
8 years, 4 months ago by ngeoffray
Modified:
8 years, 4 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Small changes to get the compilation size of code importing dart:html shorter. Committed: https://code.google.com/p/dart/source/detail?r=11292

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -51 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 1 chunk +0 lines, -3 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M lib/compiler/implementation/lib/js_helper.dart View 1 1 chunk +8 lines, -0 lines 0 comments Download
M lib/compiler/implementation/lib/native_helper.dart View 1 2 12 chunks +61 lines, -39 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 1 chunk +1 line, -8 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
It should be better to have our optimizers do (most of) the job, but we're ...
8 years, 4 months ago (2012-08-21 13:18:15 UTC) #1
kasperl
LGTM, but I'd like to start using inlining to get more readable, self-documenting uses of ...
8 years, 4 months ago (2012-08-21 13:24:51 UTC) #2
ngeoffray
Thanks Kasper, PTAL https://chromiumcodereview.appspot.com/10828416/diff/1/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10828416/diff/1/lib/compiler/implementation/enqueue.dart#newcode102 lib/compiler/implementation/enqueue.dart:102: if (!compiler.hasIsolateSupport() On 2012/08/21 13:24:51, kasperl ...
8 years, 4 months ago (2012-08-23 14:06:01 UTC) #3
kasperl
LGTM. https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implementation/enqueue.dart#newcode102 lib/compiler/implementation/enqueue.dart:102: if (!compiler.hasIsolateSupport() You didn't add the comment? ...
8 years, 4 months ago (2012-08-24 05:03:14 UTC) #4
ngeoffray
8 years, 4 months ago (2012-08-24 07:32:51 UTC) #5
Thanks Kasper.

https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implem...
File lib/compiler/implementation/enqueue.dart (right):

https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implem...
lib/compiler/implementation/enqueue.dart:102: if (!compiler.hasIsolateSupport()
On 2012/08/24 05:03:14, kasperl wrote:
> You didn't add the comment? ... and you didn't cache element.getLibrary in a
> local?

That's odd. I was pretty sure I did it and uploaded it. Anyway, comment and
local variable added.

https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implem...
File lib/compiler/implementation/lib/native_helper.dart (right):

https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implem...
lib/compiler/implementation/lib/native_helper.dart:184: method =
arrayGet(methods, 'Object');
On 2012/08/24 05:03:14, kasperl wrote:
> Hmm. This isn't really getting from an array -- arrayGet take an int index.
> You'll need something like propertyGet that takes a string. For now I would
keep
> this using JS unless you want to spend the extra time on introducing
propertyGet
> and using it (also in line 177).

Good catch. I added the property get helper.

https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implem...
lib/compiler/implementation/lib/native_helper.dart:239: if (dartMethod !== null)
arraySet(methods, 'Object', dartMethod);
On 2012/08/24 05:03:14, kasperl wrote:
> This should not use arraySet. It should use propertySet.

Done.

https://chromiumcodereview.appspot.com/10828416/diff/3001/lib/compiler/implem...
lib/compiler/implementation/lib/native_helper.dart:308: var set = newJSObject();
On 2012/08/24 05:03:14, kasperl wrote:
> newJsObject would be easier to read

Done.

Powered by Google App Engine
This is Rietveld 408576698