Commit Graph

399 Commits

Author SHA1 Message Date
lrn@google.com e9ec0d7082 Update expectation for unittest test that uses non-zero timer.
Review URL: https://codereview.chromium.org//235203002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34973 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-11 13:47:34 +00:00
lrn@google.com 2ab1f1238f Trying to make preamble for d8.
Preamble handles timers and task queue.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//201873002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34967 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-11 10:29:06 +00:00
lrn@google.com 19bcddfc6b Add Isolate.kill().
This sends a kill signal to the isolate, which is allowed to terminate
the isolate as soon as possible, and at the latest before the next event.

R=ajohnsen@google.com, floitsch@google.com, sgjesse@google.com

Committed: https://code.google.com/p/dart/source/detail?r=34234

Review URL: https://codereview.chromium.org//190013005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34960 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-11 07:22:48 +00:00
kevmoo@google.com 4283c3e41e using unittest via package import
R=sigmund@google.com

Review URL: https://codereview.chromium.org//231413003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34890 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-09 19:42:11 +00:00
karlklose@google.com e6cd701ee6 Mark isolate/spawn_uri_multi_test as passing on CSP.
R=herhut@google.com

Review URL: https://codereview.chromium.org//225263005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34725 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-04 08:05:56 +00:00
johnniwinther@google.com c3e1ed3766 Update csp status.
BUG=

Review URL: https://codereview.chromium.org//217163009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34687 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-03 08:58:26 +00:00
zra@google.com 2fe51715e5 Begins work on ARM64, first assembler test.
Most new code is in constants_arm64.h and
{assembler,disassembler,simulator}_arm64.{h,cc}

The rest of the CL just #def's out tests, modifies status files,
and adds UNIMPLEMENTED functions, etc.

R=regis@google.com

Review URL: https://codereview.chromium.org//221133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34654 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-02 17:39:32 +00:00
kevmoo@google.com 5952d7a067 Upgrading tests with unittest deprecations
R=ricow@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//218273002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34569 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-31 18:33:18 +00:00
lrn@google.com b81c6a25f5 Revert "Add Isolate.kill()."
Either ping or kill tests fail in some cases.

Review URL: https://codereview.chromium.org//208193002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34247 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-21 13:20:51 +00:00
lrn@google.com 4cbaaf5f93 Don't try to infer that the current isolate is executing an event.
The inference didn't work in the browser. Instead keep an explicit
bit set.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//207853003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34244 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-21 10:59:27 +00:00
lrn@google.com ac43cac578 Add Isolate.kill().
This sends a kill signal to the isolate, which is allowed to terminate
the isolate as soon as possible, and at the latest before the next event.

R=ajohnsen@google.com, floitsch@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//190013005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34234 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-21 08:56:03 +00:00
lrn@google.com 63c7e14f44 Made SendPort a Capability.
Added tests.

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

Review URL: https://codereview.chromium.org//196983012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34163 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-20 11:43:54 +00:00
whesse@google.com 005f2f49af Supress isolate/mandel_isolate_test on debug Mips - it takes 600 MB.
BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org//198943005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33654 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-13 16:24:37 +00:00
lrn@google.com 1a35b1799d Update expectations after landing Isolate.ping.
Forgot to mark VM as failing due to not implementing it yet.
Dart2js mirrors_used_test grows unexplainably.

Review URL: https://codereview.chromium.org//186733004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33373 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 13:33:35 +00:00
lrn@google.com 705b67e836 Add Isolate ping functionality.
Implement in dart2js.

R=ajohnsen@google.com, floitsch@google.com

Review URL: https://codereview.chromium.org//186403003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33371 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-06 12:47:20 +00:00
lrn@google.com 327223aeb9 Typo in status file for isolate/ondone_test
Review URL: https://codereview.chromium.org//183383010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33270 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 12:59:38 +00:00
lrn@google.com 83c52f2a91 Add Isolate.onExit.
Implemented on dart2js.
Tentative design.
Comments welcome.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//179823002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33268 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-04 12:12:51 +00:00
lrn@google.com b23f5d0327 Add 'startPaused' option to Isolate.spawn*.
Initial implementation of startPaused in dart2js.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//163523003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32722 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-17 13:06:06 +00:00
kustermann@google.com 1626736d2c Remove flaky markers from status file for tests that are not flaky.
R=ricow@google.com

Review URL: https://codereview.chromium.org//135243005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32553 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-11 11:55:55 +00:00
lrn@google.com f7ac102369 Implement Isolate.pause in dart2js.
This is a trivial implementation of Isolate.pause.
It introduces out-of-band control messages to the control port
int a simple way (if receiveport == controlport treat specially).

Control port is now created for each isolate, along with a Capability allowing
pausing.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//153553009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32485 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 08:33:14 +00:00
lrn@google.com 173dddf73f Add pause methods to Isolate.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//142703010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32351 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 09:47:35 +00:00
lrn@google.com 3222f88f01 Update isolate expectations to not skip dart2dart.
BUG= http://dartbug.com/12629
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//130813005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32316 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-05 09:35:28 +00:00
lrn@google.com 6f4ac08a2b Add Capability implementation to dart2js libraries.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//152633002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32275 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-04 09:30:46 +00:00
lrn@google.com 29dd07f51a Add Capability class.
Currently throws UnimplementedError in constructor patches. All implementation is still missing.

R=floitsch@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//148883009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32274 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-04 09:23:38 +00:00
floitsch@google.com 0c8ac24661 Isolate.spawn{Uri} only reports errors asynchronously.
It is generally considered bad style to throw synchronous and asynchronous errors. This CL catches all synchronous errors and reports them in the asynchronous future that is returned.

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

Review URL: https://codereview.chromium.org//88783002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31131 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-13 13:05:28 +00:00
whesse@google.com 152cf1e3fe Mark failing dart2js_extra isolate test on chromeOnAndroid platform. Mark two flaky tests with timeouts.
BUG=dartbug.com/14458
R=kustermann@google.com

Review URL: https://codereview.chromium.org//113943002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31096 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-12 14:24:06 +00:00
kustermann@google.com e898028b18 Attempt to deflake our status files
R=whesse@google.com

Review URL: https://codereview.chromium.org//109893004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31022 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 15:37:34 +00:00
floitsch@google.com a03ce2ad10 Make the global port a "weak" port.
We could have just removed all references to the lazyPort, but this CL
prepares for using the lazyPort as controlPort.

BUG= http://dartbug.com/14461
R=lrn@google.com, ngeoffray@google.com

Review URL: https://codereview.chromium.org//102473004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30938 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 09:31:59 +00:00
floitsch@google.com c38ca34d79 Update status file.
Review URL: https://codereview.chromium.org//95263003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30763 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-28 15:24:53 +00:00
floitsch@google.com f23edaae4d Clean up isolate tests.
R=kustermann@google.com

Review URL: https://codereview.chromium.org//92223003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30761 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-28 14:36:25 +00:00
kustermann@google.com 90eddd0cee Mark isolate/isolate2_negative_test as passing on the analyzer
R=floitsch@google.com

Review URL: https://codereview.chromium.org//91953002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30722 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 16:04:42 +00:00
floitsch@google.com 0cf3a346b4 Fix isolate test.
R=kustermann@google.com

Review URL: https://codereview.chromium.org//91703002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30719 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-27 15:11:36 +00:00
lrn@google.com d4394ccdc1 Make isolate tests work on drt (and hopefully dartium).
The current isolate tests don't work in drt/dartium because the
DOM isolate can't use Isolate.spawnFunction.

To avoid this problem, this change makes the affected tests start out
by doing an Isolate.spawnUri with their own main file, therevy running the test
in a non-DOM isolate. The test results are propagated back to the original
isolate.

I haven't been able to test dartium yet. I might be missing Selenium.

BUG= http://dartbug.com/14626
R=floitsch@google.com

Review URL: https://codereview.chromium.org//70103014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30610 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 08:19:53 +00:00
lrn@google.com 2a63af9099 Add RawReceivePort to dart2js.
BUG= http://dartbug.com/14456
R=floitsch@google.com, ngeoffray@google.com

Review URL: https://codereview.chromium.org//70263002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30456 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 10:36:41 +00:00
lrn@google.com ed814958fc Fix VM not accepting static methods for Isolate.spawn.
BUG= http://dartbug.com/3011

Committed: https://code.google.com/p/dart/source/detail?r=30300

R=iposva@google.com

Review URL: https://codereview.chromium.org//68813002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30442 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 09:14:30 +00:00
lrn@google.com ab18829ae4 Revert "Fix VM not accepting static methods for Isolate.spawn."
Comitted by mistake.

Review URL: https://codereview.chromium.org//73893004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30301 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 11:23:47 +00:00
lrn@google.com b0e40ddc70 Fix VM not accepting static methods for Isolate.spawn.
BUG= http://dartbug.com/3011

Review URL: https://codereview.chromium.org//68813002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30300 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-15 10:28:32 +00:00
floitsch@google.com 56c59b638c Fix warning in mandel_isolate_test.
BUG= http://dartbug.com/14782
R=kustermann@google.com

Review URL: https://codereview.chromium.org//61233002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29944 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 23:24:50 +00:00
scheglov@google.com c3e489730f Issue 14452. Fix for skipping 'final' modifier in function expression parameters.
https://code.google.com/p/dart/issues/detail?id=14452

R=brianwilkerson@google.com, jwren@google.com
BUG=

Review URL: https://codereview.chromium.org//57383007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29838 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 19:13:35 +00:00
floitsch@google.com ecb4291d96 Remove deprecated second argument to SendPort.send().
R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//51393004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29836 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 19:01:11 +00:00
kustermann@google.com 59f34542e2 Removed status file entries which refer to non-existent tests
R=fschneider@google.com

Review URL: https://codereview.chromium.org//56123009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29811 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 15:28:44 +00:00
floitsch@google.com 5375bc79ad Remove SendPortSync and ReceivePortSync.
R=vsm@google.com

Review URL: https://codereview.chromium.org//56153005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29778 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 23:13:21 +00:00
rmacnak@google.com 81af1a5ea1 Raise an exception instead of crashing when attempting to pass a MirrorReference between isolates.
Fix warnings in isolate illegal values tests.

BUG=http://dartbug.com/14584
R=asiva@google.com

Review URL: https://codereview.chromium.org//51393002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29694 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 20:36:32 +00:00
regis@google.com 66c9d75971 Fix analyzer status file.
Review URL: https://codereview.chromium.org//53863002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29616 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 00:54:47 +00:00
regis@google.com 3fa7a61efc Implement latest spec changes regarding malformed types (see issue 14006):
- a malformed type used in a is, as, or catch type test results in a dynamic
  type error being thrown.
- a malformed type is not mapped to dynamic anymore.

For now, this applies to type tests in checked mode as well, but discussion is
still on-going.

R=hausner@google.com

Review URL: https://codereview.chromium.org//53583003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29608 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 23:30:32 +00:00
kustermann@google.com 94ebff2225 Bugfix in test.dart, adding of specialized test outcomes for analyzer
This CL will:
 - fix a bug in the legacy AnalyzerCommandOutputImpl class (in certain cases
   we did not report that the analyzer was missing a warning).
 - make the outcome of running the analyzer on a test be one of:
   * CompileTimeError
   * MissingCompileTimeError
   * StaticWarning
   * MissingStaticWarning
 - Make status file updates using the new Expectation markers
 - Remove support for '@static-clean':
     Previously running the analyer on a test could either result in
     'Pass' or in 'Fail'. The '@static-clean' annotation has been used
     as a (poor) mechanism to distinguish between errors and warnings.
     Having the 4 markers mentioned above means we can remove '@static-clean'
 - Remove 100 lines of rotted legacy code in our testing scripts.
 - Make a status file entry for every test that has analyzer errors or warnings

R=ricow@google.com

Review URL: https://codereview.chromium.org//46163002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29350 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 10:39:38 +00:00
vsm@google.com c5d691f64c Status fix for Dartium bots
TBR=asiva@google.com,floitsch@google.com

Review URL: https://codereview.chromium.org//46183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29301 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 23:30:52 +00:00
floitsch@google.com 93cdda2d69 Fix bad type.
Review URL: https://codereview.chromium.org//45473002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29286 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 20:51:05 +00:00
floitsch@google.com ffccd42cae Update status files.
Review URL: https://codereview.chromium.org//38563003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29285 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 20:47:52 +00:00
floitsch@google.com dcac807c32 Status file updates.
Review URL: https://codereview.chromium.org//45433002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29284 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 20:40:29 +00:00