Commit Graph

29618 Commits

Author SHA1 Message Date
brianwilkerson@google.com 06b1a16819 Include source info in status AST dump
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43708 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-12 00:41:38 +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
asiva@google.com ea16b41a0b Fix race condition an isolate is being added to the isolate list before the name for the isolate is setup, the service isolate starts registering the isolate and accesses the name which is NULL.
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43706 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 23:39:43 +00:00
scheglov@google.com 3f5da18831 Add packageUriResolver before ResourceUriResolver.
Otherwise execution.mapUri always restores file:// URI.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43705 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 23:06:48 +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
brianwilkerson@google.com 0efb52aa0f More complete state transition data
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43700 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 22:04:51 +00:00
scheglov@google.com 303d94e89d Add SourceEntry.CONTENT_ERRORS data descriptor.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43698 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 21:04:18 +00:00
regis@google.com 163f1c2244 Improve _toInt64() and _toUint64() conversions in TypedData.
Add missing conversions of exponent and modulus in Bigint.modPow().
Fix typos in Bigint Classic reduction (modPow tests coming in later cl).
Address a few more TODOs.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43697 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 20:57:33 +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
scheglov@google.com 84655a3ad3 Report an error on Dart Source reading exception.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43694 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 18:22:27 +00:00
kustermann@google.com be70a52106 Reorder includes and remove platform/globals include
TBR=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43693 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 17:24:37 +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
kustermann@google.com dbd56a9b5c Add unittest for CircularLinkedList + bugfix
BUG=
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43691 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 16:20:18 +00:00
danrubel@google.com c762e94a1c check for null completion node
BUG=dartbug.com/22371
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43690 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 15:44:21 +00:00
asgerf@google.com 9dfa76057f Fix method rename in analyzer2dart.
An incomplete refactoring did not touch analyzer2dart.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43686 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 15:29:36 +00:00
paulberry@google.com be3c32b38b Fix typo in error message.
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43685 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 15:17:44 +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
brianwilkerson@google.com 921e9592ad Count task frequency in new task model
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43682 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 14:26:26 +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
kustermann@google.com 70ca358a33 Send destroy events for each closed listening socket instead of waiting for all listening sockets to be done
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43680 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 11:34:47 +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
zarah@google.com c7a791d13c dart2js: store typeVariableReader stubs in the model.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43677 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 09:49:06 +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
scheglov@google.com 0b922f3d22 Quick Fix for an undefined class in is/as expressions.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43675 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 01:31:53 +00:00
scheglov@google.com 7b59c01e8a Use async/await in refactorings.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43674 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 01:21:43 +00:00
rmacnak@google.com 4de5f89b99 Rename IsConstructor to IsGenerativeConstructor.
This matches the terminology in the spec, and it avoids confusion with the function kind kConstructor, which indicates either a generative constructor or a factory constructor.

R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43673 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-11 00:59:19 +00:00
brianwilkerson@google.com 52af26ea3d Minimal initial performance reporting
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43672 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 23:09:40 +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
asiva@google.com 58c14696fb Fix a windows build issue
../../dart/runtime/vm/flags.cc:58:26: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
        OS::Print("%s: %"Pu64" (%s)\n", name_, *this->uint64_ptr_, comment_);

R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43669 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 21:30:28 +00:00
scheglov@google.com 9aaa9a6a99 Use ExitDetector.exists(node).
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43668 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 20:46:47 +00:00
paulberry@google.com acaed71dba Clean up analyzer and analysis server hints.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43667 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 20:40:26 +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
brianwilkerson@google.com 937c4be45d Add index search support to AST and element model pages
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43665 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 20:11:27 +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
scheglov@google.com ff4e2bfce1 Issue 22188. Verify that none or all execution flows return.
R=brianwilkerson@google.com, paulberry@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=22188

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43663 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 19:14:01 +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
koda@google.com c2da2d9830 Make ASAN/MSAN ignore Dart frames.
Frames initialized by generated code are unknown to ASAN/MSAN, so we must explicitly mark it as initialized.

For some (unknown) reason, this only caused failures on the build bot.

TBR=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43661 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 18:43:27 +00:00
regis@google.com d50fe1db24 Make instruction counter in simulators 64-bit (issue 22302).
This requires supporting uint64_t flag values.

R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43660 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-10 17:41:01 +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
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