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

Issue 13945008: Move the dart2js snapshot into bin directory of sdk root. (Closed)

Created:
7 years, 8 months ago by ricow1
Modified:
7 years, 8 months ago
Reviewers:
ahe, dgrove, kustermann
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move the dart2js snapshot into bin directory of sdk root. This is the first step in eliminating lib/_internal. Committed: https://code.google.com/p/dart/source/detail?r=21247

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 24

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -49 lines) Patch
M dart.gyp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M sdk/bin/dart2js View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M sdk/bin/dart2js.bat View 1 2 chunks +8 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 6 chunks +7 lines, -14 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 3 4 5 4 chunks +20 lines, -2 lines 0 comments Download
M tools/create_sdk.py View 1 2 6 chunks +22 lines, -17 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M utils/compiler/compiler.gyp View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
A utils/compiler/create_snapshot.dart View 1 2 3 4 5 1 chunk +90 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ricow1
7 years, 8 months ago (2013-04-09 14:30:26 UTC) #1
ahe
Let's talk about what I'm saying below. Not sure I'm clear. https://codereview.chromium.org/13945008/diff/1/tools/create_sdk.py File tools/create_sdk.py (right): ...
7 years, 8 months ago (2013-04-09 14:37:21 UTC) #2
kustermann
https://codereview.chromium.org/13945008/diff/1/sdk/bin/dart2js File sdk/bin/dart2js (right): https://codereview.chromium.org/13945008/diff/1/sdk/bin/dart2js#newcode28 sdk/bin/dart2js:28: You should change that path in test_suite.dart:477 as well, ...
7 years, 8 months ago (2013-04-09 15:02:28 UTC) #3
ricow1
https://codereview.chromium.org/13945008/diff/1/tools/create_sdk.py File tools/create_sdk.py (right): https://codereview.chromium.org/13945008/diff/1/tools/create_sdk.py#newcode110 tools/create_sdk.py:110: subprocess.call([os.path.join(build_dir, 'dart'), On 2013/04/09 15:02:28, kustermann wrote: > Does ...
7 years, 8 months ago (2013-04-09 15:26:58 UTC) #4
ricow1
Changed this to use a wrapper script (auto generated) that we then create a snapshot ...
7 years, 8 months ago (2013-04-10 12:02:20 UTC) #5
ricow1
Fixed build id argument passing in the compiler, PTAL
7 years, 8 months ago (2013-04-10 13:10:09 UTC) #6
ahe
LGTM! Thank you for doing this! We should have a sync version of Process.run. https://codereview.chromium.org/13945008/diff/12003/sdk/bin/dart2js ...
7 years, 8 months ago (2013-04-10 14:50:08 UTC) #7
ricow1
Thanks for the comments https://codereview.chromium.org/13945008/diff/12003/sdk/bin/dart2js File sdk/bin/dart2js (right): https://codereview.chromium.org/13945008/diff/12003/sdk/bin/dart2js#newcode63 sdk/bin/dart2js:63: exec "$DART" "${EXTRA_VM_OPTIONS[@]}" "$SNAPSHOT" "dart2js" ...
7 years, 8 months ago (2013-04-11 05:45:12 UTC) #8
ricow1
Committed patchset #6 manually as r21247 (presubmit successful).
7 years, 8 months ago (2013-04-11 05:47:36 UTC) #9
ahe
7 years, 8 months ago (2013-04-11 06:03:46 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/13945008/diff/12003/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/compiler.dart (right):

https://codereview.chromium.org/13945008/diff/12003/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/compiler.dart:412: String buildId:
"build number could not be determined",
On 2013/04/11 05:45:12, ricow1 wrote:
> On 2013/04/10 14:50:08, ahe wrote:
> > Could this be this.buildId?
> This is a named optional parameter, like the rest

I'm not sure you understood my question. I checked the spec, it should be
possible to replace this line by:

this.buildId: "...",

https://codereview.chromium.org/13945008/diff/12003/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/compiler.dart:427: buildId = buildId,
On 2013/04/11 05:45:12, ricow1 wrote:
> On 2013/04/10 14:50:08, ahe wrote:
> > this.buildId
> again, I just followed the existing convention, but changed

I need to check the history of these assignments, I find it highly confusing
that they don't start with this. But if the above suggestion works, this line
can be removed.

Powered by Google App Engine
This is Rietveld 408576698