Commit graph

39462 commits

Author SHA1 Message Date
John Messerly efe9f1140d fix #26965, allow promotion from type param upper bound in strong mode
Also updates the changelog with this, and adds notes on a few other missing strong mode features.

R=leafp@google.com

Review URL: https://codereview.chromium.org/2214833002 .
2016-08-05 08:51:44 -07:00
Konstantin Shcheglov cf962d4cc7 Tweak the rest of separator references to use the getter.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2214233002 .
2016-08-05 08:43:19 -07:00
Jacob Richman e039890671 DEPS AutoUpdate: dev_compiler
commit e54f776b5d4ac5a5e94afc7a8cd0361715dedcf0
Author: Vijay Menon <vsm@google.com>

    Run travis on trusty
2016-08-05 08:39:34 -07:00
John Messerly 1bb6da7937 fix #26414, infer return types of local functions
R=leafp@google.com

Review URL: https://codereview.chromium.org/2209293002 .
2016-08-05 07:25:14 -07:00
John Messerly 8026c9509c fix #26552, improve null coalescing inference
R=leafp@google.com

Review URL: https://codereview.chromium.org/2217693003 .
2016-08-05 07:19:47 -07:00
Jacob Richman 4f7464da27 DEPS AutoUpdate: dev_compiler
commit 881a304f51a12869a5965cfaa55731d17cf73527
Author: Vijay Menon <vsm@google.com>

    Reify type params on map literals
2016-08-05 07:17:18 -07:00
Florian Loitsch 99e5328eac Revert "Return futures on Stream.cancel when possible."
This reverts commit 395e7aaa69.

Review URL: https://codereview.chromium.org/2213193004 .
2016-08-05 14:32:14 +02:00
Florian Loitsch 395e7aaa69 Return futures on Stream.cancel when possible.
Deprecate returning `null`.

Also, fixes cases where transformations on a stream didn't forward the cancel future

Fixes #26777.

BUG= http://dartbug.com/26777.
R=lrn@google.com

Review URL: https://codereview.chromium.org/2202533003 .
2016-08-05 13:58:45 +02:00
William Hesse 8473409b9c Archive SDK by git hash in addition to version number
This is needed for buildbot testers to download the SDK instead of building it.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2218723003 .
2016-08-05 13:38:55 +02:00
Ryan Macnak 7a12b0cb60 Fix IA32 build.
Review URL: https://codereview.chromium.org/2214313002 .
2016-08-04 17:52:52 -07:00
Ryan Macnak 19716b351a Reset most ICs by returning to the canonical empty data arrays.
We can't do this for the binary operators because they must be writable and not shared for the fast Smi op stubs to record invocation counts.

Suspected to help avoid races, see Issue #26946.

Also remove some dead code and avoid TLS.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2217733002 .
2016-08-04 17:41:03 -07:00
Carlo Bernaschina ba0f803fbe Centralized event streams
R=turnidge@google.com

Review URL: https://codereview.chromium.org/2211603002 .
2016-08-04 17:11:16 -07:00
Paul Berry 70bd623f36 Add an "api signature" to summaries.
The API signature of a summary is an MD5 hash of the API of the code
being summarized.  This will be used by analysis server to detect when
a summary needs to be relinked (because it was built with reference to
another summary whose API has since changed).

R=scheglov@google.com

Review URL: https://codereview.chromium.org/2216873003 .
2016-08-04 16:12:49 -07:00
John Messerly 98eeba1353 fix missing bool type annotation on dynamicIsBottom
this was causing a strong mode error in the IDE

Review URL: https://codereview.chromium.org/2216093002 .
2016-08-04 16:05:30 -07:00
Regis Crelier c8910f9d38 Update new test to check asserts only if they are enabled and remove VM option.
It seems like asserts are not supported correctly in product mode.

Review URL: https://codereview.chromium.org/2215143002 .
2016-08-04 16:01:19 -07:00
Sigmund Cherem 0eee4027a6 Delete dart_backend from compiler.
R=sra@google.com

Review URL: https://codereview.chromium.org/2213673002 .
2016-08-04 15:57:04 -07:00
John Messerly 3c38f96a0a add a test for #26431, which is now fixed
likely was fixed by the constructor inference changes

R=nweiz@google.com

Review URL: https://codereview.chromium.org/2214123002 .
2016-08-04 15:50:10 -07:00
John Messerly 9599cd6f50 fix #26512, correct handling of fuzzy arrows in strong mode LUB
R=leafp@google.com

Review URL: https://codereview.chromium.org/2215873002 .
2016-08-04 15:47:27 -07:00
Stan Manilov 0707c616ef Fix build crash
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/2218623002 .
2016-08-04 15:40:27 -07:00
Todd Turnidge f8ff7bd5c4 Delete NativeMessageHandler once a native port closes.
Closes #27002

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2217693002 .
2016-08-04 15:34:24 -07:00
Regis Crelier fbbedf4f18 Introduce getter p on double in the VM to control fractional precision.
Add test.

R=asiva@google.com, fschneider@google.com

Review URL: https://codereview.chromium.org/2208473006 .
2016-08-04 15:18:00 -07:00
Konstantin Shcheglov bc8b32145b Fix for adding new elements into library cycles.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2212093002 .
2016-08-04 14:42:40 -07:00
Siva Annamalai 99baa3de32 Fix for issue 27019 (Safepoint assertion failure in Flutter)
BUG=27019
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2215523002 .
2016-08-04 13:56:04 -07:00
Matthias Hausner 6075a53547 Skip initializing_formal_* tests on Dartium
Apparently the VM does not get the --initializing-formal-access flag
set, which these tests need in order to pass.

TBR=terry

BUG=

Review URL: https://codereview.chromium.org/2219473002 .
2016-08-04 13:47:21 -07:00
John McCutchan aed6dd844d Clear isolate callback data before running shutdowncallback
BUG=
R=turnidge@google.com

Review URL: https://codereview.chromium.org/2212083002 .
2016-08-04 13:09:24 -07:00
Stan Manilov f3f10a6dd6 Make LUB algorithm aware of non-null types
In addition to the functional change I added some more tests to test for
regressions and for the new behaviour.

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/2208233002 .
2016-08-04 12:33:34 -07:00
Brian Wilkerson b47d35d706 Clean up use of resource provider in cli
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2212813003 .
2016-08-04 12:31:10 -07:00
Konstantin Shcheglov 52af64c7ff Fix incremental resolution when inserting/removing empty lines before comments.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2214943002 .
2016-08-04 11:48:05 -07:00
John Messerly 5d8b2b5eac fix #26962, invoking a known lambda is not a dynamic invoke
R=leafp@google.com

Review URL: https://codereview.chromium.org/2211053002 .
2016-08-04 11:30:26 -07:00
Brian Wilkerson 5b26441dbf Convert server and cli and deprecate the old implementation
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2214613003 .
2016-08-04 11:28:16 -07:00
Matthias Hausner 643fdb9dc8 Implement the language change that makes initializing formal parameters visible in the initializer list, but not in the constructor's body.
The feature is enabled with the flag --initializing-formal-access.

BUG=26655, 26656
R=regis@google.com

Review URL: https://codereview.chromium.org/2051213005 .
2016-08-04 11:24:25 -07:00
Zachary Anderson 8808f853e3 Fix memory leaks in BoringSSL secure socket implementation
After running our tests with ASAN and inspecting the
BoringSSL code, it appears that the calls indicated
in the CL increment the reference count of the
objects passed in being added to the security context.
Therefore, to avoid a leak, we have to free() the
objects to decrement the reference count so that the
memory is freed when the context is destroyed.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2206233003 .
2016-08-04 10:49:51 -07:00
Brian Wilkerson b888675b55 Move embedder locator and convert context builder to use the new API
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2208503004 .
2016-08-04 10:41:53 -07:00
Jacob Richman 4a68926534 DEPS AutoUpdate: dev_compiler
commit 057a9c8ad213fc51959093f31bfed3ca972a8eab
Author: Vijay Menon <vsm@google.com>

    Enforce green on travis with dev analyzer
2016-08-04 09:57:13 -07:00
Ryan Macnak 5f4a685cd7 Reload: Have dangling extracted properties raise NoSuchMethod.
Closes #26995

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2204593011 .
2016-08-04 09:54:40 -07:00
John McCutchan 9f2a883739 Fix reload service protocol reporting
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2213753002 .
2016-08-04 09:34:04 -07:00
Florian Loitsch b8c12bc9ff Make Mac-port non-blocking.
Fixes issue #26790.

BUG= http://dartbug.com/26790
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/2211523002 .
2016-08-04 15:58:20 +02:00
William Hesse cad5dd65cb Update status for Firefox 48
Also update status for Chrome on macOS.

BUG=https://github.com/dart-lang/sdk/issues/26789
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/2215763002 .
2016-08-04 15:55:45 +02:00
Florian Loitsch ef4933df25 Better error-message when bind fails.
See #26790.

R=sgjesse@google.com

Committed: 34aed6a08b

Reverted: a1005bad7e

Committed: 8c4954492f

Reverted: 5ebcd3cda0

Committed: eaeb260244

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

Reverted: 90a194be3c
2016-08-04 14:45:01 +02:00
Carlo Bernaschina 5948909120 Fixed typos in observatory_sources and folder name
TBR=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2210103002 .
2016-08-03 20:09:17 -07:00
Carlo Bernaschina 60afd8bddd Converted observatory flag-list element
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2213613002 .
2016-08-03 19:53:05 -07:00
Carlo Bernaschina c9b1215870 Converted general-error tag
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2199403002 .
2016-08-03 18:16:19 -07:00
Carlo Bernaschina de0fabc425 Updated observatory_pub DEP
Fixes https://github.com/dart-lang/sdk/issues/25561

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2212703002 .
2016-08-03 17:57:08 -07:00
Jacob Richman 508dbbe1c9 DEPS AutoUpdate: dev_compiler
commit 9cc982b90f57c6132f648b0041c0b03bd23fcbfc
Author: Vijay Menon <vsm@google.com>

    Roll DDC to latest dart:html
2016-08-03 17:55:59 -07:00
Carlo Bernaschina 17bde049e0 Removed warnings from test
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2212643002 .
2016-08-03 17:55:26 -07:00
Carlo Bernaschina 937d281f7f Converted Observatory class-ref & library-ref elements
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2204973003 .
2016-08-03 17:48:42 -07:00
Jacob Richman 91d079b7cf DEPS AutoUpdate: dev_compiler
commit 4e13bd49effd370a542aae3ed044648292a8bfb6
Author: Vijay Menon <vsm@google.com>

    Regen with latest analyzer
2016-08-03 17:35:20 -07:00
Carlo Bernaschina f151384596 Dynamic host and port in vm-connect element
Fixes https://github.com/dart-lang/sdk/issues/24014

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2204943005 .
2016-08-03 17:20:18 -07:00
Ryan Macnak 978abe4e32 Tree-shaker: Use insertion in the work queue instead of "was compiled" as the criterion to retain a function.
Don't AddTypesOf(function) before the work queue is empty, or we may miss types in exception handlers that are not computed until the function is compiled.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2209893003 .
2016-08-03 16:57:55 -07:00
Todd Turnidge 27db90e56f Disable a test on windows which uses an illegal window filename character.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2207233002 .
2016-08-03 16:37:23 -07:00