sgjesse@google.com
0365cf42d0
Refactored thread pool
...
The thread pool has been refactored to hold all implementation state
in the ThreadPool class and have all internal state protected by a
single monitor.
Added support for starting and stopping the same pool several
times. When stopping the queue can be drained or not.
Added two tests which handles messages.
This change is based on https://chromiumcodereview.appspot.com/9141005/ .
R=iposva@google.com , ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9212043
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4181 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 12:05:08 +00:00
floitsch@google.com
1d0e85ffb6
Support anonymous functions.
...
Review URL: https://chromiumcodereview.appspot.com//9378008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4179 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 09:43:32 +00:00
sgjesse@google.com
18743ce4fb
Fix kqueue handling of no timeout
...
Using a tiemout value of 0 when there was no timeout caused busy
looping int the eventhandler thread as that actually ment
immediate timeout. No timeout is specified using NULL.
BUG=dart:1641
R=iposva@google.com
TEST=
Review URL: https://chromiumcodereview.appspot.com//9350034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4176 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 09:16:57 +00:00
vsm@google.com
45b5d7b750
Mark broken test
...
TBR=cshapiro
Review URL: https://chromiumcodereview.appspot.com//9379042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4172 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 02:29:13 +00:00
srdjan@google.com
c95d58ef9f
Intrinsify InternalByteArray's get_length and [].
...
Disallow intrinsification of non-corelib methods. Recognize private classes for intrinsification.
Review URL: https://chromiumcodereview.appspot.com//9383004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4171 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-12 07:10:09 +00:00
sra@google.com
15976d2f7f
Let EventTarget be a base class in the frog dom.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9381030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4166 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 09:57:06 +00:00
cshapiro@google.com
e8f396df7e
Add external byte array API and finalize external strings and byte arrays.
...
This change adds peer and callback arguments to the external byte array
constructor and moves the peer, callback, and data storage into a VM
peer object. At construction time, a weak persistent handle and VM
callback is associated with the VM peer. The VM callback will delete
the VM peer and invokes the user callback to reclaim the user peer.
This change also activates the callback support for the various classes of
external strings.
Review URL: https://chromiumcodereview.appspot.com//9368049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4164 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 04:34:44 +00:00
sigmund@google.com
d6cd18f200
safari fix: disable tests there temporarily.
...
Review URL: https://chromiumcodereview.appspot.com//9382030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4163 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 01:56:39 +00:00
sigmund@google.com
86a7b562c1
another fix for ie.
...
Review URL: https://chromiumcodereview.appspot.com//9385032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4161 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 01:15:43 +00:00
nweiz@google.com
2d1381dec6
Add a script to parse and dump DOM -> HTML mapping information as JSON.
...
TBR
Review URL: https://chromiumcodereview.appspot.com//9385029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4160 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 01:13:41 +00:00
hausner@google.com
4d3a5f658a
Add PC descriptor for ret instruction
...
Adding a new kind of PcDescriptor to mark the location of
function returns in generated code. This will be needed to
put a single-step breakpoint just before the function return.
Also adding a NOP instruction after the ret, so that the
function return code pattern adds up to 5 bytes, which is needed
to patch in a breakpoint call.
Review URL: https://chromiumcodereview.appspot.com//9385022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4159 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 01:02:09 +00:00
sigmund@google.com
1389d98799
add .status changes to fix ie
...
Review URL: https://chromiumcodereview.appspot.com//9379030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4157 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-11 00:15:41 +00:00
sigmund@google.com
bd70f7de56
fix bot: skip dartc tests on the new API (not yet added to corelib)
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9383022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4155 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 23:57:48 +00:00
dgrove@google.com
731387795c
Move client/{base, observable, layout, touch, util, view} to samples/ui_lib .
...
Review URL: http://codereview.chromium.org//9382027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4154 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 23:44:48 +00:00
sigmund@google.com
2276d0e7bf
isolates in frog: playing with API improvements
...
Review URL: https://chromiumcodereview.appspot.com//9358010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4153 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 23:44:36 +00:00
vsm@google.com
3424aff746
Fix status files for Dartium Debug
...
TBR=antonm
Review URL: https://chromiumcodereview.appspot.com//9378027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4152 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 22:44:51 +00:00
dgrove@google.com
8aa173dc7e
Eliminate client/json, since we now have lib/json.
...
Review URL: http://codereview.chromium.org//9384021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4151 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 22:15:52 +00:00
vsm@google.com
f2b2e79840
Move Dromaeo to third_party.
...
See LICENSE and README. I also updated html files to point to dart.js.
Review URL: https://chromiumcodereview.appspot.com//9374026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4149 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 22:08:58 +00:00
sigmund@google.com
40fcc40fd3
isolate lib: small refactor to distinguish protocols at the port level
...
Review URL: https://chromiumcodereview.appspot.com//9317068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4148 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 22:09:48 +00:00
efortuna@google.com
f66efa33c3
Fix language.status for ToStringAsFixed under frog (instead of frogsh).
...
Review URL: https://chromiumcodereview.appspot.com//9379020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4147 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 21:54:08 +00:00
jmesserly@google.com
e44d4fe8d1
fix status of IsolateNegativeTests on IE
...
They were being skipped already on other browsers. Appear to be flaky.
Review URL: https://chromiumcodereview.appspot.com//9382023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4145 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 21:04:17 +00:00
danrubel@google.com
b994d9d930
Optimize clone operation
...
Review URL: https://chromiumcodereview.appspot.com//9370016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4143 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 20:17:11 +00:00
dgrove@google.com
6c1015eb70
Fix issue 1615 . Because frog doesn't really produce an artifact,
...
sdk depends directly on frog.
In the near future, I'll make the sdk depend directly on all of the
files in libraries that it includes, as well.
Review URL: http://codereview.chromium.org//9379015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4138 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 19:19:08 +00:00
iposva@google.com
242a784291
- Revert r4135: va_copy is not available everywhere.
...
Review URL: https://chromiumcodereview.appspot.com//9381009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4136 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 17:08:22 +00:00
iposva@google.com
431e8329bb
Fix http://dartbug.com/1133 :
...
- Incrementally concat error messages to avoid hitting
a maximum error message size.
Review URL: https://chromiumcodereview.appspot.com//9334007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4135 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 16:59:41 +00:00
podivilov@google.com
3fb3393e53
Draft implementation of c++ bindings generation.
...
Generate stubs for all c++ files.
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//9316096
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4133 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 14:54:32 +00:00
ager@google.com
4b8a31e201
Set SO_LINGER on sockets on windows.
...
Uncovered by fixed Socket tests.
R=sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9381003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4132 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 12:41:13 +00:00
whesse@google.com
269d5ee237
Remove tools/test_wrapper.py. test.py is now a wrapper for test.dart.
...
BUG=dart:1036
TEST=
Review URL: https://chromiumcodereview.appspot.com//9379003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4129 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 11:56:34 +00:00
ager@google.com
25a81afab6
Fix type warning.
...
R=sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9384001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4128 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 11:10:15 +00:00
ager@google.com
ac5c191683
Another attempt at fixing the Socket tests.
...
The tests did not wait for the server isolate to finish before
exiting the main isolate.
The tests did not correctly count the number of bytes received on
the server-side. We have to count bytes per connection.
There were issues with close handlers being confused for timeouts.
R=sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9382001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4127 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 11:00:15 +00:00
ager@google.com
bbaf8a3665
Implement condition variables on Windows on top of Event/SetEvent/ResetEvent.
...
ConditionVariable is only available since Vista so to support XP
we need to implement this ourselves.
R=asiva@google.com ,sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9361036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4126 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 10:50:25 +00:00
ngeoffray@google.com
8af8d85936
Support is checks on primitive types.
...
Review URL: https://chromiumcodereview.appspot.com//9368033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4124 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 09:44:22 +00:00
srdjan@google.com
1d7d76a43b
Optimizing code generator expects that every AST node is traversed once, i.e., the nodes are not reused. Unfortunately this is not the case in assignment operations with arrays (e.g. a[i] += 3).
...
The proper solution would be to clone array and index nodes but that would require too many changes. Long term we can't / won't use AST nodes for optimization purposes.
Short term fix is here: load array and index and release their CodeGenInfo before value is traversed so that the value computation can set its own CodeGenInfo on the same node.
Review URL: https://chromiumcodereview.appspot.com//9373025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4121 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 08:30:53 +00:00
ager@google.com
aaed22d42e
Revert "Fix potential flakiness of SocketStreamCloseTest."
...
R=sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9368058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4120 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 07:06:18 +00:00
ager@google.com
4b2bfef991
Fix potential flakiness of SocketStreamCloseTest.
...
Not reading out all 5 bytes before moving on.
R=sgjesse@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9361034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4119 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 06:57:37 +00:00
sra@google.com
4a28f8aea4
Ensure 'raises' clauses on operations are saved in IDL database.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9369062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4117 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 06:18:14 +00:00
jmesserly@google.com
c0d3b1f2a0
Add opera as an option to --browser
...
Review URL: https://chromiumcodereview.appspot.com//9368056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4114 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 04:15:04 +00:00
jmesserly@google.com
9918d69710
Update Opera status
...
For now tests are disabled on the bot while we get it working.
Review URL: https://chromiumcodereview.appspot.com//9371037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4109 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 01:54:29 +00:00
jmesserly@google.com
9df182bc5f
fix status of ExecuteFinally6Test
...
Review URL: https://chromiumcodereview.appspot.com//9372046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4107 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 01:28:05 +00:00
rnystrom@google.com
7b5e67b5d6
First prototype of import map generator.
...
Review URL: https://chromiumcodereview.appspot.com//9369006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4106 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 01:09:49 +00:00
efortuna@google.com
306f557107
Additional flakiness reducing changes. Also rerun DRT on false positive tests.
...
Review URL: https://chromiumcodereview.appspot.com//9368008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4104 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 00:26:52 +00:00
dgrove@google.com
866eecc34a
Move json to lib/json/{json.dart, json_frog.dart}
...
Review URL: http://codereview.chromium.org//9374030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4101 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 23:38:34 +00:00
regis@google.com
851682f104
Represent declared type parameters of a class as an array of TypeParameter
...
rather than an array of String and simplify code accordingly.
Rename the field holding type parameter bounds of a class.
Note: I retract my earlier suggestion to Srdjan to represent interfaces of a
class (as well as its canonical types) as a TypeArguments. This would require
more code to check for an empty array and for growing the array. Besides, these
are really arrays and have nothing to do with type arguments. I removed the
corresponding TODO(srdjan).
Review URL: https://chromiumcodereview.appspot.com//9368032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4096 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 21:28:53 +00:00
whesse@google.com
951ff35196
Remove stub-generation test for dartc from test.dart stub-generator.
...
All components now just compile the existing generated test files.
BUG=
TEST=tools/test.dart -cmost stub-generator --mode=debug,release
Review URL: https://chromiumcodereview.appspot.com//9371018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4089 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 16:33:51 +00:00
whesse@google.com
cdb6245f3c
Remove test_wrapper.py, replace with test.py (which calls test.dart).
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9369026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4088 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 16:14:50 +00:00
ngeoffray@google.com
99f2d91e5f
Fully support try/catch.
...
Review URL: https://chromiumcodereview.appspot.com//9370020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4084 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 15:23:49 +00:00
floitsch@google.com
0eafd4c713
Capture this.
...
Review URL: https://chromiumcodereview.appspot.com//9359011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4082 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 15:07:40 +00:00
zundel@google.com
6e9d4c1d6a
Small triage exercise after code generation removed
...
Review URL: https://chromiumcodereview.appspot.com//9371017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4081 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 15:05:06 +00:00
whesse@google.com
53f18a1e4f
Add dartdoc comments to Dart testing infrastructure.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9347023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4079 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 14:42:05 +00:00
sgjesse@google.com
ff0a266e7e
Add support for big integers to the native message format
...
Also fixed snapshotting of negative big integers.
R=asiva@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9363023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4078 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-09 14:09:03 +00:00