Vijay Menon
6402ad477d
Use the dart2js patch for dart:convert to get latest type fixes
...
BUG=
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2896253003 .
2017-05-24 07:33:19 -07:00
Bob Nystrom
4145a49503
Move Dart versions of math.min() and math.max() into VM patch file.
...
For DDC and dart2js, we call the corresponding JS function. This is
shorter and avoids a strong mode type error in the Dart implementation.
R=jmesserly@google.com , lrn@google.com
Review-Url: https://codereview.chromium.org/2858353003 .
2017-05-05 15:15:21 -07:00
Lasse R.H. Nielsen
7998f590b1
Update documentation on trignometric functions.
...
Fixes #17515
BUG= http://dartbug.com/17515
R=floitsch@google.com
Committed: https://github.com/dart-lang/sdk/commit/40220ec0766bb2b179d3623d3f298223df842279
Review-Url: https://codereview.chromium.org/2852053002 .
2017-05-03 09:49:14 +02:00
Florian Loitsch
05e0e1ea40
Revert trigonometric function updates.
...
The VM has a fingerprint on the function and failed during compilation.
Revert "Fix patch errors."
This reverts commit ff1d7488d9 .
Revert "Update documentation on trignometric functions."
This reverts commit 40220ec076 .
BUG=
Review-Url: https://codereview.chromium.org/2851163003 .
2017-05-01 16:06:56 +02:00
Florian Loitsch
ff1d7488d9
Fix patch errors.
...
Review-Url: https://codereview.chromium.org/2853813002 .
2017-05-01 15:57:40 +02:00
Bob Nystrom
7f7c681893
Fix a batch of DDC SDK compile errors.
...
R=floitsch@google.com , vsm@google.com
Review-Url: https://codereview.chromium.org/2848703003 .
2017-04-27 17:27:02 -07:00
Zachary Anderson
9ce608e89d
[dart:io] Adds ProcessInfo.{max,current}Rss. Adds OS::MaxRSS on Fuchsia.
...
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2822943002 .
2017-04-17 14:41:40 -07:00
Ben Konyi
6fbdd19ddb
Various fixes for sync socket implementation.
...
Revert "Revert "Added sync_socket.h include in sync_socket_win.cc""
This reverts commit 2bd6168e1ebf35f6dbd9b2724339362c493377fc.
Revert "Revert "Added synchronous socket implementation to dart:io.""
This reverts commit a47bce03f5502dac7fb12e777e87b5aa1cfc830b.
BUG=
R=zra@google.com
Review-Url: https://codereview.chromium.org/2814773004 .
2017-04-12 14:20:48 -07:00
Ben Konyi
b439bd9a54
Revert "Added synchronous socket implementation to dart:io."
...
This reverts commit a1f87ebdb8 .
Revert "Added sync_socket.h include in sync_socket_win.cc"
This reverts commit bdec13e865 .
BUG=
Review-Url: https://codereview.chromium.org/2812153002 .
2017-04-11 15:18:46 -07:00
Ben Konyi
a1f87ebdb8
Added synchronous socket implementation to dart:io.
...
BUG=
R=zra@google.com
Review-Url: https://codereview.chromium.org/2803543006 .
2017-04-11 14:41:09 -07:00
Zach Anderson
bc923bed16
[dart:io] Reland: Adds Platform.localeName
...
The Mac OS build broke because a typedef wasn't added until 10.12.
related #29126
Review-Url: https://codereview.chromium.org/2786183003 .
2017-03-30 13:51:46 -07:00
Zachary Anderson
e75df3cce3
Revert "[dart:io] Adds Platform.localeName"
...
This reverts commit ae6d854ec6 .
The build failed on the mac build bots. Need to investigate.
Review-Url: https://codereview.chromium.org/2791453002 .
2017-03-30 13:35:02 -07:00
Zachary Anderson
ae6d854ec6
[dart:io] Adds Platform.localeName
...
related #29126
R=fschneider@google.com
Review-Url: https://codereview.chromium.org/2785073002 .
2017-03-30 13:31:11 -07:00
Vijay Menon
ac68d598cf
Add patch code for List.filled growable param
...
Looks like a missing param doesn't break patch_sdk. I think this was a recent add.
Fixes #28508
R=jakemac@google.com , jmesserly@google.com
Review-Url: https://codereview.chromium.org/2771953004 .
2017-03-24 14:27:47 -07:00
Jennifer Messerly
13d6c5cd98
fix ddc build, adds some unsupported methods to dart:io
...
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2756463006 .
2017-03-17 16:23:52 -07:00
Jacob Richman
9484ac8bdf
Format all dart dev compiler files
...
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2752163002 .
2017-03-15 21:34:25 -07:00
Vijay Menon
338304a6c7
Fix DDC patch
...
TBR'ing to get build green.
TBR=rnystrom@google.com
Review-Url: https://codereview.chromium.org/2749703006 .
2017-03-15 09:23:49 -07:00
Jennifer Messerly
fe294f3753
unfork DDC's copy of most SDK libraries
...
There's some changes in strong mode errors we may want to follow up on.
Unforks the following: async, collection, convert, core, developer, internal, io, isolate, math, mirrors.
Does not unfork: html, indexed_db, js, js_util, svg, typed_data, web_audio, web_gl, web_sql.
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2698353003 .
2017-02-28 17:10:52 -08:00
Vijay Menon
53971cb67e
Fix Function.apply
...
Fixes #27257 .
R=alanknight@google.com , jmesserly@google.com
Review-Url: https://codereview.chromium.org/2716583006 .
2017-02-24 19:24:48 -08:00
Jacob Richman
a8c7e74424
Remove dynamic call from _LinkedHashSet. Remove some dcalls from the dart:html util library.
...
BUG=
R=alanknight@google.com , vsm@google.com
Review-Url: https://codereview.chromium.org/2666053004 .
2017-02-01 13:26:41 -08:00
Jacob Richman
f3c33b047d
Remove spurious call to captureStackTrace.
...
Just creating an Error object is sufficient on FF,
Chrome, Safari, and Edge. Note that captureStackTrace
was not supported by other browsers so those browsers
were going down the even slower path of throwing an
exception.
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2668503002 .
2017-01-30 13:30:31 -08:00
Vijay Menon
be95523221
Cleanup references to the old DDC repo
...
Reachable issues migrated over.
R=jmesserly@google.com
Review-Url: https://codereview.chromium.org/2621543004 .
2017-01-10 12:56:29 -08:00
Vijay Menon
dd16c377fb
Enable more async code on node
...
This is primarily for easier testing/repro on node which has "global",
but not "self".
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/2558133002 .
2016-12-07 10:52:04 -08:00
Bob Nystrom
aa749dbd8d
Sprinkle some types on the SDK like the static typing fairy.
...
When I'm looking at the dynamic call profiles of an internal app test,
I see a bunch coming from the SDK itself. In fact, the top five most
common dynamic call sites are in the SDK.
This fixes four of them. (The fifth is in runUnary() in Zone, and I
don't think can be made typed yet.)
R=vsm@google.com
Review URL: https://codereview.chromium.org/2542723003 .
2016-11-30 17:04:54 -08:00
Alan Knight
667fc8dbe9
Make the dart:developer library available in DDC so debugger statement works
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/2534263002 .
2016-11-29 16:13:45 -08:00
Vijay Menon
88c5dd5745
Better mirrors support for mixins and private fields
...
This is generally motivated by pageloader usage.
R=rnystrom@google.com
Review URL: https://codereview.chromium.org/2535273002 .
2016-11-29 14:00:01 -08:00
Bob Nystrom
20e402c43d
Fix type errors in math.min() and math.max().
...
Really, this works around them, but the workaround is all round better
code.
Remove the Dart implementations of min() and max() and just forward to
the JS ones. In DDC, all numbers are double, so the type checks to
handle them specifically aren't meaningful. Also, we don't need the
other special case checks in there to help dart2js optimize them.
R=vsm@google.com
Review URL: https://codereview.chromium.org/2386493003 .
2016-09-30 13:18:07 -07:00
Bob Nystrom
8c7dd5cd04
Cast InternalMap to Map.
...
It's a tag interface that doesn't declare that it implements Map but all
classes that implement it also implement Map, so just do a cast.
R=vsm@google.com
Review URL: https://codereview.chromium.org/2304323002 .
2016-09-08 16:23:45 -07:00
Stephen Adams
aea2fa1291
Update Symbol.hashCode
...
New dart2js version avoids inefficient String.hashCode
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/2040963005 .
2016-06-06 12:34:59 -07:00
Stephen Adams
73479a600c
Throw TypeError instead of CastError for type coercions.
...
Added 'tag' type StrongModeError, implemented by all errors that are
specific to strong mode semantics.
Failed casts throw CastError(Implementation) or StrongModeCastError.
Failed type assertions and reified coercions throw TypeError or
StrongModeTypeError.
Triaged some tests. Some pass due to now throwing a TypeError, many
pass for unknown reasons.
R=leafp@google.com
Review URL: https://codereview.chromium.org/2026133002 .
2016-06-01 10:18:17 -07:00
Stephen Adams
0235eba4b9
Updates to collection_patch.dart
...
BUG=
R=leafp@google.com
Review URL: https://codereview.chromium.org/1987043002 .
2016-05-18 15:10:40 -07:00
Stephen Adams
69337e11d4
Minimal patch to collections to use correct LinkedHashMap for map literals.
...
TBR=leafp@google.com
Review URL: https://codereview.chromium.org/1982953002 .
2016-05-16 20:26:49 -07:00
Vijay Menon
88870d0194
Migrate dart2js stubs for dart:io
...
Modifies tests to use our SDK. Didn't prune io dependences to make
sure the stubs above work. :-)
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/1976103003 .
2016-05-16 08:23:41 -07:00
Bob Nystrom
4a51a187d3
Upgrade to the latest dart:convert.
...
This fixes html_escape_test as well as codec1_test.
R=vsm@google.com
Review URL: https://codereview.chromium.org/1978963002 .
2016-05-13 16:33:35 -07:00
Harry Terkelsen
382996f41c
update dart:math
...
BUG=
R=rnystrom@google.com
Review URL: https://codereview.chromium.org/1967773005 .
2016-05-12 09:03:11 -07:00
Stephen Adams
098508c533
Update _charCodeApply, makeFixedStringUnmodifiable
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1969683002 .
2016-05-10 18:44:33 -07:00
Stephen Adams
a2ebf2ada1
Speed up String.fromCharCodes a bit
...
About 4x speedup of convert/ascii_test.dart by removing dsend in inner loop.
R=leafp@google.com
Review URL: https://codereview.chromium.org/1968783002 .
2016-05-10 17:30:19 -07:00
Harry Terkelsen
32fd2f8215
update Map
...
R=sra@google.com
Review URL: https://codereview.chromium.org/1963723003 .
2016-05-10 16:19:19 -07:00
John Messerly
a7f812b676
fix #552 , Object members on native types
...
We initially hard coded a few of these. That worked until native_typed_data and html were added. Those two libraries have a lot of native types.
This also fixes TypeRep to extend dart:core Object, and fixes the dart:_runtime so we can write Dart classes. Cleans up a few of the JS builtins as well.
R=vsm@google.com
Review URL: https://codereview.chromium.org/1962823002 .
2016-05-10 11:35:38 -07:00
Bob Nystrom
e535970604
Update dart:convert and dart:core Uri.
...
I started trying to get the convert tests all cleaned up and passing
but realized I was going down a rathole. So, for now, all of the slow
or failing ones are just skipped.
BUG=
R=sra@google.com
Review URL: https://codereview.chromium.org/1965563003 .
2016-05-10 10:25:38 -07:00
Stephen Adams
a5d1626299
Update date_time.
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1952133007 .
2016-05-06 17:52:21 -07:00
Stephen Adams
090110fb65
Update native_typed_data
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1956993003 .
2016-05-06 17:26:25 -07:00
Stephen Adams
7bd37f015f
Upgrade StringBuffer, identical
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1957633002 .
2016-05-05 21:11:09 -07:00
Stephen Adams
bf4e10e356
Update String.fromCharCodes from sdk
...
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1952223006 .
2016-05-05 20:52:27 -07:00
Bob Nystrom
a191ce0384
Update dart:async to match the Dart repo.
...
R=vsm@google.com
Review URL: https://codereview.chromium.org/1953153002 .
2016-05-05 15:03:10 -07:00
Bob Nystrom
44db042cd8
Redo how Type objects are exposed from DDC.
...
- Instead of using the raw runtime type that DDC uses for its type
checks, use a WrappedType that correctly implements Type's interface.
- Compile class literals to wrap the type in a WrappedType.
- Make Object.runtimeType() do the same thing.
Fixes #488 . Fixes #511 .
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/1944483002 .
2016-05-03 14:24:08 -07:00
Stephen Adams
6485751d8c
Implement Map.unmodifiable
...
This is a temporary solution.
When we have an implementation of const maps, we should switch to that.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/1946663002 .
2016-05-03 12:02:20 -07:00
Vijay Menon
6d8dc11397
Suppress extra cast
...
If I rebuild the SDK, I see a cast from List to List<E> on the next line without this. With the change, we just infer List<E> in the first place.
R=sra@google.com
Review URL: https://codereview.chromium.org/1945793002 .
2016-05-03 10:30:17 -07:00
Stephen Adams
1aa00bc447
List.unmodifiable
...
Most operations don't check, that will happen as more code is updated
to a more recent sdk.
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/1939093003 .
2016-05-03 09:34:44 -07:00
Jacob Richman
eef7f81d0a
Land fix to StackTrace.current performance already landed in dart2js.
...
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/1927813002 .
2016-04-28 09:28:25 -07:00