Commit Graph

11052 Commits

Author SHA1 Message Date
sgjesse@google.com 47236d71e5 Fix checked mode test
TBR=ricow@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43727 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 14:20:38 +00:00
asgerf@google.com abc37952d4 dart2js: Refactoring, documentation, and a few bugfixes in Namer class.
See long doc comment in namer.dart.

BUG=
R=floitsch@google.com

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

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43724 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 13:43:25 +00:00
sgjesse@google.com 59f8932c9d Update documentation for Platform.version
Add test that Platform.version does start with a valid semver string.

BUG=http://dartbug/22244
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43723 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 13:35:56 +00:00
sigurdm@google.com 4f0f538076 Let the CPS ir builder bail out when given a non-sync function.
BUG=
R=johnniwinther@google.com, karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43720 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 09:47:48 +00:00
sigurdm@google.com 4150b44a24 Fix checked-mode return for async-functions.
BUG= dartbug.com/22332
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43719 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 09:35:44 +00:00
lrn@google.com 688d50f1c9 Add String.replaceFirstMapped.
Also refactory VM implementation of checking if a string is one-byte,
and adds dart2js implementation of replaceFirst for non-string/regexp pattern.

BUG= http://dartbug.com/2979
R=floitsch@google.com, iposva@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43718 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 09:16:57 +00:00
lrn@google.com 7c9248c642 Revert "Add String.replaceFirstMapped."
Changes to interpolation should be separate CL.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43717 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 09:12:06 +00:00
lrn@google.com 6b9ff4c4d4 Add String.replaceFirstMapped.
Also refactory VM implementation of checking if a string is one-byte,
and adds dart2js implementation of replaceFirst for non-string/regexp pattern.

BUG= http://dartbug.com/2979
R=floitsch@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43716 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 09:04:09 +00:00
sra@google.com 5852e9ef90 Redo "Steps towards making dart2js JS AST templates an indepentent library."
Adds fix for dart2js_incremental

TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43712 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 01:58:01 +00:00
sra@google.com ba909cfb3e Revert "Redo "Steps towards making dart2js JS AST templates an indepentent library.""
Investigating failure of dart2js_incremental.

TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43710 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 01:18:03 +00:00
hausner@google.com 2cab6733b2 Fix test expectations for minified dart2dart
Review URL: https://codereview.chromium.org//918873002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43709 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 00:51:15 +00:00
hausner@google.com 2f0d13af3b Fix yield statements in catch blocks
This is a partial fix for issue 22300. The VM no longer setfaults when
using yield in try statements. Yield in catch blocks work. What’s still
not working right is if a value is yielded before an exception is
propagated to the caller.

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43707 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 00:12:07 +00:00
sra@google.com b1a31838f2 Redo "Steps towards making dart2js JS AST templates an indepentent library."
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43703 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 22:52:24 +00:00
sra@google.com 068d8a7349 Revert "Steps towards making dart2js JS AST templates an indepentent library."
Investigating snapshot issues.

TBR=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43696 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 18:43:07 +00:00
sra@google.com 4585a0df9d Steps towards making dart2js JS AST templates an indepentent library.
- Removed unused type Blob
- Remove use of CodeBuffer, Compiler, SourceInformation
- Moved existing code into library js_ast
- Added new library js that re-exports js_ast and adds dart2js specific code.

The next step is to move the code into its own package under pkg.

BUG=
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43695 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 18:24:43 +00:00
whesse@google.com 3466fb448b Update co19 status for flaky tests.
BUG=
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43692 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 17:01:24 +00:00
asgerf@google.com ec384eb0ad 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

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

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43684 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 15:13:40 +00:00
kustermann@google.com aeba7a23b1 Fix race condition in tests/standalone/io/file_test
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43683 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 14:32:55 +00:00
fschneider@google.com f7a97fa4d4 VM: Fix slow-path deoptimization environment.
The number of pushed arguments needs to be accounted for.

BUG=dartbug.com/22331
R=vegorov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43681 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 13:34:15 +00:00
asgerf@google.com 096a40419e Revert "dart2js cps: Handle optional parameters in builder."
This reverts commit 43643.

BUG=
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43679 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 10:19:25 +00:00
kustermann@google.com 615d1a01ac Reland "Introduce optional 'bool shared' parameter to ServerSocket.bind() ..."
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43678 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 10:01:20 +00:00
sigurdm@google.com 0c5709bd0e Fix dart2dart status file.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43676 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 08:04:18 +00:00
paulberry@google.com 181b3b71c3 Work around warning in new duration2_test.
TBR=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43670 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 22:50:31 +00:00
paulberry@google.com d7c763003d Re-apply "Fix warning in sync_generator1_test.dart"
This re-applies commit 43626, which was reverted in 43628.

What happened: I accidentally tested r43626 against a work-in-progress
build of the Java-based dartanalyzer that contained r43655, so I
failed to update the status files properly.  This resulted in a build
failure, which was addressed by reverting r43626.  Now that r43655 has
landed, the build failure should not occur.

R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43666 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 20:32:41 +00:00
koda@google.com 8c24d57e15 Update test status for slow ASAN bot.
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43664 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 19:58:35 +00:00
hausner@google.com 8e7752f56b Fix bug in processing of latent breakpoints
Debugger hangs when encountering a url that has no match
in any of the loaded libraries.

R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43662 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 19:11:56 +00:00
floitsch@google.com b5d8e838dc All nsm error in duration test.
Review URL: https://codereview.chromium.org//911913002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43659 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 17:35:36 +00:00
floitsch@google.com c7d0c7ffed corelib: Don't blow up in memory if a duration receives a string as argument.
BUG= http://dartbug.com/22309
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43658 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 16:39:33 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
whesse@google.com 96766cf720 Skip browser audio test that crashes Chrome stable.
Fixed in Chrome beta - remove skip when 41 is promoted to stable.

BUG=dartbug.com/22327
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43601 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 17:01:10 +00:00
johnniwinther@google.com 7267bd1d1e Update status.
BUG=
R=sigurdm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43599 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-09 16:37:54 +00:00
sigurdm@google.com 9246054981 More status-updates to async-await related tests.
Plus a small test-update for better async behaviour.

BUG=

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

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