Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev compiler merge #27213

Closed
wants to merge 1,140 commits into from
Closed

Dev compiler merge #27213

wants to merge 1,140 commits into from

Conversation

jmesserly
Copy link

This merges dev_compiler from https://github.com/dart-lang/dev_compiler into pkg/dev_compiler. Build is adjusted to use the new location.

jacob314 and others added 30 commits April 28, 2016 09:28
…dded except for js_array_test.dart and js_dart_to_string_test.dart which have to be stripped out for now due to failures.

BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/1930043002 .
R=paulberry@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org/1930133002 .
Dart `%` is modulo, JS `%` is remainder, so call the runtime version.

Use dart2js interpretation of bit operations and shifts which always
produce a 32-bit unsigned result.

Optimization of the bit operations to follow.

BUG= dart-archive/dev_compiler#518
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1924413002 .
- JavaScript shifts can be used for operands in certain ranges.

- Coercion from signed-32 to unsigned-32 can be omitted if
  - it is a no-op
  - the context performs the coercion
  - the context is insensitive to the most significant bit

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1920293005 .
Most operations don't check, that will happen as more code is updated
to a more recent sdk.

BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/1939093003 .
If I rebuild the SDK, I see a cast from List to List<E> on the next line without this.  With the change, we just infer List<E> in the first place.

R=sra@google.com

Review URL: https://codereview.chromium.org/1945793002 .
Undoing this.  Paul fixed this in 1.17.  We'll need to run with 1.17 builds going forward, but we need that for other reasons.

Fixes #537

R=jacobr@google.com

Review URL: https://codereview.chromium.org/1936693002 .
This is a temporary solution.
When we have an implementation of const maps, we should switch to that.

BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/1946663002 .
- Instead of using the raw runtime type that DDC uses for its type
  checks, use a WrappedType that correctly implements Type's interface.
- Compile class literals to wrap the type in a WrappedType.
- Make Object.runtimeType() do the same thing.

Fixes #488. Fixes #511.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1944483002 .
top-level fields, getters, setters were all broken

R=vsm@google.com

Review URL: https://codereview.chromium.org/1949733002 .
Also
- allow failing tests to be run and checked for failure

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1946853002 .
This is for testing purposes and hence in tool.  Gives a dart2js-ish
API to invoke DDC, but stuffs everything in one module.

Closed https://codereview.chromium.org/1900813002/ in favor of this.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1951433002 .
Also, fix the language test for this to actually do something useful.
I accidentally removed the definition of testType() in the last patch,
so the test did nothing. :(

Fixes #547.

R=vsm@google.com

Review URL: https://codereview.chromium.org/1945643005 .
Also
- update some error helpers functions in the js runtime.
- add 'int' to stringFromCharCode to avoid dcalls.

R=vsm@google.com

Review URL: https://codereview.chromium.org/1947723002 .
99 have compile errors
265 generate code
94 fail

We will triage after updating the sdk.

R=vsm@google.com

Review URL: https://codereview.chromium.org/1945153002 .
the DDC runtime returns null when a difference from the spec mode
result is possible.

Fixes dart-archive/dev_compiler#524 .

BUG=
R=jmesserly@google.com, vsm@google.com

Review URL: https://codereview.chromium.org/1945113003 .
vsmenon and others added 23 commits August 14, 2016 15:32
'compile' command is obsolete
We're getting bot failures due to analyzer deprecation messages.

R=brianwilkerson@google.com, jmesserly@google.com

Review URL: https://codereview.chromium.org/2258873002 .
About 50 tests pass right now.  A bunch more fail.

See #199

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/2256393002 .
Doh!

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/2265533002 .
the .dart script is left over from when we couldn't build SDK via normal compile path

R=vsm@google.com

Review URL: https://codereview.chromium.org/2265303002 .
This reverts commit 4cf8eebec783fbc3ac8e027bf5a64b5bf2178ad3.

apparently we use it for code coverage. go figure.

Review URL: https://codereview.chromium.org/2261183004 .
I also renamed "outPath" so this bug is less likely to happen in the future :)

R=vsm@google.com

Review URL: https://codereview.chromium.org/2279833002 .
- increase timeout so we load all tests
- mark a few more failures
- skip unittest tests until we re-triage them

Review URL: https://codereview.chromium.org/2279053002 .
Updating to the latest analyzer.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2289263004 .
TBR'ing to get travis green

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/2294333002 .
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@jmesserly
Copy link
Author

yes @googlebot we're okay, this is merging in another repository also in the Dart-lang project that has the exact same CLA and license. :)

@jmesserly jmesserly closed this Aug 31, 2016
@lrhn
Copy link
Member

lrhn commented Sep 1, 2016

This merge (I'm guessing) has accidentally closed some issues (e.g., #270 and #221) because the dev-compiler commit messages said that it "fixes" that issue (presumably the number is for the dev-compiler repository).

Please check if there are more issues "fixed" by this commit.
EDIT: I think I found all the cases, there were only ~5. Luckily most low-numbered SDK issues are already closed.

This also means that all your issue links in commit messages are now incorrect. You may consider rolling the merge back and find a way to roll it back in with either correct links to the old repository, or move the issues to the sdk repo and update the links.

@jmesserly
Copy link
Author

oh, sneaky github. Thanks so much @lrhn for catching that!

@kevmoo kevmoo deleted the dev_compiler_merge branch September 1, 2016 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.