Commit graph

7280 commits

Author SHA1 Message Date
Sigurd Meldgaard 0aef0efb6a Introduce the "Embedded" category.
It is not visible from the dart2js command line.

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

Review URL: https://codereview.chromium.org/1395863002 .
2015-10-09 13:08:26 +02:00
Terry L. Lucas 2bd3d32181 Updated _blink_dartium.dart needed to prefix a type namespace
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1394363002 .
2015-10-08 14:20:02 -07:00
Terry L. Lucas 78658b3a88 Hide the accessors for bad custom element upgrade
TBR=alanknight@google.com,jacobr@google.com

Review URL: https://codereview.chromium.org/1397793002 .
2015-10-08 10:27:51 -07:00
Søren Gjesse 1f652b320c Fix bug in previous commit
TBR=lrn@google.com
BUG=

Review URL: https://codereview.chromium.org/1400453004 .
2015-10-08 19:19:30 +02:00
Søren Gjesse 7c0688a5c6 Ensure ZILB encoder handles all typed data lists correctly
R=ajohnsen@google.com, lrn@google.com
BUG= https://github.com/dart-lang/sdk/issues/24521

Review URL: https://codereview.chromium.org/1393013002 .
2015-10-08 18:19:02 +02:00
Terry L. Lucas 0a254bab8d Update to get latest changes to WebKit
TBR=jacobr@google.com,alanknight@google.com

Review URL: https://codereview.chromium.org/1389163005 .
2015-10-08 06:46:55 -07:00
Alan Knight c92a2450b4 Switch dart:html objects not to be NativeFieldWrapper subclasses with JsInterop
BUG=

Review URL: https://codereview.chromium.org/1392723003 .
2015-10-07 17:42:39 -07:00
Stephen Adams 5265eeebaa Use interceptors for is-checks (version 2).
Use the $isXXX properties for type tests on raw (non-parameterized) types.

Use special builtin operations for the weird JSArray type hierarchy.

Still TODO:

If the only use of an interceptor is a single 'getInterceptor(value).$isXXX', and XXX is not a supertype of a native type, replace with 'value instanceof XXX'.

R=kmillikin@google.com

Committed: 3b4e12f00b

Reverted: 89b6d8e749

Review URL: https://codereview.chromium.org/1385423002 .
2015-10-07 17:06:57 -07:00
Sam Rawlins fb7d871428 Formatting comments for mirrors (MirrorSystem, IsolateMirror, DeclarationMirror, and ObjectMirror)
BUG=https://github.com/dart-lang/sdk/issues/24505
R=lrn@google.com

Review URL: https://codereview.chromium.org/1383403002 .
2015-10-07 16:48:48 -07:00
Sam Rawlins e928812e27 Format doc comments in mirrors, lines 480 through 1160
BUG=https://github.com/dart-lang/sdk/issues/24505

Review URL: https://codereview.chromium.org/1390813002 .
2015-10-07 16:41:58 -07:00
Stephen Adams 89b6d8e749 Revert "Use interceptors for is-checks (version 2)."
Need to fix some analyzer warnings.

TBR=kmillikin@google.com

Review URL: https://codereview.chromium.org/1396663002 .
2015-10-07 16:29:11 -07:00
Stephen Adams 3b4e12f00b Use interceptors for is-checks (version 2).
Use the $isXXX properties for type tests on raw (non-parameterized) types.

Use special builtin operations for the weird JSArray type hierarchy.

Still TODO:

If the only use of an interceptor is a single 'getInterceptor(value).$isXXX', and XXX is not a supertype of a native type, replace with 'value instanceof XXX'.

R=kmillikin@google.com

Review URL: https://codereview.chromium.org/1385423002 .
2015-10-07 15:47:25 -07:00
Terry L. Lucas c9b553aad1 Fixed upgrade failures to only throw once not on each wrap_jso
R=alanknight@google.com
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1395723002 .
2015-10-07 14:37:24 -07:00
Jacob Richman 1f9516ba0b Fix some build breaks.
Fix test breaks

Roll dep forward to fix windows build.

Dartium typed js interop work dart repo side of the change. Also tries to get

BUG=

Review URL: https://codereview.chromium.org/1390113003 .
2015-10-07 13:47:12 -07:00
John McCutchan c9334ed61f Fix analyzer warnings in dart:_vmservice
BUG=

Review URL: https://codereview.chromium.org/1397593002 .
2015-10-07 13:31:29 -07:00
John McCutchan 4831a1a315 Properly split dart:_vmservice across sdk and runtime
- This is needed to satisfy the GN build system (mojo, flutter).
- It also makes dart:_vmservice even more regular with othe rlibraries.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1396603002 .
2015-10-07 13:19:55 -07:00
Jacob Richman 8d793ca758 Dartium typed js interop work dart repo side of the change. Also tries to get
BUG=

Review URL: https://codereview.chromium.org/1391353002 .
2015-10-07 11:44:50 -07:00
Matthias Hausner 11965d24e6 Move super initializers to end of list
Avoid two-phase super constructor call chain in a couple
of library constructors.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1393033002 .
2015-10-07 11:05:26 -07:00
John McCutchan 51840587fc Remove remaining references to dart:profiler
BUG=

Review URL: https://codereview.chromium.org/1393833004 .
2015-10-07 10:27:48 -07:00
John McCutchan 535a9715ac Remove deprecated dart:profiler library
Fixes #24510

R=turnidge@google.com

Review URL: https://codereview.chromium.org/1398433002 .
2015-10-07 10:01:33 -07:00
Alan Knight 9ad57e7aa3 Fix Crypto.getRandomValues to modify its argument, fix tests
BUG=

Review URL: https://codereview.chromium.org/1387273002 .
2015-10-07 09:11:14 -07:00
Terry L. Lucas ff5d07a4e9 Fixed few more issues with upgrader and custom event identitiy
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1391273002 .
2015-10-07 08:53:31 -07:00
Harry Terkelsen 2a053a9441 fix typo in dart:core.Map docs
BUG=
R=skybrian@google.com

Review URL: https://codereview.chromium.org/1393713002 .
2015-10-06 19:03:24 -07:00
Terry L. Lucas f867fb0218 Fixed element upgrading for polymer
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1382383003 .
2015-10-06 13:11:23 -07:00
Seth Ladd 7b18bc7e14 clearly mark resource as deprecated
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/1385933002 .
2015-10-06 09:08:11 -07:00
Soren Gjesse 33e2d9cd7e Increase the datagram receive buffer on Windows to 64k
A datagram can can be up to 64k, and if the buffer is too small the received data is truncated.

This change also correctly handles errors when receiving datagrams on Windows.

BUG= #24426
R=kustermann@google.com, iposva@google.com

Review URL: https://codereview.chromium.org/1381233003.
2015-10-06 08:42:51 +02:00
Terry L. Lucas ecfad36ac7 Fixed custom elements to work in Polymer
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1389683002 .
2015-10-05 08:55:52 -07:00
Søren Gjesse 65872873d2 Remove server socket references
The use of server socket references was deprecated in 1.9 and marked
for removal in 1.10.

R=kustermann@google.com

BUG=http://dartbug.com/22187

Review URL: https://codereview.chromium.org/1072783003 .
2015-10-05 12:25:20 +02:00
Lasse R.H. Nielsen da8baacae4 Make root-zone handleUncaughtError rethrow with the correct stack.
Adds _rethrow function which reifies the stack trace of an async
error on the VM. There is no corresponding JS functionality, it still
just throws an AsyncError wrapper.

Fixes issue #24163
BUG= http://dartbug.com/24163
R=iposva@google.com, turnidge@google.com

Review URL: https://codereview.chromium.org//1383983002.
2015-10-05 08:16:52 +02:00
Ivan Posva a1f0a52c4f - Fix build: Make sure that external methods are patched in dart2js.
BUG=

Review URL: https://codereview.chromium.org/1389533002 .
2015-10-03 07:24:38 -07:00
Ivan Posva ba6c0ace3e - Add getters for the current packageRoot or packageMap to the Isolate class.
- Simplify loading in builtin.dart.

BUG=
R=asiva@google.com, lrn@google.com

Review URL: https://codereview.chromium.org//1334353002 .
2015-10-03 06:53:13 -07:00
Alan Knight 110b579b8a wrap_jso should wrap JsArray as well, not always call wrap on its contents
BUG=

Committed: f0e52e4e91

Review URL: https://codereview.chromium.org/1383903002 .
2015-10-02 12:48:06 -07:00
Alan Knight da7d6379cc Revert "wrap_jso should wrap JsArray as well, not always call wrap on its contents"
This reverts commit f0e52e4e91.

BUG=

Review URL: https://codereview.chromium.org/1378183003 .
2015-10-01 17:51:51 -07:00
Alan Knight f0e52e4e91 wrap_jso should wrap JsArray as well, not always call wrap on its contents
BUG=

Review URL: https://codereview.chromium.org/1383903002 .
2015-10-01 16:22:17 -07:00
Stephen Adams bd11810f98 Fix bug in dart2js developer_patch.dart
TBR=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1383883002 .
2015-10-01 15:17:42 -07:00
Alan Knight eafe9d6b60 Make the dartWrapper access on JsObject private and provide top-level functions for it
BUG=
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1369263004 .
2015-10-01 15:10:48 -07:00
Alan Knight 07b2ddd401 Preserve identity of Dart wrappers on DOM objects
BUG=

Review URL: https://codereview.chromium.org/1380963003 .
2015-10-01 14:04:01 -07:00
John McCutchan 364f6ac601 Fix error caught by analyzer
BUG=

Review URL: https://codereview.chromium.org/1371353003 .
2015-10-01 10:50:22 -07:00
John McCutchan 03b41129a2 Add Timeline to dart:developer
- This CL only adds support for synchronous blocks of time. A follow up CL will add asynchronous blocks of time.
- Reports true thread id to tracing system. This is an improvement over Mojo's tracing helper.
- Dart events are included in individual isolate traces and global traces obtained via the embedders API.
- Dart events are included in the write to disk path (--timeline_dir).

R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1377663002 .
2015-10-01 09:30:47 -07:00
Alan Knight 59bd28d8cf Revert "Preserve identity on wrap_jso hack. Has known failures"
This reverts commit e65577e4aa.

BUG=

Review URL: https://codereview.chromium.org//1380603004 .
2015-09-30 17:50:54 -07:00
Alan Knight e65577e4aa Preserve identity on wrap_jso hack. Has known failures
BUG=

Review URL: https://codereview.chromium.org//1382483003 .
2015-09-30 13:39:03 -07:00
Seth Ladd ab5af73d75 add JsonCode example
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org//1376043002 .
2015-09-30 11:02:02 -07:00
Alan Knight 8f8d9e7180 Revert "Cache all wrap_jso results so we preserve identity"
This reverts commit fd52ed572f.

BUG=

Review URL: https://codereview.chromium.org//1374683004 .
2015-09-29 17:18:03 -07:00
Alan Knight fd52ed572f Cache all wrap_jso results so we preserve identity
BUG=

Review URL: https://codereview.chromium.org//1376083002 .
2015-09-29 16:41:38 -07:00
Lasse R.H. Nielsen eb763f941d Fix typos in base64.dart
Review URL: https://codereview.chromium.org//1377843003.
2015-09-29 16:34:29 +02:00
Lasse R.H. Nielsen bd4c7a8a07 Add Base64 codec to dart:convert.
This is a simple converter that only accepts and produces plain base-64 strings
with the default alphabet and no whitespace.

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

Review URL: https://codereview.chromium.org//1370073002 .
2015-09-29 13:49:53 +02:00
Terry L. Lucas 138888e566 Need to handle skipping mixins in a CustomElement
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1368383002 .
2015-09-28 07:29:14 -07:00
Terry L. Lucas 40fed74848 Fixed checking for more complex inheritance
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1374543002 .
2015-09-27 21:09:34 -07:00
Terry L. Lucas 3ce007e910 Fixed a bunch of failure cases for custom elements
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org//1373563004 .
2015-09-25 15:12:08 -07:00
Alan Knight 1b80b9013e Make sure we short-circuit the second corruption test, it might be crashing firefox
BUG=

Review URL: https://codereview.chromium.org//1371543002 .
2015-09-24 16:45:08 -07:00