Commit Graph

2501 Commits

Author SHA1 Message Date
Zachary Anderson ba550f1c43 Fixes NetworkInterface.list crash on Android
Previously, Socket::ListInterfaces failed to set the os_error out
parameter causing a crash in the caller. This change sets an error here.

I've also added NetworkInterface.listSupported, which returns false on
Android, and true everywhere else. ifaddrs.h continues not to exist in
the NDK, so in order to support NetworkInterface.list, we'd have to
reimplement it, or find a suitable reimplementation somewhere.

related #26329

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1916223003 .
2016-04-26 07:48:58 -07: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
Zachary Anderson 218545ba10 Fixes leak of native File objects.
Also employs the same reference counting technique as secure sockets to
avoid the IO Service touching dangling pointers.

R=iposva@google.com

Review URL: https://codereview.chromium.org/1892623002 .
2016-04-20 10:08:37 -07:00
Zachary Anderson 1336e6149f Search for a native extension for the host architecture
R=iposva@google.com

Review URL: https://codereview.chromium.org/1896203002 .
2016-04-20 08:02:16 -07: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 2d6170f1cc Skip standalone/io/named_pipe_script_test under precompilation.
TBR=zra@google.com

Review URL: https://codereview.chromium.org/1890363002 .
2016-04-15 17:45:21 -07:00
Kevin Moore fd13a816b7 fix analyzer failures
Review URL: https://codereview.chromium.org/1889273002 .
2016-04-15 11:56:09 -07:00
Zachary Anderson 8caa5a6dcb Allow opening a named pipe on MacOS and Linux.
fixes #26237

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1883293005 .
2016-04-15 11:19:37 -07:00
Kevin Moore 5b5312a67c pkg/analyzer: support latest pkg/crypto version
BUG= https://github.com/dart-lang/sdk/issues/26138
R=brianwilkerson@google.com, paulberry@google.com

Review URL: https://codereview.chromium.org/1890973003 .
2016-04-15 10:00:24 -07:00
Siva Annamalai 84c81d81a9 Fix status file for tests that are taking long.
R=srdjan@google.com

Review URL: https://codereview.chromium.org/1885243002 .
2016-04-13 17:36:57 -07:00
Siva Annamalai 6a430db5c7 Remove verified-mem option from test as it is being deprecated.
Review URL: https://codereview.chromium.org/1891493002 .
2016-04-13 13:12:29 -07:00
Ivan Posva c434931517 - Remove --coverage_dir flag and old-style coverage service requests.
BUG=

Review URL: https://codereview.chromium.org/1846443002 .
2016-04-07 16:24:49 -07:00
Ryan Macnak 173406cbc1 Remove standalone/precompilation_test. We now have bots running the whole test suite precompiled (tools/test.py -cprecompiler -rdart_precompiled).
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1858493003 .
2016-04-04 12:20:34 -07: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 c53ec0971b Add diagnostic printing to standalone/precompilation_test.
This should help diagnose which step causes the flaky timeout
failures on the buildbot.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1844233002 .
2016-03-30 17:38:35 -07:00
Ryan Macnak 64871bcf1a Mark the precompilation tests as slow.
TBR=srdjan@google.com

Review URL: https://codereview.chromium.org/1843513004 .
2016-03-29 17:55:35 -07:00
William Hesse 37067770f9 Skip file test on ARM that leaves large file in temp directory
BUG=https://github.com/dart-lang/sdk/issues/26109
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1841583004 .
2016-03-29 10:43:56 +02:00
Zach Anderson b81aa55a0c Update status file
related #26057

Review URL: https://codereview.chromium.org/1821203002 .
2016-03-22 07:57:51 -07:00
Zach Anderson 26de6db8a9 Adjust status file for mac ssl failure
BUG=

Review URL: https://codereview.chromium.org/1818343002 .
2016-03-21 22:39:34 -07:00
Zach Anderson e900b1b944 Implements secure sockets on Mac OS with SecureTransport API
R=iposva@google.com

Review URL: https://codereview.chromium.org/1721283002 .
2016-03-21 15:46:29 -07:00
Siva Annamalai 8364da0e1b Adjust status files for product mode to skip tests that require checked mode as we do not support the flags --enable_asserts and --enable_type_checks in product mode.
tools/test.py -mproduct -cdart2app -rdart_product

should run clean after this CL

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1817623003 .
2016-03-21 11:09:38 -07:00
Alan Knight 3b3fc5f724 Suppress regress_26031_test on Dartium (uses dart:io)
BUG=

Review URL: https://codereview.chromium.org/1815643003 .
2016-03-18 14:41:43 -07:00
Zachary Anderson 078d89ef5c Fix dangling pointer
The resolved executable path is returned to the static in Platform as
a scope allocated string. This change strdups it when it is cached in
a static for return on subsequent calls. Previously, the memory would
be deallocated on exit from the scope.

fixes #26031

R=asiva@google.com

Review URL: https://codereview.chromium.org/1813943004 .
2016-03-18 08:34:23 -07:00
Alan Knight 135e2583b0 Skip additional flaky OOM test on Dartium
BUG=

Review URL: https://codereview.chromium.org/1797013002 .
2016-03-14 13:55:58 -07:00
Erik Ernst f741a16c63 Marked tests as Timeout to match actual behavior.
The test standalone/full_coverage_test.dart was marked in
standalone.status as a possible timeout, because I received buildbot
failure email that it had timed out.

The CL https://codereview.chromium.org/1779173003 that I had landed
only added 3 new test files and changed the status files for them, so
it is my interpretation that the timeouts are unrelated to my changes.

Review URL: https://codereview.chromium.org/1784383002 .
2016-03-11 19:40:32 +01:00
Ryan Macnak c6d3ff0098 More MIPS status cleanup.
R=regis@google.com

Review URL: https://codereview.chromium.org/1774693002 .
2016-03-07 16:37:48 -08:00
Ryan Macnak 865b8eedfc Reset limit of map_insert_remove_oom_test and skip on noopt/precompilation.
Increasing the heap limit to allow for the compiled core libraries in noopt/precompilation requires increasing the iteration count to make the test meaningful, but this also makes it too slow on simarm64, etc.

Cf. baf4d84f34

BUG=http://dartbug.com/24678
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1772963002 .
2016-03-07 14:23:19 -08:00
Ryan Macnak 46fea6cfb2 Update status file for some passing tests on MIPS and ARM.
R=regis@google.com

Review URL: https://codereview.chromium.org/1774613002 .
2016-03-07 12:17:27 -08:00
Ryan Macnak baf4d84f34 Increase max heap size in map_insert_remove_oom_test to handle compiled core libraries in --noopt and -cprecompiler -rdart_precompiled.
BUG=http://dartbug.com/24678
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1773593006 .
2016-03-07 11:29:32 -08:00
Sigmund Cherem 385f3350c5 Update status of cpsir tests in checked mode: skipping for now, since more than
75% fail for one reason, once we fix that we can triage in more detail.

Review URL: https://codereview.chromium.org/1771893002 .
2016-03-07 10:20:41 -08:00
Zachary Anderson f6ddb4568f Regularize some errors thrown by SecureContext.
This is done by replacing a call to SSL_CTX_set_client_CA_list() with
calls to SSL_CTX_add_client_CA(), preserving the diagnostic status
return value discarded by the former.

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

Review URL: https://codereview.chromium.org/1761583002 .
2016-03-04 09:02:20 -08:00
Ivan Posva d61ebd4ed2 - Unify dart_no_snapshot and dart_bootstrap into one binary.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1760063003 .
2016-03-03 14:53:59 -08: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
Zachary Anderson e2729705ff Rolls back fix of SecurityContext method names.
R=iposva@google.com

Review URL: https://codereview.chromium.org/1757453002 .
2016-03-01 10:34:15 -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 993290b599 - Include a random number in the full snapshot filename as some of the tests
which have multiple VMOption specifications in them run in parallel with the
  same snapshot filename and they clobber each other resulting in random crashes
- Delete the temporary snapshot generation directory after the test run
- Modify map_literal_oom_test.dart to run with 10mb heap limit instead of 7MB
  as the VM service isolate in the dart_no_snapshot run gets an OOM.

R=johnmccutchan@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/1731023003 .
2016-02-25 10:25:58 -08:00
Ryan Macnak f3fda729cc Skip more resource-hogging tests on arm64.
R=zra@google.com

Review URL: https://codereview.chromium.org/1726123002 .
2016-02-24 12:56:31 -08:00
Ryan Macnak 71b0f6d9c4 Remove standalone/noopt_test.
-- The dart binary doesn't understand --noopt anymore.
-- Noopt coverage now comes from the whole test suite being running against dart_noopt.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1728893002 .
2016-02-24 09:32:10 -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
Siva Annamalai fe630d6a88 - Skip all html tests in dart_product mode
- Skip all the tests taht deal with package root stuff in dart_product as   we do not have a service isolate and it is not possible to resolve package   configs.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1718723002 .
2016-02-19 15:26:48 -08: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
Zachary Anderson 38786e9566 More SecurityContext calls accept a password.
Any PKCS12 container, not just those containing a private key, can be
protected by a password. This change adds an optional named `password`
parameter to other SecurityContext calls, and plumbs it through to
the calls reading PKCS12 data.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1699163002 .
2016-02-17 10:58:19 -08:00
Srdjan Mitrovic ee55c3c9ef Minor work for background compilation
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1702093002 .
2016-02-16 11:16:47 -08:00
Vyacheslav Egorov b2994a4f55 Unwrap TypeRef returned by InstantiateFrom in AssertAssignableInstr::Canonicalize.
Runtime system does not expect to see TypeRef as a destination type for a
type check: type references should only appear in the type arguments of
recursive types.

Reorganize canonicalization code to make it more readable and assertions to
catch this issue earlier.

BUG=http://dartbug.com/25782
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1701963002 .
2016-02-16 13:44:08 +01:00
Florian Schneider 1f7458ddf8 VM: Precompiled rodata snapshot.
For now only contains PC descriptors and stack maps and one-byte strings.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1584443002 .
2016-02-15 09:15:26 +01:00
Zachary Anderson 53dec5d35f Fix PEM error checking
While reading PEM data, if we encounter PEM_R_NO_START_LINE, and some
data has been read successfully, we assume that we have reached the
end of the data.

If we encounter PEM_R_NO_START_LINE, and no data has been read
successfully, we assume that the data is not PEM, and we try instead
to read it as PKCS12.

Otherwise, we assume it is malformed PEM, and propagate an error.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1689873003 .
2016-02-12 19:01:47 -08:00
Ryan Macnak 65063a0927 Tests that --fields_may_be_reset, --link_natives_lazily, and --no_allow_absolute_addresses work in the JIT.
Minor change to make --no_allow_aboslute_address to work in the (non-IA32) JIT.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1679363002 .
2016-02-11 09:53:30 -08:00
Regis Crelier bb649318e4 Remove support for Javascript warnings in the VM.
This cl is a clone of cl https://codereview.chromium.org/1683363002/ deleted by
accident. Already LGTM'ed.

Review URL: https://codereview.chromium.org/1690903003 .
2016-02-11 09:16:06 -08:00
Zachary Anderson 89f414dc37 Adds support for PKCS12 containers to SecurityContext
Looking forward to using platform specific APIs, this container type is
more common on MacOS and Windows, and is the only container type
supported by the native iOS API.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1687533002 .
2016-02-10 14:20:59 -08:00
Todd Turnidge d3397f64c1 Add debugging output to full_coverage_test to help diagnose timeouts.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1688933002 .
2016-02-10 13:23:51 -08:00