Commit Graph

46 Commits

Author SHA1 Message Date
ajohnsen@google.com 0d078037e2 Re-apply 'Unify dart:isolate.' with fixes for autogenerated dart2js and dartium html files.
Old Review URL: https://chromiumcodereview.appspot.com//10828410

BUG=

Review URL: https://chromiumcodereview.appspot.com//10828411

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11084 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 18:47:43 +00:00
vsm@google.com 9259b263fd Support general serializing of functions between JS and Dart
Anton: This expands on your earlier CL.  Do you mind taking a look?

Review URL: https://chromiumcodereview.appspot.com//10834426

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11066 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 15:59:54 +00:00
ajohnsen@google.com 8f80365139 Revert "Unify dart:isolate."
This reverts commit 73190457cfff717e2706dd4715841f23a35d9ce7.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10827436

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11017 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 08:22:05 +00:00
ajohnsen@google.com 5f4a0a2696 Unify dart:isolate.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10828410

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11016 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 07:52:51 +00:00
antonm@google.com 0e9ad86574 Move function serialization to sync ports.
For now only dart to JS serialization.

R=sammccall@google.com,vsm@google.com

Review URL: https://chromiumcodereview.appspot.com//10690142

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10750 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 16:58:36 +00:00
iposva@google.com 58ea95081d - Add source gypis in preparation for unification of shared sources.
Review URL: https://chromiumcodereview.appspot.com//10854109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10552 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 07:08:08 +00:00
sigmund@google.com 1d950db569 Add Timer implementation for dart2js. Also moves tests to appropriate location.
Review URL: https://chromiumcodereview.appspot.com//10830230

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10460 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:58:07 +00:00
ager@google.com 4531c0c770 Remove old isolate API and update all code in the repository to use
the new API.

R=kasperl@google.com,sigmund@google.com,turnidge@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10837070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10210 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:24:29 +00:00
ager@google.com 250b0b6e87 Cleanup isolate library after frog removal.
Remove parts only used by frog and rename.

R=kasperl@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10843007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10051 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 11:17:48 +00:00
vsm@google.com d14ba572e8 Add support for JS->Dart and Dart->dart via *PortSync.
Review URL: https://chromiumcodereview.appspot.com//10695111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9427 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 08:09:58 +00:00
kasperl@google.com 7c7246fd2e First experimental steps towards a better story for JS interop.
R=vsm@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10700101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9387 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 08:54:25 +00:00
kasperl@google.com 3ea4838992 Refactor the message serialization code a bit so we can start playing with it for JS interop purposes.
R=vsm@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10696091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9383 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 05:58:03 +00:00
devoncarew@google.com fd763428df Add Timer references to the isolate_compiler.dart version of the isolate library.
Review URL: https://chromiumcodereview.appspot.com//10698071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9306 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 18:05:11 +00:00
zundel@google.com 1ab5009ca2 The file isolte_runtime.dart was only used by the analyzer, and now it is no longer in use
Review URL: https://chromiumcodereview.appspot.com//10700062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9301 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 17:00:02 +00:00
ahe@google.com 7b31e54ab7 Implement override checks.
First attempt committed as: https://code.google.com/p/dart/source/detail?r=9108

Review URL: https://chromiumcodereview.appspot.com//10575033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9151 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 09:07:36 +00:00
johnniwinther@google.com e7fea7af1b Copy of html_frog added to dartdoc/frog/lib
Build uses dart2js.bat on Windows

BUG=3775
TEST=

Review URL: https://chromiumcodereview.appspot.com//10662048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9149 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 06:44:24 +00:00
antonm@google.com 38bf8c295b Revert "Implement override checks."
TBR=ahe@google.com

Review URL: https://chromiumcodereview.appspot.com//10666052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9112 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 14:36:00 +00:00
ahe@google.com 7f2041bf11 Implement override checks.
Review URL: https://chromiumcodereview.appspot.com//10575033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9108 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 12:51:55 +00:00
antonm@google.com df9f498293 Remove Dart body for a native method.
R=ahe@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10626016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9058 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 10:20:46 +00:00
iposva@google.com 0fd25118b9 - Move the Timer interface to the dart:isolate library so that it
is accessible from both client and standalone program.
- Enable a way for the embedder to provide the implementation of
  the Timer interface.
- Update tests.
Review URL: https://chromiumcodereview.appspot.com//10532123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8987 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:17:21 +00:00
ahe@google.com cbb19e240d Remove support for String operator + from dart2js.
Review URL: https://chromiumcodereview.appspot.com//10553007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8778 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 11:03:25 +00:00
floitsch@google.com 4a261ae4b4 rename _lazy_port to _lazyPort.
and rename all references.

Review URL: https://chromiumcodereview.appspot.com//10540139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8600 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 10:46:01 +00:00
floitsch@google.com 8447920e11 Create an initial port.
Review URL: https://chromiumcodereview.appspot.com//10536118

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8599 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 10:39:13 +00:00
floitsch@google.com af0fbc6d5f Give static functions that have a getter a name.
This is necessary so we can use them in spawnFunction.

Fixes issue 3244.

Review URL: https://chromiumcodereview.appspot.com//10539104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8540 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 11:49:12 +00:00
vsm@google.com 9be4ac00ed Move dart:dom to dart:dom_deprecated
Brian: Can you please look at the editor / dartc changes?

Bob: Can you look at the apidoc changes?

Stephen/Pavel: Can you guys look at the rest?

Pavel: I will update, test, and land your Dartium CL along with this change.

Review URL: https://chromiumcodereview.appspot.com//10389097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7587 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-13 04:10:43 +00:00
sra@google.com f627889577 Fix codegen and isolate issues for frog dart:html
Fixes issue 2835.

dart:html now partakes in the logic that wraps functions that smell
like call-backs in the isolate-management code.

Support 2-arg callbacks.

Delete special (and buggy) handling of global variables in 'native'
libraries.  We don't have any real 'native' global variables.

Review URL: https://chromiumcodereview.appspot.com//10264021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7174 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 00:39:25 +00:00
sigmund@google.com 61c3c262e7 isolate-leg: fix typo in type signature.
Review URL: https://chromiumcodereview.appspot.com//10174022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7030 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 16:55:03 +00:00
sigmund@google.com 24ab87d445 isolate: fix how we get the current script now that frog automatically wraps the
app to run on DOMContentLoaded.

Review URL: https://chromiumcodereview.appspot.com//10050035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6959 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 18:07:36 +00:00
sigmund@google.com 1087154630 fix bug in isolate code, reenable isolate tests
Review URL: https://chromiumcodereview.appspot.com//9967024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6375 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 18:43:27 +00:00
floitsch@google.com 9d3ea53f2b Fix some warnings.
Partially fixes Issue 2142

Review URL: https://chromiumcodereview.appspot.com//9963029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6119 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-03 09:42:27 +00:00
eub@google.com d45d042345 Refactor, rename, and generally rationalize code in the Frog isolates library,
in particular de-overloading the word "worker", in preparation for adding
iframe-based isolate managers.
Review URL: https://chromiumcodereview.appspot.com//9662024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6004 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-29 22:02:38 +00:00
zundel@google.com e5ca48a7d5 Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries
Adds a new cmdline flags

--dart-sdk to point it at a directory where the dart library files are staged
--platform the name of the platform {dartium, vm, frog, dart2js}
to target with the analyzer

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

Review URL: https://chromiumcodereview.appspot.com//9860009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5930 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 14:20:29 +00:00
zundel@google.com 1486f2602d Revert "Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries"
This reverts commit r5885 which works locally, but not on the builder

Review URL: https://chromiumcodereview.appspot.com//9865025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5886 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 17:04:03 +00:00
zundel@google.com b838d39acb Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries
Adds a new cmdline flags

--dart-sdk to point it at a directory where the dart library files are staged
--platform the name of the platform {dartium, vm, frog, dart2js}
to target with the analyzer

Review URL: https://chromiumcodereview.appspot.com//9860009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5885 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 16:25:54 +00:00
ngeoffray@google.com 533d2cdcfe Add support for capturing and changing the current isolate in the closure wrapper.
Review URL: https://chromiumcodereview.appspot.com//9702074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5638 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-19 11:06:42 +00:00
ngeoffray@google.com 80728eb9c8 Remove the leg-specific uri file, originally added because we did not handle compike-time constants fully.
Review URL: https://chromiumcodereview.appspot.com//9700095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5612 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-17 09:56:51 +00:00
turnidge@google.com e61a02c10d Implement spawnFunction from the new isolate api.
Still need to implement spawnUri, which will be the more difficult one.
Review URL: https://chromiumcodereview.appspot.com//9691005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5441 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 22:05:08 +00:00
ngeoffray@google.com 4c77fe620f Enable isolate tests with leg and legium.
Review URL: https://chromiumcodereview.appspot.com//9677019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5411 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 15:44:30 +00:00
sigmund@google.com 2b5952ac6c SendPort + ReceivePort changes:
- document what are valid messages in SendPort.send
- change SendPort.call to return a future of the reply
- remove ReceivePort.singleShot

Review URL: https://chromiumcodereview.appspot.com//9652001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5368 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 22:52:36 +00:00
ngeoffray@google.com c1d3f92e1e Isolate library changes for leg support.
Review URL: https://chromiumcodereview.appspot.com//9662046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5352 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 20:05:01 +00:00
sigmund@google.com 3800841285 isolate in frog: hiding internal implementation classes, couple minor fixes.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9562048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4900 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 21:01:23 +00:00
sigmund@google.com d8ce30211e fix bot: add missing definition in isolate lib for dartc.
Review URL: https://chromiumcodereview.appspot.com//9527006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4733 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 02:19:11 +00:00
sigmund@google.com 643b772a61 isolates: remove Isolate2 interface, add the top-level spawning functions, add more comments, adapt tests to this API.
Review URL: https://chromiumcodereview.appspot.com//9521007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4729 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 00:54:15 +00:00
sigmund@google.com 0c7cc5be1e spawnUri: fixing test with recent support for multi-script tests.
Review URL: https://chromiumcodereview.appspot.com//9478027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4726 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 21:53:53 +00:00
eub@google.com 1ace2955e2 Add some magic to _getJSFunctionName so it will work in Internet Explorer.
Review URL: https://chromiumcodereview.appspot.com//9416119

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4650 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 23:41:24 +00:00
sigmund@google.com ee6a907611 isolates refactor: this change introduces 'dart:isolate' as a library. This is a
big global change, so let me explain in more detail. This refactoring CL does
the following:
- moves all the dart code for isolates in a common library (lib/isolate)

- changes frog to understand 'dart:isolate' imoprts by loading the code from the
  location above.

- changes the vm to undernstand 'dart:isolate' imports by creating a separate
  library that is part of the bootstrap. This follows the same code-structure
  that Todd suggested in his CL introducing the mirror library

- changes dartc to use the shared isolate library as the source of truth for
  type checking. I left around some of the internal js code in dartc so that the
  backend continues to work for apps that don't use isolates.

- changes all tests that use isolates to import the library explicitly (this is a large bulk of the files in this CL)

- changes test status for tests we can't fix in this repo (e.g. co19)

- splits the isolate library code to make it possible to preserve some tests
  without exposing internal types (e.g. tests about
  serialization/deserialization)

- changes the create_sdk script to copy the isolate library to the sdk

- includes the isolate library in dartdoc

I'll wait for at least one lgtm from each area (dartc, vm, frog, sdk)

There is one important pending thing this CL doesn't do:
- update test_runner.dart: This should be updated next time we upload the new
  binaries to tool/testing/bin
- dartium specific changes: Vijay, is there anything I need to do for dartium?

Review URL: https://chromiumcodereview.appspot.com//9422019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4647 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 22:50:44 +00:00