Commit graph

48995 commits

Author SHA1 Message Date
Konstantin Shcheglov
4ef7fd14c1 Record Typedef reference into Kernel FunctionType and resynthesyze typedefs in Analyzer.
R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/2986393002 .
2017-08-04 12:02:26 -07:00
Konstantin Shcheglov
41bcfaa4a4 Add createDirectory() to MemoryFileSystemEntity.
We need this API to create a mock SDK in a way that makes
ProcessedOptions.validateOptions() to accept it - the SDK root
must exist.

Alternatively (or in addition to) we could make writeXYZ create parent
directories implicitly. So, to "create" a directory, you would need
to create a file in this directory.

R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/2994643002 .
2017-08-04 11:46:02 -07:00
Bob Nystrom
9a0c11c26b Split language_2.status into multiple files.
This mainly splits along compiler lines, but uses runtime for a couple
of things -- VM and Flutter mainly.

I did most of the work automatically by hacking up the migration script
to re-migrate the existing file, but I also went through and manually
cleaned the result up as best I could.

R=bkonyi@google.com, jcollins@google.com

Review-Url: https://codereview.chromium.org/2993043002 .
2017-08-04 11:33:01 -07:00
Ben Konyi
b1bca14dab Migrated test block 13 to Dart 2.0.
Removed list_index_of2_test as it shouldn't be valid in Dart 2.0.

BUG=
R=jcollins@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2994543002 .
2017-08-04 11:21:22 -07:00
Kevin Moore
d53e53c568 Fix path to pkg/path – .packages resolution works to the root of repo 2017-08-04 11:14:23 -07:00
Diogenes Nunez
0b0f07d303 Reverted due to vm test failure.
Revert "Makes new space iterable by filling up the mutator's TLAB"

This reverts commit 8b6fcf50e8.

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2998453002 .
2017-08-04 10:56:36 -07:00
Ryan Macnak
544713bced Fix flake in code_collection_test.
foo's code may be detached twice if the machine is slow/loaded and GC happens during shutdown.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2993683002 .
2017-08-04 10:52:05 -07:00
Bob Nystrom
526245b565 Run DDC tests on Chrome on the bots.
Taking over this patch since Bill is out: https://codereview.chromium.org/2991343004/

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2992333002 .
2017-08-04 10:45:39 -07:00
Diogenes Nunez
8b6fcf50e8 Makes new space iterable by filling up the mutator's TLAB
This reverts commit bb6203dade and
adds changes FlushTLS.

Now, FlushTLS will fill the mutator thread's TLAB instead of
changing top_ in the Scavenger. This should prevent the assertion

(thread->end() == 0) || (thread->end() == top_)

in TryAllocateInTLAB in runtime/vm/scavenger.h due to a race on top_.

R=asiva@google.com, rmacnak@google.com, zra@google.com

Review-Url: https://codereview.chromium.org/2991343003 .
2017-08-04 10:36:45 -07:00
Florian Loitsch
d94cecba3c Newsletter 2017-08-04.
Review-Url: https://codereview.chromium.org/2995543002 .
2017-08-04 19:06:10 +02:00
Sigmund Cherem
edc1054ae1 Normalize status files for dart2js_with_kernel
This is only moving status lines around to ensure we only have 2 sections for
$dart2js_with_kernel per file: minified and host-checked.  Some entries are now
duplicated because we no longer have the $dart2js_with_kernel (non-checked)
section.

R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2993083002 .
2017-08-04 09:41:08 -07:00
Zachary Anderson
c4b821cc81 [vm] Higher vm snapshot symbol table load factor
This saves a bit less than 100KB in memory footprint in hello world
on Fuchsia's content handler:  3640KB -> 3552KB

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2989283002 .
2017-08-04 09:22:40 -07:00
Brian Wilkerson
2041871f34 Add missed files from previous CL
R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2990273002 .
2017-08-04 09:20:15 -07:00
Brian Wilkerson
07e45530d7 Fix hints by removing deprecation from used methods
R=pquitslund@google.com

Review-Url: https://codereview.chromium.org/2997463002 .
2017-08-04 08:51:59 -07:00
Brian Wilkerson
defb2990d2 Add a test to ensure that error codes are not being missed and add missed error codes
R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2992243002 .
2017-08-04 07:45:46 -07:00
Florian Loitsch
83fcb7aa94 Small improvements to bot summary.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2996503002 .
2017-08-04 15:13:07 +02:00
Johnni Winther
5fe6282ec0 Reformat untouched files.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2990223002 .
2017-08-04 14:52:58 +02:00
Florian Loitsch
aaf67e5050 Fix bot summary when URIs couldn't be read.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2999433002 .
2017-08-04 14:46:57 +02:00
Florian Loitsch
33f1fc8059 Update status files for double_round tests.
Review-Url: https://codereview.chromium.org/2999443002 .
2017-08-04 12:08:31 +02:00
Florian Loitsch
58499516b6 Fix dill_loader_test that relied on list_literal_test.
Review-Url: https://codereview.chromium.org/2994593003 .
2017-08-04 11:59:30 +02:00
Johnni Winther
93d0a55534 Split ast based parts from InferrerEngineImpl
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2991313002 .
2017-08-04 09:57:33 +02:00
Emily Fortuna
1df5b00122 More status file adjustments. Why does this not reproduce on my machine?!?!?
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2995503002 .
2017-08-03 21:10:40 -07:00
Paul Berry
1b03375d62 Implement type inference for super initializers.
R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2992263002 .
2017-08-03 19:39:13 -07:00
Emily Fortuna
4929f282b3 Make minification Entity-friendly.
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2996463002 .
2017-08-03 19:19:21 -07:00
Jennifer Messerly
89d94fd543 fix ddc status for cross_domain_iframe_test
Review-Url: https://codereview.chromium.org/2986413002 .
2017-08-03 17:38:24 -07:00
Carlo Bernaschina
82e9557aa7 Avoid graph extending outside the drawing area.
In the memory-dashboard page of Observatory the graph is drawn in the
wrong way if the communication with the device is slow.

Related https://github.com/google/charted/issues/219

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2993003002 .
2017-08-03 17:05:02 -07:00
Vijay Menon
4ead726a8c Check for cross-frame violation
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2991353003 .
2017-08-03 16:53:40 -07:00
Jennifer Messerly
d28725fe99 fix ddc bot status
Review-Url: https://codereview.chromium.org/2991403003 .
2017-08-03 16:52:57 -07:00
Stephen Adams
9442c1cf44 Revert "Work-around for missing mixin-application charOffset"
This reverts commit 2007487cf0.

Needs status file changes.

TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2992993002 .
2017-08-03 16:43:35 -07:00
Carlo Bernaschina
c6a71098b6 Add memory-dashboard page to Observatory
A new hidden page in observatory that will be used from external IDEs.
This initial version focuses on the evolution of the memory usage in time
and per isolate allocation profile.

Related https://github.com/dart-lang/sdk/issues/30023
Related https://codereview.chromium.org/2990913002/

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2989083002 .
2017-08-03 15:52:23 -07:00
Ben Konyi
64465ad4c7 Fixing failures caused by migration of test block 14. Context: https://build.chromium.org/p/client.dart/builders/vm-kernel-linux-release-x64-be/builds/3619/steps/vm%20tests/logs/stdio
TBR=jcollins@google.com,rnystrom@google.com
BUG=

Review-Url: https://codereview.chromium.org/2993663002 .
2017-08-03 14:48:35 -07:00
Stephen Adams
2007487cf0 Work-around for missing mixin-application charOffset
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2994553002 .
2017-08-03 14:47:31 -07:00
Jennifer Messerly
62303b6711 enable batch mode for dartdevc tests, also fix status so ddc bots pass
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987393002 .
2017-08-03 14:39:45 -07:00
Paul Berry
867d682ff5 Test type inference for field initializers using "this." syntax.
R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2986403002 .
2017-08-03 14:32:06 -07:00
Paul Berry
57d71479e1 Perform type inference on constructor field initializer expressions.
Fixes #30251

R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2994533002 .
2017-08-03 13:54:36 -07:00
Ben Konyi
d7891cf587 Migrated test block 14 to Dart 2.0.
BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2991363002 .
2017-08-03 13:46:54 -07:00
Bob Nystrom
b9795ffabb A minimal status file formatter and canonicalizer.
For the migration script, I need a (less hacky) way of programmatically
modifying a status file. As a step along that path, I need the ability
to write a status file to disc given a StatusFile object.

With that, it was a small step to write a little "formatter" that turns
a status file into its canonical representation.

It removes unneeded parentheses in expressions, normalizes expectation
case, and normalizes whitespace. Seems useful.

R=whesse@google.com

Review-Url: https://codereview.chromium.org/2988383002 .
2017-08-03 13:37:30 -07:00
Janice Collins
556fa63c2b double_round_to_double2 doesn't work on dart2js-safari.
Fixes more bot breakage for block 7.

BUG=
R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2991373002 .
2017-08-03 13:02:14 -07:00
Emily Fortuna
b74f53aa74 Revert "Updated test status after fixing closure call generation."
This reverts commit 6839f6f79f.

BUG=

Review-Url: https://codereview.chromium.org/2986383003 .
2017-08-03 12:06:01 -07:00
Janice Collins
481ce5813c Add more targets to run_tests based on experience in blocks 7 and 8
BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2988423002 .
2017-08-03 11:39:47 -07:00
Alexander Markov
49819ea5cd Filter tests for limited ints in DDC mode
These tests requires custom DartVM option --limit-ints-to-64-bits
and they can't be run through dart2js or dartdevc, so they are
filtered in .status file.

R=bkonyi@google.com

Review-Url: https://codereview.chromium.org/2994523002 .
2017-08-03 11:22:35 -07:00
Janice Collins
c2c93a0053 dynamic_nosuchmethod_test uses mirrors, disable when using fast_startup
or precompiler.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2991313003 .
2017-08-03 11:14:55 -07:00
Ben Konyi
ce197702e4 Migrated test block 15 to Dart 2.0.
list_unmodifiable_test required some modifications so callbacks matched
the correct types. list_unmodifiable_test and list_test also needed to
be disabled on dartdevc due to some issue with List<int> not mapping to
JSArray.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2992833002 .
2017-08-03 11:12:26 -07:00
pq
1c5101e4a6 Deprecate unintended APIs.
R=brianwilkerson@google.com

See: https://github.com/dart-lang/linter/issues/769
Review-Url: https://codereview.chromium.org/2989363002 .
2017-08-03 10:53:43 -07:00
Emily Fortuna
6839f6f79f Updated test status after fixing closure call generation.
BUG=
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2993603002 .
2017-08-03 10:45:17 -07:00
Konstantin Shcheglov
60a576108c Store parts in Kernel Library, resynthesize parts in Analyzer.
R=ahe@google.com, brianwilkerson@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/2988373002 .
2017-08-03 10:36:29 -07:00
Janice Collins
8210a8cd3d Fix bots from block 8 changes
BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2995453002 .
2017-08-03 10:10:03 -07:00
Janice Collins
28a856828b Migrate test block 7 to Dart 2.0.
duration2_test.dart converted to a static-only test and skipped where appropriate for non-strong.  error_stack_trace_test converted to a multitest and error_stack_trace1_test modified to use more modern catch convention for stack traces.

R=bkonyi@google.com, rnystrom@google.com

Review-Url: https://codereview.chromium.org/2987793002 .
2017-08-03 08:55:30 -07:00
Janice Collins
328c30324c Migrate test block 8 to Dart 2.0.
This was a hairy test block, please review carefully.  Special circumstances:
file_resource_test.dart: deleted, depends on Resource class which was moved outside the SDK
from_environment_const_type_undefined_test.dart, from_environment_const_type_test: change to expect compile-time errors for all error cases.
Hacked up status files to enable non-strong/checked/non-checked modes to work in all cases.
format_exception_test.dart: corelib is newer, has updated tests
growable_list_test.dart: corelib is newer, with updated comments.  Stripped runtime checking of checked mode.  Also, this doesn't work, but should, with dartdevc, so added to exclusion list
hash_map2_test.dart: corelib_strong version seems to be newer, has VM option comments

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2989643002 .
2017-08-03 08:37:46 -07:00
Samir Jindel
e80b42a235 Fix parsing of ClosureCreation kernel nodes in VM.
Summary:

Previously, the VM would crash when it encountered a ClosureCreation node
because it was not aware of the new type arguments field.

Now, it skips the type arguemnts field, which allows many tests to pass again,
even though it doesn't correct forward the type arguments at runtime.

Test Plan:

Removed expected failure lines for all the tests added in my prior
CL (introducing the new field).

BUG=
R=dmitryas@google.com, jensj@google.com

Reviewers: dmitryas@google.com
Review-Url: https://codereview.chromium.org/2987143002 .
2017-08-03 16:42:57 +02:00