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

Issue 636903002: Compute an incremental patch to JavaScript code. (Closed)

Created:
6 years, 2 months ago by ahe
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org, lukechurch, kasperl, floitsch, sigurdm
Visibility:
Public.

Description

Compute an incremental patch to JavaScript code. R=johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=41011

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Work around bug in JsBuilder. Also use js.statement to avoid ! hack. Tested with minification. #

Patch Set 4 : Add DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT bool.fromEnvironment. #

Total comments: 14

Patch Set 5 : Use templates, not constructors. #

Total comments: 2

Patch Set 6 : Use Namer.elementAccess (to address Johnni's comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -24 lines) Patch
M dart/pkg/dart2js_incremental/lib/library_updater.dart View 1 2 3 4 5 2 chunks +67 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/enqueue.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart View 1 2 chunks +9 lines, -0 lines 0 comments Download
A dart/site/try/poi/patcher.js View 1 chunk +15 lines, -0 lines 0 comments Download
M dart/site/try/poi/poi.dart View 1 2 6 chunks +16 lines, -20 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
ahe
I have some manual testing of this. In the next CL, I'll develop an automated ...
6 years, 2 months ago (2014-10-07 13:07:51 UTC) #2
ahe
Uploaded a new patch set which works around the bug in JsBuilder/TemplateManager. Also added option ...
6 years, 2 months ago (2014-10-07 15:25:44 UTC) #3
ahe
Added option to make testing reproducible by others. How to use: 1. Compile a simple ...
6 years, 2 months ago (2014-10-07 15:43:59 UTC) #4
floitsch
DBC. https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart File dart/pkg/dart2js_incremental/lib/library_updater.dart (right): https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart#newcode233 dart/pkg/dart2js_incremental/lib/library_updater.dart:233: // names in updateScope don't shadow global names. ...
6 years, 2 months ago (2014-10-07 15:56:58 UTC) #6
ahe
Florian, thank you for taking a look. https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart File dart/pkg/dart2js_incremental/lib/library_updater.dart (right): https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart#newcode233 dart/pkg/dart2js_incremental/lib/library_updater.dart:233: // names ...
6 years, 2 months ago (2014-10-07 16:32:40 UTC) #7
floitsch
https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart File dart/pkg/dart2js_incremental/lib/library_updater.dart (right): https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart#newcode233 dart/pkg/dart2js_incremental/lib/library_updater.dart:233: // names in updateScope don't shadow global names. On ...
6 years, 2 months ago (2014-10-07 17:48:38 UTC) #8
sra1
Templates can do everything you want to do. https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart File dart/pkg/dart2js_incremental/lib/library_updater.dart (right): https://codereview.chromium.org/636903002/diff/60001/dart/pkg/dart2js_incremental/lib/library_updater.dart#newcode206 dart/pkg/dart2js_incremental/lib/library_updater.dart:206: updates.statements.add(computeMemberUpdateJs(element)); ...
6 years, 2 months ago (2014-10-07 18:03:06 UTC) #10
ahe
Thank you, Stephen and Florian for taking a look. Johnni, please take a look at ...
6 years, 2 months ago (2014-10-08 12:09:45 UTC) #11
Johnni Winther
lgtm https://codereview.chromium.org/636903002/diff/80001/dart/pkg/dart2js_incremental/lib/library_updater.dart File dart/pkg/dart2js_incremental/lib/library_updater.dart (right): https://codereview.chromium.org/636903002/diff/80001/dart/pkg/dart2js_incremental/lib/library_updater.dart#newcode224 dart/pkg/dart2js_incremental/lib/library_updater.dart:224: jsAst.Node globalObject = compiler.backend.namer.globalObjectFor(element); globalObject should be a ...
6 years, 2 months ago (2014-10-08 13:21:50 UTC) #12
ahe
Committed patchset #6 (id:100001) manually as 41011 (presubmit successful).
6 years, 2 months ago (2014-10-09 12:57:20 UTC) #13
ahe
6 years, 2 months ago (2014-10-09 13:56:27 UTC) #14
Message was sent while issue was closed.
Thank you, Johnni.

https://codereview.chromium.org/636903002/diff/80001/dart/pkg/dart2js_increme...
File dart/pkg/dart2js_incremental/lib/library_updater.dart (right):

https://codereview.chromium.org/636903002/diff/80001/dart/pkg/dart2js_increme...
dart/pkg/dart2js_incremental/lib/library_updater.dart:224: jsAst.Node
globalObject = compiler.backend.namer.globalObjectFor(element);
On 2014/10/08 13:21:50, Johnni Winther wrote:
> globalObject should be a String.

Actually, I should probably use Namer.elementAccess instead, so that's what I've
done.

Powered by Google App Engine
This is Rietveld 408576698