Commit Graph

2501 Commits

Author SHA1 Message Date
John McCutchan d78ebae9af "fix" standalone/io/sleep_test.dart on Windows
BUG=

Review URL: https://codereview.chromium.org/1682873004 .
2016-02-10 13:03:50 -08:00
Todd Turnidge be3acab294 Use Stopwatch instead of DateTime to measure elapsed time in tests.
Improve timer_repeat_test.dart to not totally punt on testing the timing.

BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1683233003 .
2016-02-10 11:21:40 -08:00
John McCutchan e2e7af1229 Remove more feature in product mode
- Remove Timeline.
- Remove more vmservice code.
- Remove AST printing.
- Remove IL printing.
- Remove profiler.
- Remove thread interrupter.
- Remove disassembler.
- Remove Library::CheckFunctionFingerprints.

- Update test status files for product mode.

Size of dart_bootstrap before: 5287631
Size of dart_bootstrap after: 5112783

Reduction in size: 174848 bytes.

Total reduction in size (382734 + 174848): 557582 bytes.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1678203002 .
2016-02-09 08:45:32 -08:00
Ryan Macnak 3b4a9e7e01 Fix --no-lazy-dispatchers in the JIT.
Broken since bac82e2592.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1672303002 .
2016-02-08 10:23:19 -08:00
Zachary Anderson fea3c86cee Fix security_context_argument_test
Changed case to trigger only one kind of failure.

Review URL: https://codereview.chromium.org/1675343002 .
2016-02-08 09:19:48 -08:00
Zachary Anderson 2cf6405ca9 Adds SecurityContext.setTrustedCertificatesBytes
Implements SecurityContext.setTrustedCertificates in terms of the new
function. This requires setTrustedCertificates to return a Future,
and removing the `directory` named argument as it is not possible to
implement with BoringSSL without blocking IO.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1665433002 .
2016-02-08 08:41:49 -08:00
Todd Turnidge 16ed87e1f6 Start trying to track down why full_coverage_test is timing out all the time.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1660593007 .
2016-02-04 10:51:07 -08:00
Florian Schneider ed05c4ec01 Update noopt test expectations for standalone/io tests.
These rely on Platform.executable (which is different with noopt)

BUG=

Review URL: https://codereview.chromium.org/1663513003 .
2016-02-02 19:49:10 -08:00
Zachary Anderson 8f356bf87e Adds SecurityContext.useCertificateChainBytes
Changes SecurityContext.useCertificateChain to call the new method and
return a Future.

R=whesse@google.com

Review URL: https://codereview.chromium.org/1648793005 .
2016-02-02 10:54:07 -08:00
Siva Annamalai 15b48c968c Skip http_proxy_test and secure_builtin_roots_test.
Review URL: https://codereview.chromium.org/1660523002 .
2016-02-02 09:38:47 -08:00
Ivan Posva fe03117706 The uptime of the vm-linux-release-ia32-be buildbot has reached the
JS integer overflow limit when read in microseconds. These tests will
fail because initializing the Stopwatch object now throws the
JavascriptIntegerOveflowError during load.

- Disable these tests.

BUG=

Review URL: https://codereview.chromium.org/1646413005 .
2016-01-29 16:00:29 -08:00
Ivan Posva 744b81efcd - Try to get more information for buildbot only failures.
BUG=

Review URL: https://codereview.chromium.org/1648123003 .
2016-01-29 12:05:41 -08:00
Zachary Anderson 98771a083f Adds SecurityContext.usePrivateKeyBytes
This is the first step toward removing blocking IO calls from
the implementation of the SecurityContext API.

Using a buffer rather than a file name API will probably be needed
for implementing SecurityContext and SecureSocket with platform
specific built-in APIs on iOS/Mac/Windows rather than BoringSSL.

related #8227

R=whesse@google.com

Review URL: https://codereview.chromium.org/1616073004 .
2016-01-29 08:52:18 -08:00
Zachary Anderson 80f358dede Adds targets for simarmv6 and armv6
related #25562

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1624593002 .
2016-01-22 13:07:48 -08:00
Søren Gjesse c60c5a595d Add tests for no context takeover configurations with multiple messages.
BUG=

Patch by Matthew Butler <butler.matthew@gmail.com>

R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1605583002 .
2016-01-22 13:36:44 +01:00
Florian Schneider f47839ba09 Rename DART_PRECOMPILED -> DART_PRECOMPILED_RUNTIME
To avoid future confusion with precompiler compiler-related macros/build targets

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1581393008 .
2016-01-19 13:59:49 -08:00
Søren Gjesse 9240052ebb Optimize Websocket compression for no context takeover requests
Resolve issue with server applying context takeover when not enabled.

After resolving negotiation and optimizing client/server takeover usage
an bug became apparent where no context takeover was being applied but
not advertised by the server.

This patch resolves that issue and adds tests to validate in the future.

Ensure encoders/decoders are properly 'discarded' when client_no_context_takeover
and server_no_context_takeover flags are detected.

Resolve issues with client not sending appropriate header request values based
on the configured passed by CompressionOptions.

Add tests for client header values

BUG=25317

Patch by Matthew Butler <butler.matthew@gmail.com>

R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1584653008 .
2016-01-18 08:51:44 +01:00
Ivan Posva b2a186c2dd - Readjust Dartium status files.
BUG=

Review URL: https://codereview.chromium.org/1591063002 .
2016-01-15 11:22:24 -08:00
Ivan Posva 8741a8dcda - Update status files.
BUG=

Review URL: https://codereview.chromium.org/1579213003 .
2016-01-13 01:39:40 -08:00
Ivan Posva ca40bd9233 Fix build:
- Update status files.

BUG=

Review URL: https://codereview.chromium.org/1580353002 .
2016-01-12 21:06:27 -08:00
Ivan Posva e33fdfbeef Fix build:
- Adjust dart2js expectations of testing of invalid package specifications.

BUG=

Review URL: https://codereview.chromium.org/1582723002 .
2016-01-12 19:50:23 -08:00
Ivan Posva 6d066c7e53 Add package config support to dart:isolate
- Add "static Future<Uri> get packageRoot;",
  "static Future<Uri> get packageConfig;" and
  "static Future<Uri> resolvePackageUri(Uri packageUri)" to Isolate class.
- Added "Uri packageRoot, Uri packageConfig, bool automaticPackageResolution: false" parameters to spawnUri.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1553233002 .
2016-01-12 18:19:04 -08:00
Ryan Macnak 80702cb272 Fall back to inlining intervals to generate stack traces in --noopt. Inlined frames will lack line and column positions, but they will at least be expanded.
Fix stack traces when visible functions are inlined into an invisible function.

Fix off-by-one expanding inlined functions in the profiler.

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

Review URL: https://codereview.chromium.org/1582683003 .
2016-01-12 16:45:00 -08:00
Søren Gjesse eaf75a100e HeaderValues: Handle all parameters without values.
Some cases, an HttpHeader Value may contain all parameters and
no values. This changes ensures that such a header is parsed, that
it is handled correctly.

This was noticed when parsing the following header for websockets:
Sec-WebSocket-Extensions: permessage-deflate; client_no_context_takeover; client_max_window_bits; server_no_context_takeover

It was parsing with the value permessage-deflate (correct) with parameters:
{'client_no_context_takeover;' : 'client_max_window_bits',
'server_no_context_takeover' : null }

With this patch it now properly shows the parameters as:
{'client_no_context_takeover' : null,
'client_max_window_bits' : null,
'server_no_context_takeover' : null }

I've also included a test for this as well.

BUG=

Patch by Matthew Butler <butler.matthew@gmail.com>.

Review URL: https://codereview.chromium.org/1564913002 .
2016-01-07 09:03:53 +01:00
Srdjan Mitrovic 29c241df85 Fix bot: Int64List not supported in dart2js
BUG=
R=vegorov@google.com

Review URL: https://codereview.chromium.org/1561673003 .
2016-01-05 11:30:49 -08:00
Vyacheslav Egorov c0e374d455 Ensure consistency of representations when replacing integer ops with constants
during canonicalization.

BUG=dartbug.com/25335
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1557923003 .
2016-01-05 17:10:31 +01:00
William Hesse 634e5a1d02 Refs #25328 Use a portable shebang
BSD systems don't place bash in /bin and a lot of the dart tools
hardcode a #!/bin/bash shebang that fails the 'all' target build
(not able to execute dart2js since the interpreter is not found).

Solve the issue by using #!/usr/bin/env as the shebang. For scripts
that need to pass arguments to bash modify the script to use the set
command as the first executed line of shell.

BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org/1552313002 .
2016-01-05 16:26:28 +01: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
Ivan Posva 7e6d5a579d - Fix more bad uses of Platform.packageRoot.
- Simplify previous fixes.

BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/1536043002 .
2015-12-18 08:34:07 -08:00
Ivan Posva 41b9d35750 - Fix precompilation test.
BUG=

Review URL: https://codereview.chromium.org/1534833002 .
2015-12-17 08:55:27 -08:00
Ivan Posva b6781b656a - Implement Platform.packageRoot and Platform.packageConfig based
on the new specification.

BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/1529063006 .
2015-12-17 07:48:41 -08:00
Ivan Posva f887b03b5b - Assert that we do not hold the timeline lock while entering
potential safepoints.
- Enable timeline for existing test as a regression test.
- Fix allocation with timeline lock held during deoptimization to
  prevent deadlock.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1514653002 .
2015-12-09 13:41:42 -08:00
William Hesse c49e39f551 Update status for two failing tests
BUG=https://github.com/dart-lang/sdk/issues/24571
BUG=https://github.com/dart-lang/sdk/issues/25125

TBR=fschneider@google.com

Review URL: https://codereview.chromium.org/1504003002 .
2015-12-07 15:32:04 +01:00
Ivan Posva 6249c2bcf3 - Remove the legacy debug protocol.
BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org/1497033003 .
2015-12-03 17:46:02 -08:00
Ryan Macnak f949a2d132 Mark precompilation_dart2js_test as Pass, Slow in debug mode.
Review URL: https://codereview.chromium.org/1488913003 .
2015-12-01 13:31:23 -08:00
Ryan Macnak 289cdf9040 Mark precompilation_dart2js_test as slow in debug mode.
R=srdjan@google.com

Review URL: https://codereview.chromium.org/1487883002 .
2015-12-01 12:48:53 -08:00
Alan Knight c480c7beec Fix tests that don't catch asynchronous errors from isolate spawning. Update co19 status.
BUG=

Review URL: https://codereview.chromium.org/1477043002 .
2015-11-25 14:33:09 -08:00
Todd Turnidge bd2b840be0 Revert my recent changes to the Dartium test status files.
We have restored blocking isolate spawning under a flag.

--------

Revert "Update test status files.  Issue #24990."

This reverts commit 05bf1d6bb6.

Revert "Skip isolate spawning tests on Dartium."

This reverts commit c6c6f121ed.

BUG=

Review URL: https://codereview.chromium.org/1472783004 .
2015-11-23 15:15:55 -08:00
Florian Schneider e028ebc28e Temporarily mark standalone/io/process_sync_test as Pass, Timout on Windows
BUG=#24596

TBR=zra@google.com

Review URL: https://codereview.chromium.org/1461253003 .
2015-11-20 11:11:57 +01:00
Todd Turnidge 05bf1d6bb6 Update test status files. Issue #24990.
BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/1454143005 .
2015-11-19 12:42:58 -08:00
Florian Schneider f0a35b3260 VM: Add dart_precompiled build target, a standalone VM without the JIT compiler.
This removes most of the compiler-related code from dart_precompiled:
x64 stripped binary size 13M -> 9.1M
ARM stripped binary size 12M -> 8.3M

The precompiled build defines the DART_PRECOMPILED macro. This
stubs out the public interface to the compiler/parser with empty
function bodies.

Use gcc options -ffunction-sections and --gc-sections to make the linker remove
unused functions/symbols.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1459443002 .
2015-11-19 10:13:16 +01:00
Søren Gjesse bcd7466b56 Ensure proper response to chrome client_max_window_bits request.
I undid the patch John McCutchan did to disable compression and compiled and verify that Chrome does not experience any issues with websocket compression negotiation and that compression is enabled.

Also tested with observatory on Firefox and Edge (IE) and both work with current configuration.

BUG=#24864
subject: Ensure proper response to chrome client_max_window_bits

R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1437623002 .
2015-11-12 17:04:07 +01:00
Ryan Macnak a825ac73f8 Skip precompilation_dart2js_test on the MIPS bots.
R=zra@google.com

Review URL: https://codereview.chromium.org/1410833007 .
2015-11-06 15:23:03 -08:00
Søren Gjesse 95bb2159d9 Web Socket compression - take two
Resolve issues with typed data tests and compression.
Uses HeaderValues to parse permessage_deflate option.

Includes changes from https://codereview.chromium.org/1208473005/

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

Committed: https://github.com/dart-lang/sdk/commit/59bb84127b63a7516a32a32eae6a6839420709db

Reverted: https://github.com/dart-lang/sdk/commit/d1e01e205a615257ba9391cb531ad8b053af1fed

Additional fixes for failing tests.

Review URL: https://codereview.chromium.org/1390353005 .
2015-11-06 08:59:02 +01:00
Ryan Macnak 165c21026a Add test precompiling dart2js.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1430993003 .
2015-11-05 10:43:15 -08:00
Florian Schneider e75056ccb4 VM: Fix bug with CHA-based inlining in --noopt mode.
Use propagated cids (not abstract types) only to specialize instance calls.

BUG=dartbug.com/24789
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1419013006 .
2015-11-02 19:48:26 +01:00
William Hesse ef5f949c86 Update status for dartium tests.
BUG=https://github.com/dart-lang/sdk/issues/24795
BUG=https://github.com/dart-lang/sdk/issues/24571
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/1407113009 .
2015-11-02 16:19:59 +01:00
Florian Schneider dde638f7db Mark tests failing with --noopt in the status files.
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1415823004 .
2015-10-31 01:45:50 +01:00
Søren Gjesse d1e01e205a Revert "Web Socket compression - take two"
This reverts commit 59bb84127b.

A number of observatory tests broke.

TBR=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org/1426043002 .
2015-10-29 14:13:24 +01:00
Søren Gjesse 59bb84127b Web Socket compression - take two
Resolve issues with typed data tests and compression.
Uses HeaderValues to parse permessage_deflate option.

Includes changes from https://codereview.chromium.org/1208473005/

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

Review URL: https://codereview.chromium.org/1390353005 .
2015-10-29 13:36:40 +01:00