Commit Graph

29575 Commits

Author SHA1 Message Date
paulberry@google.com 6ea61b5686 Partial backport of analyzer async/await fixes to Java.
Backport of r43613, r43537, r43446, r43427, r43424, r43418, r43403,
r43361 to the Java-based analyzer.  The backport is partial in that
the TypeProvider was not modified to include Future and Stream types
(this would have required substantial additional effort), and
consequently not all static warnings are correctly produced.  However,
all NonErrorResolverTest cases were successfully backported and pass,
meaning that the Java-based analyzer shouldn't produce false positive
warnings for async/await code anymore.

BUG=dartbug.com/22252
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43655 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 16:04:50 +00:00
floitsch@google.com 1baffdd2da dart2js: fix deferred loading in the new emitter.
Only works in drt/browser for now.

R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43654 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:33:29 +00:00
floitsch@google.com 41e936ef00 Extract invoke-main stub generator.
R=zarah@google.com

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

Reverted: https://code.google.com/p/dart/source/detail?r=43649

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43653 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:22:43 +00:00
johnniwinther@google.com 986ce5c39c Support default constructors in analyzer2dart.
BUG=
R=paulberry@google.com, sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43652 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:18:36 +00:00
sigurdm@google.com 18e885d1ea Use a VariableUse instead of VariableDeclaration for left-hand side of
assignments.

BUG=dartbug.com/22328
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43651 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:13:19 +00:00
sigurdm@google.com 1316fc65af Fix test to work on js-shell by avoiding a periodic timer.
BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43650 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:10:25 +00:00
floitsch@google.com 7955b2d856 Revert "Extract invoke-main stub generator."
This reverts commit r43644.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43649 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 15:00:31 +00:00
kustermann@google.com a9962948d6 Mark async/timer_isActive_test as flaky on dartium
R=ricow@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43648 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 14:36:05 +00:00
sgjesse@google.com 2a3a3e3fd7 Fix timeout in test
The server socket could be closed before all connections was handled
causing fewer calls to asyncEnd than to asyncStart and timeout.

Now the test waits with closing the server socket until all expected
connections have been made.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43647 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 14:29:30 +00:00
sigurdm@google.com 454602332b Only schedule the execution of an async* when the stream is
subscribed to.

BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43646 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 14:19:54 +00:00
floitsch@google.com 7aa556dcbd Extract invoke-main stub generator.
R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43644 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:39:15 +00:00
asgerf@google.com febb77ce10 dart2js cps: Handle optional parameters in builder.
For static invocations, default values are inlined.

For all invocations, named parameters are reordered alphabetically.

BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43643 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:36:58 +00:00
floitsch@google.com ddc1701c8c dart2js: make "CREATE_JS_ISOLATE" an embedded global.
R=zarah@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43642 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:08:42 +00:00
whesse@google.com 3a3e2e209f Update co19 status with flaky browser tests.
BUG=
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43641 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 13:05:39 +00:00
kustermann@google.com 700bea9f78 Parenthesize expression using bit-wise and on windows
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43640 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 12:17:54 +00:00
zarah@google.com 5e0dd0affd dart2js: don't emit unneeded tear-off data in the new emitter.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43639 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 12:00:48 +00:00
sgjesse@google.com 7b7ac3620a Add support to specify the source address for socket connect
BUG=http://dartbug.com/22253
R=kustermann@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43638 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 11:56:51 +00:00
johnniwinther@google.com 827e265786 Revert "Add sharedfrontend package"
This reverts commit r43635.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43637 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 11:32:18 +00:00
sigurdm@google.com a789f0db5f Use a 0-length timer in async test to make jsshell happy.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43636 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 11:30:49 +00:00
johnniwinther@google.com d7118339b5 Add sharedfrontend package
- initial element model includes Element, LibraryElement and ClassElement
- AccessSemantics moved to sharedfrontend to be utilized from both analyzer2dart and dart2js.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43635 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:44:56 +00:00
kustermann@google.com f0e8ff5381 Fix mac build: Add new disable_tokens=false value to super constructor call
Review URL: https://codereview.chromium.org//899593004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43634 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:34:35 +00:00
asgerf@google.com fbf1f00690 cps2js: Bugfix in named parameters in call to superconstructor.
BUG=
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43633 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:31:22 +00:00
kustermann@google.com 1c7ef3c4f2 Implement mac support for having multiple Dart_Port's registered on one OS socket
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43632 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:15:33 +00:00
kustermann@google.com 74c0f65c89 Implement windows support for having multiple Dart_Port's registered on one OS socket
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43631 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 10:08:49 +00:00
sigurdm@google.com 2f69ab27b9 Fix a mistake in a status-file
Fix async behaviour for a test-case.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43630 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 09:39:55 +00:00
johnniwinther@google.com 4f5b823f9b Fix yield for dart2dart minified.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43629 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 09:25:50 +00:00
ricow@google.com 9cc2d8892e Revert "Fix warning in sync_generator1_test.dart"
This reverts commit 43626

This caused failures:
http://build.chromium.org/p/client.dart/builders/new_analyzer-linux-release-be/builds/11431/steps/tests%20/logs/stdio

TBR=paulberry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43628 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 09:00:49 +00:00
sgjesse@google.com 91e7a32eb5 Remove SetNonBlocking/SetBlocking methods from Socket and add missing close-on-exec
The methods SetNonBlocking/SetBlocking on Sockets where not implemented on Linux
and not used on Windwsm. Removed and call directly to FDUtils when needed.

In Socket::Accept setting close on exec was missing on OS X and Android.

R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43627 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 07:29:36 +00:00
paulberry@google.com 04f95cdc66 Fix warning in sync_generator1_test.dart
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43626 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 00:36:25 +00:00
rmacnak@google.com 5b68bfef4a Mark co19 winding-enumeration_t01 as passing.
BUG=http://dartbug.com/22225
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43625 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 23:42:30 +00:00
johnmccutchan@google.com 20efd2f0c4 Add Log::VPrint and remove duplicated code.
BUG=
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43624 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 23:28:47 +00:00
johnmccutchan@google.com 420aa94c56 Split profiler.cc into profiler.cc and profiler_service.cc
BUG=
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43623 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 23:22:19 +00:00
srdjan@google.com 81d8099650 Redesign inlining interval computation.
Review URL: https://codereview.chromium.org//904763003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43622 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 23:11:05 +00:00
johnmccutchan@google.com 23763129a5 Fix missing new lines in disassembly
BUG=
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43621 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 22:58:16 +00:00
brianwilkerson@google.com 92e3e1b94a Fix notifications for nested packages
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43620 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 22:57:44 +00:00
turnidge@google.com e1f31e1513 Add a working command line debugger to Observatory.
Try it!

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43618 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 22:03:31 +00:00
brianwilkerson@google.com 94dd9d28f8 Fix a null pointer exception
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43617 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 21:55:48 +00:00
hausner@google.com 22054b3119 Make yield* throw an error if not yielding an Iterable
Fixes issue 22323

R=gbracha@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43616 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 21:47:12 +00:00
rmacnak@google.com ccc8865226 Random-walk fuzzer for the Dart VM.
Start with all the classes and libraries and various interesting values.  Repeatedly choose one as a receiver, construct a message it is likely to understand, send the message, and add the result.

R=groebert@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43615 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 21:32:37 +00:00
johnmccutchan@google.com 74469b2a9f Use printf("%s", str); to avoid glibc assertion
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43614 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 21:28:54 +00:00
paulberry@google.com 6a869d5e34 Fix inference of the static type of an async function literal.
This implements the spec change currently under review here:
https://codereview.chromium.org/902703003

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43613 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 21:21:36 +00:00
terry@google.com 3cf46e485e Re-enabled test for both enum value.
Reviewers=asiva@google.com

R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43612 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 21:13:04 +00:00
johnmccutchan@google.com ddbefcab7e Fix disassembly comments
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43610 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 20:57:41 +00:00
johnmccutchan@google.com 635ba4bbd9 Port flow_graph*, disassembler to ISL_Print
BUG=
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43609 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 20:49:32 +00:00
scheglov@google.com d7a2309a92 Fix for incremental resolution in case of inserting a new token into elegant comments.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43607 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 19:12:04 +00:00
brianwilkerson@google.com 67889f0c72 Fix the build
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43606 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 19:07:06 +00:00
johnmccutchan@google.com fee26a9bbb Fix Linux build
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43605 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 19:06:55 +00:00
johnmccutchan@google.com a6483aefd1 Per isolate Log with block support
BUG=
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43604 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 18:54:20 +00:00
brianwilkerson@google.com ebad629834 Handle exception getting modification stamp
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43603 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 17:19:00 +00:00
zra@google.com 9705799256 Adds dart_debug parameter to GN build.
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43602 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 17:02:12 +00:00