Commit graph

45802 commits

Author SHA1 Message Date
Zach Anderson bc923bed16 [dart:io] Reland: Adds Platform.localeName
The Mac OS build broke because a typedef wasn't added until 10.12.

related #29126

Review-Url: https://codereview.chromium.org/2786183003 .
2017-03-30 13:51:46 -07:00
Zachary Anderson e75df3cce3 Revert "[dart:io] Adds Platform.localeName"
This reverts commit ae6d854ec6.

The build failed on the mac build bots. Need to investigate.

Review-Url: https://codereview.chromium.org/2791453002 .
2017-03-30 13:35:02 -07:00
Zachary Anderson ae6d854ec6 [dart:io] Adds Platform.localeName
related #29126

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2785073002 .
2017-03-30 13:31:11 -07:00
Brian Wilkerson 4d4441a868 Update status files to fix the bots (TBR)
Review-Url: https://codereview.chromium.org/2787913002 .
2017-03-30 13:19:42 -07:00
Brian Wilkerson ad54733d46 Convert top-level inference errors to hints
Review-Url: https://codereview.chromium.org/2786993002 .
2017-03-30 12:45:55 -07:00
Ryan Macnak 8e99919c92 Fix inconsistent removal of imports during tree-shaking.
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2783703005 .
2017-03-30 12:32:55 -07:00
Florian Schneider 22d5833ae4 Fix analyzer warnings in a test.
Review-Url: https://codereview.chromium.org/2787063003 .
2017-03-30 12:13:34 -07:00
Dan Rubel c22c6bad6c flag to enable fasta scanner in analyzer
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2784363002 .
2017-03-30 14:16:12 -04:00
Steve Messick 543d0dc20e Update coverage testing
R=devoncarew@google.com

Review-Url: https://codereview.chromium.org/2780393004 .
2017-03-30 11:15:55 -07:00
Florian Schneider 5a3f9d9398 Fix a couple of bugs with async stack traces
Related to #29145.

Fixes #29199.

1. Missing source positions in async and async* functions (synthetic code)

2. Added unit tests for issues #28980 and added asyns stack trace testing flags to existing test.

3. Handle uninitialized Completer object when collecting async stack traces.

Still missing is the correct calculation of context levels in ActivationFrame::ContextLevel. This is planned for a separate CL.

R=johnmccutchan@google.com

Review-Url: https://codereview.chromium.org/2786503003 .
2017-03-30 11:02:33 -07:00
Steve Messick 4a2cca3a52 Add getStatementCompletion to the API spec
R=brianwilkerson@google.com, scheglov@google.com

Review-Url: https://codereview.chromium.org/2784673003 .
2017-03-30 10:13:21 -07:00
Steve Messick 56afa1abb0 Add experimental attribute to requests (recreated due to git failure)
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2787013002 .
2017-03-30 10:10:43 -07:00
Brian Wilkerson 385cbc3839 Apply changes made to server spec generator
R=messick@google.com

Review-Url: https://codereview.chromium.org/2787703003 .
2017-03-30 10:04:40 -07:00
Ryan Macnak 2343b96911 Mark dwarf_stack_trace_test as flaky in product mode, due to identical code folding.
Fix dwarf_stack_trace_test in checked mode (generated output directory includes a hypen).

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2784033002 .
2017-03-30 10:01:52 -07:00
John McCutchan 8526b8cf2d Display the awaiter call stack in Observatory
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2785553005 .
2017-03-30 10:01:39 -07:00
Paul Berry 64623c095f Remove unnecessary import prefixes.
Due to the renames suggested in
https://codereview.chromium.org/2769723004, it is no longer necessary
for these files to use import prefixes.

R=ahe@google.com

Review-Url: https://codereview.chromium.org/2784283002 .
2017-03-30 09:16:05 -07:00
Janice Collins 37330be1b9 Expose function contained in GenericTypeAliasImpl.
R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2787513003 .
2017-03-30 09:08:46 -07:00
Erik Corry 48607be33d Improve internal compiler API so that OSR code is never installed on function.
This is forked off and a prerequisite for
https://codereview.chromium.org/2771013002/ which is itself a prerequisite for
a change to make fewer old-space allocations in the optimizing compiler, which
is in turn a fix for the performance regression in
https://codereview.chromium.org/2737303003

Fixes dart-lang/sdk#29160

R=vegorov@google.com
BUG=http://dartbug.com/29160

Review-Url: https://codereview.chromium.org/2781483005 .
2017-03-30 15:40:04 +02:00
Lasse R.H. Nielsen 6a614e17ea Update status file for kernel/VM results.
R=vegorov@google.com

Review-Url: https://codereview.chromium.org/2785173002 .
2017-03-30 15:20:48 +02:00
Lasse R.H. Nielsen c6ef4c8dd9 Fix edge cases where a FormatException source argument starts with a newline.
Fixes #29195

BUG= http://dartbug.com/29195
R=eernst@google.com

Review-Url: https://codereview.chromium.org/2789523002 .
2017-03-30 15:17:38 +02:00
Lasse R.H. Nielsen ed9c76421e Mark service/async_scope_test as slow on windows+checked+debug.
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2783173002 .
2017-03-30 15:04:06 +02:00
William Hesse 1d2b30b147 Start working on version 1.24 of the Dart SDK
BUG=
R=kasperl@google.com

Review-Url: https://codereview.chromium.org/2784183003 .
2017-03-30 12:36:07 +02:00
Lasse R.H. Nielsen ae22eed515 Improve changelog entry for URIs in part-of declarations.
Fixes #29185.
BUG= http://dartbug.com/29185
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2782183002 .
2017-03-30 11:55:27 +02:00
Kasper Lund 25c6c8811a Take analysis options into account when computing the severity of a strong mode "error".
This allows users to opt into the strong mode hints by turning them into warnings or errors in their analysis options files.

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

Review-Url: https://codereview.chromium.org/2784473004 .
2017-03-30 09:39:38 +02:00
Kevin Millikin d562f7ced5 Remove definitions from Kernel canonical names.
Before: Canonical names contained pointers to the corresponding Kernel
tree which assumed that the whole tree was in memory whenever the
canonical names were.

Now: Canonical names do not contain these pointers.  They were only
really used to perform name-based lookup in the VM's heap so the
canonical name itself is enough.

If we later find that we need to get from a canonical name to its
Kernel tree we can add an offset in the binary (for instance) to the
canonical name or in a separate mapping on the side.

BUG=
R=asgerf@google.com, jensj@google.com, vegorov@google.com

Committed: ed77783cd3
Review-Url: https://codereview.chromium.org/2781893004 .
2017-03-30 09:31:31 +02:00
Bob Nystrom cc1ba091e8 Bring dartfmt 1.0.1 (now 1.0.2) into the SDK.
R=kevmoo@google.com

Review-Url: https://codereview.chromium.org/2777623003 .
2017-03-29 15:54:19 -07:00
Zach Anderson cc10a46a1d [dart:io][windows] Set the last error when a signal is unsupported
fixes #28603

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2779373004 .
2017-03-29 15:39:43 -07:00
Zach Anderson 141b6351ba [dart:io][windows] Use WriteFile instead of _write
This CL changes File::Write on Windows to call directly to WriteFile()
instead of using _write(). This avoids a number of complexities:
1. Don't need to bother with text vs. binary mode.
2. Don't need to check both errno and GetLastError if _write() fails.
3. Don't need to convert to a wchar_t* for console output since we've
   already set the code page to UTF8.

fixes #29101

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2761673002 .
2017-03-29 13:19:25 -07:00
Vijay Menon 84864e3415 DDC fix for Edge
Patch from zjd.

R=jacobr@google.com

Review-Url: https://codereview.chromium.org/2780903004 .
2017-03-29 12:22:45 -07:00
Mike Fairhurst b4dbe8eba0 Re-add first copyright comment to DEPS, removed by mistake
BUG=
R=zra@google.com

Review-Url: https://codereview.chromium.org/2779113005 .
2017-03-29 12:10:53 -07:00
Dan Rubel 4a783d1465 move synthetic fasta closers into the token stream
* add new SyntheticSymbolToken class

* whenever fasta inserts a closer ( '}', ']', ')' ) that is not part
  of the original source, ensure that the inserted closer is
  synthetic (isSynthetic returns true) and in the token stream

* make EOF a synthetic token

R=ahe@google.com, scheglov@google.com

Review-Url: https://codereview.chromium.org/2777153002 .
2017-03-29 15:02:12 -04:00
Zach Anderson a7d1d99389 Revert "Remove definitions from Kernel canonical names."
This reverts commit ed77783cd3.

BUG=
R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2782913003 .
2017-03-29 11:25:17 -07:00
Mike Fairhurst fd6c486760 add angular analyzer to DEPS for distribution in google builds
BUG=
R=whesse@google.com

Review-Url: https://codereview.chromium.org/2601863002 .
2017-03-29 11:01:53 -07:00
John McCutchan 66aca8a36e Fix many warnings/errors when building Observatory
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2783933002 .
2017-03-29 10:31:40 -07:00
Ryan Macnak 9575657668 AOT compiler changes for dart_content_handler:
- Move some misplaced entry points from the vm list to the standalone embedder list.
 - Add missing libdart_with_precompiler to GN.
 - Add ability to reference the root library in treeshaking roots without knowing its URI (as ::).

R=zra@google.com

Review-Url: https://codereview.chromium.org/2786483002 .
2017-03-29 10:12:05 -07:00
Konstantin Shcheglov 1944172f47 Issue 29188. Failing test.
R=brianwilkerson@google.com
BUG= https://github.com/dart-lang/sdk/issues/29188

Review-Url: https://codereview.chromium.org/2785613002 .
2017-03-29 09:51:28 -07:00
Konstantin Shcheglov 13f6976ddb Fix for top-level inference error in SourceLoader.
R=ahe@google.com
BUG=

Review-Url: https://codereview.chromium.org/2776353005 .
2017-03-29 09:33:14 -07:00
Konstantin Shcheglov 16e7ab8d17 Don't disable downward inference inside initializers used for top-level inference.
So, I'm removing this flag that didn't allow us to perform invocation
type inference and caused bogus STRONG_MODE_INVALID_CAST_NEW_EXPR errors.

This causes us to perform inference where we don't need it, and report
(only informational?) info:INFERRED_TYPE_ALLOCATION for these invocations.
At the same point, we report errors for these cases, which should be
fixed anyway, and then downward inference will not be performed anymore.

R=brianwilkerson@google.com, leafp@google.com
BUG=

Review-Url: https://codereview.chromium.org/2779003004 .
2017-03-29 09:23:57 -07:00
John McCutchan 0e9b4123db Mark awaiter_async_stack_contents_test as failing on kernel bots
BUG=

Review-Url: https://codereview.chromium.org/2787523002 .
2017-03-29 08:47:14 -07:00
Vijay Menon 7a809bcc02 Add requirejs to repo for DDC
Fixes #29140

R=jakemac@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/2782213002 .
2017-03-29 08:05:40 -07:00
John McCutchan 2815f3f775 Implement debugger support for async step-out
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2777093006 .
2017-03-29 07:44:18 -07:00
John McCutchan 8cee5258ee Fix crash when determining whether an async exception is handled
BUG=

Review-Url: https://codereview.chromium.org/2780163002 .
2017-03-29 07:30:29 -07:00
William Hesse 796c9c9002 Update dartium status for abstract_beats_arguments2_test
BUG=https://github.com/dart-lang/sdk/issues/29171
R=ahe@google.com

Review-Url: https://codereview.chromium.org/2786453003 .
2017-03-29 16:13:16 +02:00
Devon Carew 394a106074 Remove unused imports.
BUG=
R=danrubel@google.com, scheglov@google.com

Review-Url: https://codereview.chromium.org/2786553002 .
2017-03-29 07:10:44 -07:00
Kevin Millikin ed77783cd3 Remove definitions from Kernel canonical names.
Before: Canonical names contained pointers to the corresponding Kernel
tree which assumed that the whole tree was in memory whenever the
canonical names were.

Now: Canonical names do not contain these pointers.  They were only
really used to perform name-based lookup in the VM's heap so the
canonical name itself is enough.

If we later find that we need to get from a canonical name to its
Kernel tree we can add an offset in the binary (for instance) to the
canonical name or in a separate mapping on the side.

BUG=
R=asgerf@google.com, vegorov@google.com

Review-Url: https://codereview.chromium.org/2781893004 .
2017-03-29 16:03:03 +02:00
John McCutchan d8555fb5a8 Include the awaiter stack trace in the service protocol
- [x] Include the (non-empty) awaiter stack trace in every `getStack` RPC.
- [x] Append the causal stack trace to the final frame of the awaiter stack trace.
- [x] Unit test for awaiter stack trace.

BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2782703002 .
2017-03-29 06:56:50 -07:00
Kevin Millikin 4de94b2d7b Await cancellation in the Kernel await transformer
When an an async for loop's StreamIterator is canceled the returned
Future should be awaited.  Closes issue 29192.

BUG=https://github.com/dart-lang/sdk/issues/29192
R=ahe@google.com

Review-Url: https://codereview.chromium.org/2782053003 .
2017-03-29 15:20:23 +02:00
Vyacheslav Egorov 536c610fd2 Update status files for all test suites for -c dartk / -c dartkp configuration.
We are going to switch to testing all testsuites instead of just limiting ourselves to

co19 language kernel service

BUG=
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2780943004 .
2017-03-29 13:18:57 +02:00
Peter von der Ahé 695ebae97a Complain about bad operator parameters.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2782843002 .
2017-03-29 13:12:41 +02:00
Peter von der Ahé a994d0e47e Update status file after switching to multi test.
Review-Url: https://codereview.chromium.org/2782853002 .
2017-03-29 12:43:41 +02:00