Commit graph

52078 commits

Author SHA1 Message Date
Erik Ernst f68e5231b4 Renewed tests from built_in_identifier_prefix
The test language_2/built_in_identifier_prefix_test stated 'it is not
illegal to use a built-in identifier as a library prefix', which has
been untrue for quite a while, and then proceeded to check a number of
cases where said situation was used in practice. All of that is now
obsolete, so that test was split into several tests, each of which was
adjusted to test something which is relevant today.

The new tests include checks for the use of "known" identifiers (such
as `of`, `show`, `on` and a few more) which are mentioned explicitly
in the grammar, but which are neither built-in identifiers nor
reserved words.

The new tests gave rise to a number of status entries, including 25
crashes (so it is not just "expect `MissingCompileTimeError` here
because it's not strong mode").

Note that `Function` is considered to be a built-in identifier.
This makes no difference for the grammar, but it means that there
are no cases where `Function` is used as a library prefix.

If we insist that `Function` cannot be a built-in identifier then
we just need to add a few more grammar rules to all such things as
`import .. as Function;`, but I considered it less confusing to
include `Function` among the built-in identifiers and avoid adding
support for this.

Note that we haven't said anywhere that `Function` is a built-in
identifier, so we would need to adjust an informal/*.md file to say
that, to finish this off.

Change-Id: Ifa5bbd95022498480b7ee2e94605f81cd11d9696
Reviewed-on: https://dart-review.googlesource.com/21080
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2017-11-16 12:34:14 +00:00
Kevin Millikin d66ee882d3 Be consistent about run time and compile time
The spec was not self-consistent with respect to the usage of various forms
of 'run time' and 'compile time', even when using them as formally defined
terms (e.g., compile-time error).

Consistently follow the conventions: that 'run-time' and 'compile-time' are
adjectives and not nouns; that 'run time' and 'compile time' are noun
phrases containing an adjective and not adjectives themselves; and that
'runtime' and 'compiletime' are nonsense or at least jargon and are avoided.

Fixes https://github.com/dart-lang/sdk/issues/25883

Bug:
Change-Id: I0a9eb524bb43ed6c3a74e6ef038184bcbe979966
Reviewed-on: https://dart-review.googlesource.com/21345
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2017-11-16 12:01:42 +00:00
Vyacheslav Egorov e834248640 [gardening] Restore status lines removed by accident
Bug:
Change-Id: I230a003c5300e5f4e7f5586e0582ec5c16fc6268
Reviewed-on: https://dart-review.googlesource.com/21348
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2017-11-16 11:51:21 +00:00
Martin Kustermann d354a28cb2 [kernel] Add kernel2kernel constant evaluation, binary format as well as vm support
The introduced "constants" transformation can evaluate constant expressions.  The
original use-sites of constant expressions are replaced by a new [ConstantExpression]
node, which points to a subclass of a new [Constant] class hierarchy.  Constant
[Field]s and [VariableDeclarations]s will be removed, since all use-sites are
re-written.

The [Constant] class hierarchy is, similarly to the [DartType] class hierarchy, not
part of the AST tree (also has no parent pointer).  The constants form a
DAG (directed acyclic graph).

There is no canonicalization requirement of the [Constant] objects referenced by the
AST (via [ConstantExpression]).  Although it is beneficial to canonicalize them during
construction, since it reduces time spent in operator==/hashCode.

This CL furthermore adds support for a constant table in the binary format.  Similarly
to [String]s, we canonicalize the constants before writing the table to the binary.
The constant table entries in the binary are written in a post-order way, to ensure
easy construction on the backend side.

The text format will be augmented with a "constants { ... }" section at the end,
which lists the constants in the same order as in the binary format.

The transformation can be used by those backends who choose to do so.  It is not
enabled by default atm.  It should therefore not affect analyzer, fasta or other
components.

Change-Id: I57cd9624fedcf537ab6870db76246149647bed21
Reviewed-on: https://dart-review.googlesource.com/14382
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2017-11-16 11:08:02 +00:00
Kevin Millikin 02511ceeb4 Fix the precedence of FunctionExpression
FunctionExpression should have a low precedence to ensure that it is
properly parenthesized.

Fixes https://github.com/dart-lang/sdk/issues/31380

Bug:
Change-Id: I2ca2bb728973c5b374411dc07fdadc4dda8c707b
Reviewed-on: https://dart-review.googlesource.com/21343
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2017-11-16 10:38:12 +00:00
Aske Simon Christensen 851ff574a3 Avoid crash for type argument on type variable.
Closes https://github.com/dart-lang/sdk/issues/31190

Change-Id: Ifb2d721d5816a3656df47bfe2a5328594b8d0e83
Reviewed-on: https://dart-review.googlesource.com/21121
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2017-11-16 10:20:02 +00:00
Kevin Millikin 680ac3c500 Fix compilation of break and continue in loops
Kernel represents break and continue in Dart uniformly as break.  When
compiling to JavaScript we would like to use continue where possible and
avoid labeling statements that do not need to be labeled.

The basic idea is: at compile time maintain a list of Kernel targets
(LabeledStatements) that can be compiled to JS break without a label at a
given point in the program, and a list of Kernel targets that can be
compiled to JS continue without a label, and a map from Kernel targets to
the 'effective' target that will be labeled if necessary when compiled to
JS, and a mapping from effective targets to their label names if they must
be labeled.

Change-Id: Ie660cf3dd68399ebff128116fe38c250cb6b7f35
Reviewed-on: https://dart-review.googlesource.com/21120
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2017-11-16 10:17:42 +00:00
Aske Simon Christensen 43bc36ac72 Recover from multiple errors in for initializer.
Closes https://github.com/dart-lang/sdk/issues/31184

Change-Id: Ie453ed0b1aff88bd9799949f97e9d2fc0077e8c0
Reviewed-on: https://dart-review.googlesource.com/21141
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2017-11-16 10:03:23 +00:00
Johnni Winther 253eaef945 Add source information for invocations and operators in the kernel ssa builder.
Change-Id: If9e77c773e5ca722f100e92f6ff4e417efda9d5e
Reviewed-on: https://dart-review.googlesource.com/20700
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-16 09:46:29 +00:00
Sigmund Cherem 31bb7fa2d9 More fixes in corelib status
TBR=whesse@google.com

Change-Id: Id6da0577b45132d4aa426650a187dfeb0f25c955
Reviewed-on: https://dart-review.googlesource.com/21384
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-16 05:36:40 +00:00
Stephen Adams 3836c70a81 Redo "js_runtime: Use browser's TextDecoder for UTF8 decoding"
Bug:
Change-Id: I40903bcdc1502e15cbf84298b43ba04ae8a8ecaf
Reviewed-on: https://dart-review.googlesource.com/21383
Reviewed-by: Stephen Adams <sra@google.com>
2017-11-16 04:59:26 +00:00
Stephen Adams 5e06165d6b Revert "js_runtime: Use browser's TextDecoder for UTF8 decoding"
This reverts commit 5f15867a47.

The recent renaming of constants had caused a lot of pain with this CL.

TBR=lrn@google.com

Bug:
Change-Id: I67a78fa09e15e95ea44fe18d9847fcfd9c61e043
Reviewed-on: https://dart-review.googlesource.com/21382
Reviewed-by: Stephen Adams <sra@google.com>
2017-11-16 04:52:40 +00:00
Sigmund Cherem eb1d20adf6 Fix an additional corelib_2 & dartkp status line.
TBR=whesse@google.com

Change-Id: I4e627b881c93f37e464390fee386d93cb73dc55d
Reviewed-on: https://dart-review.googlesource.com/21381
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-16 04:35:58 +00:00
Sigmund Cherem 869c558985 Fix a few more corelib_2 && strong status lines
The try bots didn't catch these.

TBR=whesse@google.com

Change-Id: Ife87fe0b582d4b1ce94e8f4b44c447365e19ff5b
Reviewed-on: https://dart-review.googlesource.com/21380
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-16 04:24:36 +00:00
Stephen Adams 5f15867a47 js_runtime: Use browser's TextDecoder for UTF8 decoding
Change-Id: I85a8e774595784883281b1cc40ee75ae8de7d1d9
Reviewed-on: https://dart-review.googlesource.com/3303
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2017-11-16 04:22:22 +00:00
Sigmund Cherem 2a199ae689 Add flags to configure incremental_perf
This lets us benchmark separately:
- IKG implementations (the default based on kernel-driver or the minimal implementation)
- strong and non-strong mode

This also adds commands to try_benchmarks that highlight how these options will be used.

Change-Id: I5ce2c4563b7e79c33d78df7fd87be76f5d47e3f4
Reviewed-on: https://dart-review.googlesource.com/21320
Reviewed-by: Jonas Termansen <sortie@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-11-16 03:42:23 +00:00
Dan Rubel a25b0a8d07 Revert "Add fasta parser invalid method name recovery"
This reverts commit d2579b6d3c.

Revert until I can figure out why co19/Language/Expressions/Identifier_Reference/syntax_t06 is failing.

Original change's description:
> Add fasta parser invalid method name recovery
> 
> Fix https://github.com/dart-lang/sdk/issues/31183
> 
> Change-Id: I1c3d0f5f665e8b1ab02901b470da0bf70871e5e1
> Reviewed-on: https://dart-review.googlesource.com/21261
> Commit-Queue: Dan Rubel <danrubel@google.com>
> Reviewed-by: Paul Berry <paulberry@google.com>

TBR=paulberry@google.com,danrubel@google.com

Change-Id: Ia1c1cc26b819f309bb6c2b603318904d0b786b56
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/21360
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2017-11-16 03:15:22 +00:00
Sigmund Cherem 26d351eb90 Normalize corelib2 status for dartk.
- skip in non-strong mode
- merge and simplify sections

Change-Id: I2c9c00093891881f7d4fa898263e9e2dfdf2245e
Reviewed-on: https://dart-review.googlesource.com/21284
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-11-16 01:21:20 +00:00
Ryan Macnak 4f612b749a [vm] Only support instruction tracing for DBC in debug mode.
Flutter uses DBC in release mode.

dart-simdbc-checked linux-armv7hf
ParticleSystemUpdate (Odroid-C2) -32.73% (-0.8 noise)
Tracer (Odroid-C2)                17.72% (0.0 noise)
StarryStrings (Odroid-C2)         45.95% (0.1 noise)
Richards (Odroid-C2)              49.89% (0.1 noise)
DeltaBlueClosures (Odroid-C2)     54.56% (0.1 noise)
DeltaBlue (Odroid-C2)             54.27% (3.7 noise)
ParticleSystemPaint (Odroid-C2)   56.29% (4.8 noise)

Change-Id: I42f9697c7a66f2d8bfb665c32aed90e833d48a75
Reviewed-on: https://dart-review.googlesource.com/21283
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2017-11-15 23:42:01 +00:00
Dan Rubel d2579b6d3c Add fasta parser invalid method name recovery
Fix https://github.com/dart-lang/sdk/issues/31183

Change-Id: I1c3d0f5f665e8b1ab02901b470da0bf70871e5e1
Reviewed-on: https://dart-review.googlesource.com/21261
Commit-Queue: Dan Rubel <danrubel@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2017-11-15 23:15:51 +00:00
Konstantin Shcheglov 0b80b0e028 Add MinimalIncrementalKernelGenerator with in-memory only caching and simplified dependency tracking.
R=paulberry@google.com, sigmund@google.com

Bug:
Change-Id: I828ff64afcdb735dc06cb4b200a97b51bc651e8f
Reviewed-on: https://dart-review.googlesource.com/20323
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-15 23:06:22 +00:00
Ben Konyi 064d49c9a8 [Gardening] Marking issue23244_test and isolate/compile_time_error_test/none as Crash for app_jit. See issue #31376.
Bug:
Change-Id: I95997e5cb53112c5e78c2199c7c95db3bf7766ee
Reviewed-on: https://dart-review.googlesource.com/21285
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-11-15 22:56:38 +00:00
Paul Berry 5c2fe36b2a Add language_2 tests to verify behavior of covariance flags.
These tests verify that the implementation respects the following flags:
- Field.isCovariant
- Field.isGenericCovariantImpl
- Field.isGenericCovariantInterface
- VariableDeclaration.isCovariant
- VariableDeclaration.isGenericCovariantImpl
- VariableDeclaration.isGenericCovariantInterface
- TypeParameter.isGenericCovariantImpl
- TypeParameter.isGenericCovariantInterface

Forwarding stubs are not yet tested.

Change-Id: I4bcb83e47cdcc3f1250bdc8cfc2994c51ad8334e
Reviewed-on: https://dart-review.googlesource.com/21280
Reviewed-by: Samir Jindel <sjindel@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-11-15 22:44:43 +00:00
Morten Krogh-Jespersen 8618c947ec Add dart2js-csp-minified to the test matrix.
Bug:
Change-Id: I877f67ea4ef9023cc1d4d767dab15c544db46b05
Reviewed-on: https://dart-review.googlesource.com/21241
Reviewed-by: Alexander Thomas <athom@google.com>
2017-11-15 22:40:12 +00:00
Morten Krogh-Jespersen 88aef0a65d Add --strong to vm-precomp builders to the test matrix.
This CL adds --strong arguments to precomp builders, based on the input in
https://dart-review.googlesource.com/c/sdk/+/20860
Bug:
Change-Id: I18f64c4a82a0cf4f5f37f19d794705b3ae69f651
Reviewed-on: https://dart-review.googlesource.com/21300
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-11-15 22:37:20 +00:00
Morten Krogh-Jespersen fe112c5357 Add jsshell to dart2js test matrix configuration.
Bug:
Change-Id: Ic488034a9f7364036690f01881bb90f43828a7a6
Reviewed-on: https://dart-review.googlesource.com/21240
Reviewed-by: Alexander Thomas <athom@google.com>
2017-11-15 22:36:50 +00:00
Emily Fortuna bf94e73568 Fix up type inference to run in checked mode and enable checked mode tests running with kernel script.
Bug:
Change-Id: If720b6868fbdf010f4aac614ceea1ddea533c277
Reviewed-on: https://dart-review.googlesource.com/21222
Commit-Queue: Emily Fortuna <efortuna@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2017-11-15 22:34:51 +00:00
Morten Krogh-Jespersen 6cdd14f8da Add d8-minified to the test matrix.
Bug:
Change-Id: I2709cae4ed9eefe4297de5a60ebcc0955637e024
Reviewed-on: https://dart-review.googlesource.com/21242
Reviewed-by: Alexander Thomas <athom@google.com>
2017-11-15 22:34:06 +00:00
Sigmund Cherem 02aa8c269a Mark language_2 && !$strong as skip by design, do some initial normalization:
- specify $strong in _kernel.status
- move status entries to the file they belong to (dartk/dartkp in
  _kernel.status, none & app_jit in vm.status, dart_precompiled in
  _precompiled.status)

Later: merge sections together (many expressions are equivalent or have
conditions that might not be relevant, like $strong && $checked).
Change-Id: Ia16817c2145f002ca210a218759c36c53bbe9ba9
Reviewed-on: https://dart-review.googlesource.com/21220
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-11-15 22:17:51 +00:00
Ryan Macnak 204f7f6ffa [vm] Visit DBC interpreter's pp and argdesc slot.
Enables compaction with DBC.

dart-simdbc-checked linux-armvhf (closest to Flutter's usage):
ParticleSystemPaint (Odroid-C2)  -3.454% (-0.3 noise)
ParticleSystemUpdate (Odroid-C2) -9.009% (-0.2 noise)
DeltaBlue (Odroid-C2)            -1.655% (-0.1 noise)
DeltaBlueClosures (Odroid-C2)    -2.415% (-0.0 noise)
StarryStrings (Odroid-C2)        -2.445% (-0.0 noise)
Richards (Odroid-C2)            -0.9325% (-0.0 noise)
Tracer (Odroid-C2)              -0.6846% (-0.0 noise)

Bug: https://github.com/dart-lang/sdk/issues/30978
Change-Id: Iff7dfad25db0a1e12fd02157c7c4f970ea88779d
Reviewed-on: https://dart-review.googlesource.com/16689
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2017-11-15 22:07:14 +00:00
Dan Rubel 197707d999 update status files
Change-Id: If13b867986c917da979a30cae2990de455afb200
Reviewed-on: https://dart-review.googlesource.com/21281
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-11-15 20:53:39 +00:00
Paul Berry ff898fded5 Strong mode fix for socket_patch.dart.
Change-Id: Icf5bcc7ba370ad9880c1565faf3ace046e47abe0
Reviewed-on: https://dart-review.googlesource.com/21262
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-11-15 20:45:31 +00:00
Sigmund Cherem 3fa203ba1f Update try_benchmarks.sh to let fasta find the VM patch files
Change-Id: I200b8fd266e866f05e4353a383f89c235c29c80a
Reviewed-on: https://dart-review.googlesource.com/21002
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-11-15 20:23:23 +00:00
Dan Rubel ee9187027f update status file
Change-Id: If955b98f52f36ad12b14b97155cef71f898f4d5c
Reviewed-on: https://dart-review.googlesource.com/21200
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-11-15 18:41:10 +00:00
Sigmund Cherem a49e945ac7 Ensure exit-code is non-zero when perf scripts encounter errors
Change-Id: I5f6e8e29e7e40547da7dfaf05b9b38e6d37dbbba
Reviewed-on: https://dart-review.googlesource.com/21001
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2017-11-15 18:12:04 +00:00
Alexander Markov c1212311bf [VM] Fix OOM handling when allocating buffers in dart:io
Reland 1d6c1020c9 with the fix for ASAN
bots.

* Test standalone_2/file_error_test is updated for Dart 2.0 fixed-size
  integers.

* This update revealed that certain dart:io native methods do not handle
  out-of-memory properly when I/O buffers are allocated.
  This CL fixes this bug.

* Updated test point is extracted to a separate test
  standalone_2/file_error2_test as it needs custom ASAN options.

Change-Id: Ifb1fa59828f36dc03d45c18a41d45da6b989d70a
Reviewed-on: https://dart-review.googlesource.com/20908
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2017-11-15 18:06:31 +00:00
Régis Crelier cfdcd4d496 [kernel] update status file with newly filed issue.
Change-Id: I169f1f579c85aa439c1e6cd9330e6901f6544530
Reviewed-on: https://dart-review.googlesource.com/21181
Reviewed-by: Régis Crelier <regis@google.com>
2017-11-15 17:39:57 +00:00
Dan Rubel 8e1e24b642 Add fasta parser binary expression recovery
Change-Id: I6345bd29fa00d0f4a2a6474f1d26e7c60661cef0
Reviewed-on: https://dart-review.googlesource.com/21100
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2017-11-15 15:54:02 +00:00
Dan Rubel b5df8d7b0f Add fasta parser recovery for invalid operator name
Change-Id: I10e7f2668f654f7be482b3ce1521d1872d6a6b34
Reviewed-on: https://dart-review.googlesource.com/20826
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2017-11-15 15:49:22 +00:00
Aske Simon Christensen 2a04caa7da Handle string interpolation in URIs
Closes https://github.com/dart-lang/sdk/issues/30994

Change-Id: I3be126244a8d089d87caee0cdf233a294486642e
Reviewed-on: https://dart-review.googlesource.com/20460
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-11-15 15:22:11 +00:00
Paul Berry 09dc39d270 Strong mode fix for typed_data_test.dart.
Adding an explicit type to the local function `test` makes the call
`test([])` get type inferred as `test(<int>[])`.  This ensures that it
is safe for `test` to pass the list to `Uint16List.setAll`.

Change-Id: Ib6c982db6c8210a76a69fc36c4eb400578f1b3ee
Reviewed-on: https://dart-review.googlesource.com/20940
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2017-11-15 14:31:51 +00:00
Vyacheslav Egorov 1aa81ee849 [vm] Fix small issues in pkg/vm/tool scripts.
* consistently quote $BIN_DIR;
* remove convoluted logic that tries to guess DART_CONFIGURATION;
* fix issue with how $PACKAGES were passed to fasta in precompiler2.

Bug:
Change-Id: I3073330fe3397100406d9ad6dcab2a86f9e1825f
Reviewed-on: https://dart-review.googlesource.com/21082
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2017-11-15 14:29:41 +00:00
Vyacheslav Egorov c847cbd5e4 [VM, Kernel] Use T as a Completer type argument in async transformation.
Previously we used FutureOr<T> by mistake.

This causes the code construct a much more meaningful type Future<T> not

Fixes https://github.com/dart-lang/sdk/issues/31324

Bug:
Change-Id: I38d4e4101b81bb33d53a87385ebcf60302f6764f
Reviewed-on: https://dart-review.googlesource.com/21081
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2017-11-15 14:05:32 +00:00
Johnni Winther 5cdda979db Add inference/swarm_test
+ use `Platform.resolvedExecutable` to find patched_dart2js_sdk files

Change-Id: I510e2c792598fadef0d2323064f557dc5d9b0b51
Reviewed-on: https://dart-review.googlesource.com/20441
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2017-11-15 12:27:11 +00:00
Lasse R.H. Nielsen b93820ec94 Mark two app_jit/vm tests as failing.
See issue #31376.

Change-Id: I6615847f9ac48abe46d00272784c008d1f63cb98
Reviewed-on: https://dart-review.googlesource.com/21040
Reviewed-by: Erik Corry <erikcorry@google.com>
2017-11-15 11:03:35 +00:00
Karl Klose ccde2ffcc2 Handle Kernel specific mixin name encoding
Change-Id: Ibcd4a5f54aaf621052331887d872866579e13dbc
Reviewed-on: https://dart-review.googlesource.com/19683
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2017-11-15 10:39:31 +00:00
Dmitry Stefantsov b73110886e Update status file: changes in front-end eliminated some crashes
Bug:
Change-Id: Ibdcd1eb9aeefdf528633117e046ed034a13df54e
Reviewed-on: https://dart-review.googlesource.com/21020
Reviewed-by: Karl Klose <karlklose@google.com>
2017-11-15 09:58:39 +00:00
Kevin Millikin 17430920f7 Fix nesting of try and finally blocks.
Kernel try and finally statements do not necessarily compile to JS
blocks, but the JS AST requires blocks for try and finally.  Ensure
that these statements are blocks.

Bug:
Change-Id: I7abe6ae55650dc726cc89d86d12757d21a783064
Reviewed-on: https://dart-review.googlesource.com/20721
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2017-11-15 09:46:51 +00:00
Kevin Millikin d95f73f018 Flatten nested block function bodies.
In many cases function bodies were a block containing a single nested
block.  Flatten these cases.

Change the test for whether a lexically-scoped local variable clashes
with a parameter to work on the generated code, not the source.

Change-Id: I74d37fe686e481e3300bb9d37b30857e8e375cb5
Reviewed-on: https://dart-review.googlesource.com/20661
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Kevin Millikin <kmillikin@google.com>
2017-11-15 08:58:51 +00:00
Devon Carew ee1404e91a Allow analysis server benchmarks to run with --preview-dart-2.
Bug:
Change-Id: Ifb9a5c596d3ad63012177cfb4e0bd7b107e78aff
Reviewed-on: https://dart-review.googlesource.com/20941
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2017-11-15 07:37:51 +00:00