Stephen Adams
230824610f
Split int_parse_radix_test into strong and non-strong parts.
...
R=vsm@google.com
Review URL: https://codereview.chromium.org/1950413002 .
2016-05-05 14:36:05 -07:00
Stephen Adams
8938f98fc1
Fix test to not reach out of current dir
...
This lets us use the same test for DDC
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1946973002 .
2016-05-03 21:38:24 -07:00
Florian Schneider
bef7b117d6
Fix a test expectation that current year is >= 2011.
...
This causes test failures on devices where the date is set to earlier
than 2011.
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org/1942263002 .
2016-05-03 14:28:21 +02:00
Florian Loitsch
b19e00c2d4
Fix Set.from which still had a generic type on the incoming Iterable.
...
Follow-up fix for http://dartbug.com/21731
Also see https://codereview.chromium.org/838463002/
R=lrn@google.com
Review URL: https://codereview.chromium.org/1887883006 .
2016-04-28 15:01:04 +02:00
Zachary Anderson
3d7202bad3
DBC: Adds simdbc64 target, adds arm64 arithmetic overflow logic
...
There were differences between linux gcc, android gcc,
MacOS clang, and 32 vs. 64-bit w.r.t the __builtin
functions for detecting arithmetic overflow. I couldn't get
them all working at the same time. Instead, I removed them,
and changed to always use the inline assembly. This works
in all the configurations above.
This change also adds a simdbc64 target for building simdbc
for 64-bit, and sets up the android targets. simdbc targets
arm, and simdbc64 targets arm64. You can build them with:
$ ./tools/build.py -m release -a simdbc{64} --os=android runtime
R=iposva@google.com
Review URL: https://codereview.chromium.org/1904153003 .
2016-04-25 12:48:34 -07:00
Florian Loitsch
84ec63e9fc
Make dart:core strong-mode clean.
...
R=leafp@google.com , lrn@google.com
Review URL: https://codereview.chromium.org/1895473004 .
2016-04-21 14:01:48 +02:00
Vyacheslav Egorov
ee0f608ce4
Dart Byte Code interpreter.
...
This version is Clang/GCC only and does not support Windows because it uses computed goto's.
Only unoptimized mode is supported.
Architecture is described in constants_dbc.h and stack_frame_dbc.h.
R=fschneider@google.com , zra@google.com
Review URL: https://codereview.chromium.org/1858283002 .
2016-04-18 23:02:01 +02:00
Ryan Macnak
36d0cfced8
Triage some precompilation failures, mostly related to the service isolate no longer being started.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org/1855473002 .
2016-04-01 10:28:53 -07:00
Florian Schneider
15f23eedc9
VM: Fix --no-use-field-guards.
...
Fields read from the snapshot must be initialized in the same way
as when allocated with Field::New.
BUG=https://github.com/dart-lang/sdk/issues/25957
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1842853002 .
2016-03-29 17:40:58 -07:00
Sigmund Cherem
c5ae911e4e
Update status on safari tests that started passing after the update.
...
BUG=
Review URL: https://codereview.chromium.org/1843883002 .
2016-03-29 17:37:03 -07:00
Sigmund Cherem
76a77d8b42
Skip tests in cpsir+checked mode until it is implemented
...
TBR=sra@google.com
Review URL: https://codereview.chromium.org/1780843002 .
2016-03-09 17:21:49 -08:00
William Hesse
f5d284ca9c
Update status for a slow test and a crashing test.
...
BUG=
R=eernst@google.com
Review URL: https://codereview.chromium.org/1768193002 .
2016-03-07 17:59:16 +01:00
William Hesse
7f9e4b7456
Update status for dart2js --cps_ir --host_checked.
...
BUG=https://github.com/dart-lang/sdk/issues/25911
BUG=https://github.com/dart-lang/sdk/issues/24485
R=sgjesse@google.com
Review URL: https://codereview.chromium.org/1773523002 .
2016-03-07 11:35:11 +01:00
Ryan Macnak
167616b83e
Skip mirror tests more generally for $mode == product instead of $runtime == dart_product.
...
Reduces failures in tools/test.py -mproduct.
R=asiva@google.com
Review URL: https://codereview.chromium.org/1760043002 .
2016-03-03 10:06:59 -08:00
William Hesse
15f8618c1c
Update status for dart2js host-checked mode tests.
...
BUG=https://github.com/dart-lang/sdk/issues/25911
Review URL: https://codereview.chromium.org/1760173002 .
2016-03-03 17:29:25 +01:00
Srdjan Mitrovic
b3405d5ebc
Add --no-background-compilation to tests that expect to run code in optimized form
...
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org/1759973002 .
2016-03-02 16:30:58 -08:00
Ryan Macnak
3fd5ffdbd4
Make tools/build.py -cprecompiler -rdart_precompiled green:
...
- Create a separate compilation output directory for each VMOptions varient so they can run in parallel.
- Run both the snapshotter and assembler from the test harness instead of a wrapper script so crashes in the snapshotter are correctly identified by the test harness.
- Delete the assembly source for the precompiled shared library as we go to limit space required to run the test suite (now 61GB for X64 release).
- Remove the VMOption --optimization-counter-threshold in when running precompilation tests.
- Don't look at a library prefix's import list during load(), it was removed by tree-shaking.
- Trace types of TypeParameters.
- Trace types of a Function's owner and parent.
- Update status file for remaining 4 failures under http://dartbug.com/25892 .
R=fschneider@google.com
Review URL: https://codereview.chromium.org/1732323005 .
2016-03-01 15:19:11 -08:00
Ryan Macnak
ad01f0fb41
Don't expand inline frames in stacktraces under noopt to match full precompiled behavior.
...
R=fschneider@google.com
Review URL: https://codereview.chromium.org/1748793002 .
2016-02-29 13:28:09 -08:00
Siva Annamalai
5c53e14d55
- Skip tests which use dart:mirrors in product mode
...
Review URL: https://codereview.chromium.org/1728663002 .
2016-02-24 18:13:20 -08:00
William Hesse
bb6b9bda4a
Remove unused builder-tag on mac builders.
...
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org/1726583002 .
2016-02-23 11:18:11 +01:00
Siva Annamalai
809c205cae
- Fix --run-fullsnapshot flag processing issue in non product mode.
...
- Adjust status files for product mode issues (Process.run, SpawnUri,
test expecting line numbers)
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1720193002 .
2016-02-22 15:33:34 -08:00
William Hesse
270ad3f552
Remove ContentShellOnAndroid from status files
...
Dartium and content_shell are no longer built or tested on Android.
A separate issue is filed to remove support from the test scripts:
https://github.com/dart-lang/sdk/issues/25832
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org/1720813002 .
2016-02-22 10:20:22 +01:00
Kevin Millikin
fc839c7139
Update dart2js CPS test expectations.
...
corelib/data_resource_test had an expectation of RuntimeError or Crash due
to overlapping test expectations. It should not crash.
corelib/package_resource_test had the same expectation. It should crash.
BUG=
R=asgerf@google.com
Review URL: https://codereview.chromium.org/1709573003 .
2016-02-18 12:47:43 +01:00
Asger Feldthaus
3e5c643fb1
dart2js cps: Add flaky test to status file.
...
See issue 25795.
BUG=
R=sigmund@google.com
Review URL: https://codereview.chromium.org/1705003002 .
2016-02-18 10:46:22 +01:00
Siva Annamalai
64a5845d19
Fix status files to account for dart_product runtime.
...
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1688423002 .
2016-02-17 12:22:35 -08:00
Asger Feldthaus
1c698c183b
dart2js cps: Fix inlining of stringify.
...
The rewrite Stringify(x) -> x.toString() is only safe when the toString
method is known to return a string.
BUG=
R=sigmund@google.com
Review URL: https://codereview.chromium.org/1697373002 .
2016-02-17 10:57:58 +01:00
Asger Feldthaus
0d02f5ccca
dart2js cps: Update status files.
...
BUG=
Review URL: https://codereview.chromium.org/1696323002 .
2016-02-16 11:03:58 +01:00
Kevin Millikin
fd9603d1d2
dart2js CPS: implement special handling of the Symbol constructor.
...
There is a 'const' Symbol constructor that is not expressible as a Dart
const constructor because it performs validation of its input. This is
implemented in the libraries by using a dummy const constructor definition
that does not validate its input and replacing calls to 'new Symbol' with
calls to 'new Symbol.validated' in the compiler.
Without replacing calls to 'new Symbol', the non-validating dummy
implementation will be used, which is not correct.
Closes #24878 .
R=asgerf@google.com
BUG=https://github.com/dart-lang/sdk/issues/24878
Review URL: https://codereview.chromium.org/1639313002 .
2016-01-28 08:55:35 +01:00
Stephen Adams
1673a64849
Add type info to JSArray.
...
JSArray<E>.typed has a specially generated body. We should be able to inline this. This makes all of the "new List.xxx()" paths work.
Literal lists are treated like maps - we generate a call to JSArray<E>.typed. I need to change that to JSArray<E>.markGrowable.
R=asgerf@google.com
Review URL: https://codereview.chromium.org/1642493002 .
2016-01-27 13:47:12 -08:00
Lasse R.H. Nielsen
75d1366dbd
Use WeakMap to support Expando if available.
...
Retains the existing code as fallback for settings without WeakMap for now.
Fixes issue #5144
BUG= http://dartbug.com/5144
R=sigmund@google.com
Review URL: https://codereview.chromium.org/1599393003 .
2016-01-25 12:06:06 +01:00
Stephen Adams
33ac12a5a4
Lower map literals to constructor or function calls in builder
...
Remove LiteralMap from cps_ir and tree_ir.
R=asgerf@google.com
Review URL: https://codereview.chromium.org/1616143003 .
2016-01-21 19:32:13 -08:00
Stephen Adams
7d3b6b1827
Triage 3 cps_ir tests
...
TBR=sigmund@google.com
Review URL: https://codereview.chromium.org/1617973002 .
2016-01-21 10:56:47 -08:00
Lasse R.H. Nielsen
f70bef4a2c
Support the same parameter key more than once in Uri query parameters.
...
R=floitsch@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org/1520943002 .
2016-01-13 13:07:18 +01:00
Stephen Adams
4fc394c96d
js_runtime: streamline stringReplaceAllUnchecked
...
Use a literal RegExp to avoid creating new uncompiled RegExp each time.
R=floitsch@google.com
Committed: https://github.com/dart-lang/sdk/commit/be1b32207bc1c1f610c2e96f32c9c6ca37fa0259
Reverted: https://github.com/dart-lang/sdk/commit/0d23ec2f7a7f2c1b5a0250de6bdd6e48aeace42d
Review URL: https://codereview.chromium.org/1557673002 .
2016-01-05 13:37:20 -08:00
Stephen Adams
0d23ec2f7a
Revert "js_runtime: streamline stringReplaceAllUnchecked"
...
I missed a use of the REGEXP in another file.
I will recommit with the REGEXP replaced with a function.
Review URL: https://codereview.chromium.org/1559953002 .
2016-01-04 09:29:29 -08:00
Stephen Adams
be1b32207b
js_runtime: streamline stringReplaceAllUnchecked
...
Use a literal RegExp to avoid creating new uncompiled RegExp each time.
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1557673002 .
2016-01-04 08:26:01 -08:00
Ryan Macnak
6b964b83ac
Add ./tools/test.py -c precompiler -r dart_precompiled.
...
- Make --gen/run-precompiled-snapshot take a directory to use for the snapshot pieces.
- Throw on Platform.executeable to prevent tests from becoming fork-bombs.
- Update status files so 'dart_precompiled' is generally expected to behave the same as 'vm'.
Currently multitests will fail unless run with --jobs=1 because the test harness assigns them the same temporary directory.
Running this also requires a great deal of space. My out directory is 380G.
BUG=http://dartbug.com/24975
R=fschneider@google.com , srdjan@google.com
Review URL: https://codereview.chromium.org/1507943002 .
2015-12-18 12:08:10 -08:00
William Hesse
6485590527
Remove old java-based analyzer from test scripts and status files
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org/1537653002 .
2015-12-17 14:44:57 +01:00
Ryan Macnak
d71b98cfe7
Further triage --noopt failures.
...
- Explain slow bigint tests.
- Note that deferred loading tests are failing for a valid reason.
BUG=http://dartbug.com/24676
R=srdjan@google.com
Review URL: https://codereview.chromium.org/1531903002 .
2015-12-16 16:24:36 -08:00
Stephen Adams
5d74a7a958
Upgrade confuse() function in corelib tests
...
TBD=floitsch@google.com
Review URL: https://codereview.chromium.org/1513373002 .
2015-12-10 12:59:31 -08:00
Florian Loitsch
c95b4e46ff
Enable more DateTime tests on dart2js.
...
Review URL: https://codereview.chromium.org/1520613002 .
2015-12-10 19:49:30 +01:00
Lasse R.H. Nielsen
fa025f3337
Make int_parse_radix_test run ~30% faster.
...
BUG= https://github.com/dart-lang/fletch/issues/46
R=sgjesse@google.com
Review URL: https://codereview.chromium.org/1510843002 .
2015-12-10 11:06:20 +01:00
Florian Loitsch
581392cf17
Fix datetime test.
...
R=lrn@google.com
Review URL: https://codereview.chromium.org/1511773003 .
2015-12-09 20:24:40 +01:00
Florian Loitsch
db643f5ae2
Fix datetime test.
...
Review URL: https://codereview.chromium.org/1514483003 .
2015-12-09 02:57:05 +01:00
Florian Loitsch
6c84c42e67
Add microsecond support to DateTime.
...
R=iposva@google.com , lrn@google.com
Review URL: https://codereview.chromium.org/1493033003 .
2015-12-09 00:46:46 +01:00
Lasse R.H. Nielsen
027b8dca39
Add StackTrace.current getter.
...
R=floitsch@google.com , iposva@google.com , sra@google.com
Review URL: https://codereview.chromium.org/1448003002 .
2015-11-24 08:26:03 +01:00
Karl Klose
b0b841d976
corelib: Do not print value in ArgumentError.notNull
...
R=lrn@google.com
Review URL: https://codereview.chromium.org/1460903003 .
2015-11-23 12:25:58 +01:00
Lasse R.H. Nielsen
50aa43569d
Add "growable" parameter to List.filled constructor.
...
Fixes issue #24884
BUG= http://dartbug.com/24884
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1440663003 .
2015-11-13 09:30:46 +01:00
Lasse R.H. Nielsen
ed0b187d58
Add data-URI support class to dart:core (next to Uri).
...
R=floitsch@google.com , fschneider@google.com
Committed: https://github.com/dart-lang/sdk/commit/bbc66c2c41e61d82d6b85fdd16e2b0f1204c2a33
Review URL: https://codereview.chromium.org/1381033002 .
2015-11-12 13:02:20 +01:00
William Hesse
df5ef1b136
Revert "Add data-URI support class to dart:core (next to Uri)."
...
This reverts commit bbc66c2c41 .
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org/1432203002 .
2015-11-11 11:42:04 +01:00