Commit Graph

2071 Commits

Author SHA1 Message Date
scheglov@google.com 61abfa0ca9 Support for --no-hints in analyzer_experimental.
I did one more snapshot to pick up your latest changes.
I have to extract ErrorCode variables because of type model difference in Java vs. Dart.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28016 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 16:54:38 +00:00
floitsch@google.com 4a28d50a70 Mark stream_controller_async_test as flaky.
Review URL: https://codereview.chromium.org//25030002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28005 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 11:59:43 +00:00
sra@google.com c068a949fe Revert "Revert "Reinstate type checks in Math.min and Math.max""
Review URL: https://codereview.chromium.org//24918003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27983 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 02:01:43 +00:00
mlippautz@google.com 19763aae4d Implementation for ClosureMirror.findInContext.
Fixes issue 5897.

BUG=https://code.google.com/p/dart/issues/detail?id=5897
R=asiva@google.com, gbracha@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27982 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 01:28:12 +00:00
sra@google.com 053eaeb868 Revert "Reinstate type checks in Math.min and Math.max"
Review URL: https://codereview.chromium.org//24911003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27981 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 01:15:58 +00:00
sra@google.com b1e55c556c Reinstate type checks in Math.min and Math.max
See Issue 11906 for discussion.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27980 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-27 00:45:08 +00:00
regis@google.com 42972d1e37 Fix test failure expectations and update status files.
R=hausner@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27976 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 22:19:02 +00:00
floitsch@google.com 997b6d7ad7 Mark stream_controller_async_test as flaky.
Review URL: https://codereview.chromium.org//24616004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27960 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 16:45:39 +00:00
kustermann@google.com 55e9dc75b4 test.py: Parse unittest-suite-{wait-for-done,success} messages in output of d8/jsshell/vm
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27953 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 14:06:01 +00:00
fschneider@google.com d055c16e0d Fix optimized Math.pow on x64 with NaN exponents.
The libc implementation used by the optimized code differs
from the expected behaviour. It does not return double.NaN
as the Dart implementation of pow when the exponent is NaN.

The test fails when running with  a low optimization-counter-threshold=5.

BUG=https://code.google.com/p/dart/issues/detail?id=13543
TEST=math/double_pow_test
R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27950 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 13:12:59 +00:00
ahe@google.com 94b894acb1 Implement InstanceMirror.invoke of methods with optional arguments.
BUG=http://dartbug.com/6490
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27947 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 12:45:17 +00:00
floitsch@google.com 00752e7e24 Escape slash since it helps to end an HTML entity.
Escaping a slash is recommended by the OWASP.

Replace "'" in HTML escaping by "'" since "'" isn't supported in the HTML4 spec.

BUG= http://dartbug.com/13364
R=efortuna@google.com, floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27945 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 12:19:40 +00:00
floitsch@google.com 146150ac51 Wait for the pause-event to have finished.
BUG= http://dartbug.com/13608
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27943 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 12:12:42 +00:00
ahe@google.com 1da4c79460 Fix a problem revealed by mirror_printer_test.
Also update analyzer status file.

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27937 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 10:38:32 +00:00
ahe@google.com c24b1b7e78 Implement named arguments in InstanceMirror.invoke.
BUG=http://dartbug.com/12863
R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27936 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 09:08:03 +00:00
ricow@google.com 4eba8e5c88 Remove flaky markers for v8 bug - this has already been fixed by a v8 roll
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27931 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 06:47:20 +00:00
rmacnak@google.com 753af9b01b Implement closurization of regular methods in ObjectMirror.getField in the VM.
BUG=http://dartbug.com/13001
BUG=http://dartbug.com/13002
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27916 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 21:42:13 +00:00
johnmccutchan@google.com 0e87e5004e Fix runtime clamp logic to match optimized code
BUG=13106
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27911 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 20:42:57 +00:00
scheglov@google.com 7ce03ef926 New analyzer_experimental snapshot.
There are couple small changes in analyzer itself:

1. AnalysisCache.entrySet() to return Collection instead of Set - it is expensive to fill actual Set in Dart - hash code, equals, etc. We know there are no duplicates.

2. Matcher in TODO scrapper - there are no start(i) in Dart, I have to change implementation to translate it accurately.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27889 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 16:02:19 +00:00
kustermann@google.com dfbf264f40 Automatically converted general Fail status file markers to one of the more specific markers
R=johnniwinther@google.com, ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27876 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 12:47:03 +00:00
johnmccutchan@google.com dcda2adb90 Cleanup bit casting methods between SIMD types
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27827 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 16:23:46 +00:00
kustermann@google.com 9e1ba8381e Status file update after adding new vm-linux-release-optcounter-threshold builder
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27815 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 12:19:10 +00:00
floitsch@google.com 35e2ed1e57 Expose Zones.
BUG= http://dartbug.com/11279
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27802 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 09:22:26 +00:00
ahe@google.com d384233357 Update mirror test status.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27781 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 17:19:00 +00:00
rmacnak@google.com e07f666db6 Mark tests with symbol literals as failing on the analyzer.
BUG=http://dartbug.com/13510

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27775 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 16:43:25 +00:00
rmacnak@google.com 306d474235 Use symbol literals in the mirror tests. (Except for void, the empty string and setters.)
R=mlippautz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27773 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 16:17:13 +00:00
zarah@google.com 7d93dd8b28 Support typeVariables in ClassMirror.
R=ahe@google.com, karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27753 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 11:17:55 +00:00
ahe@google.com 05a9a7834e Emit CSP code in separate file.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27745 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-23 09:06:14 +00:00
kustermann@google.com 836336a3d5 Removed status file entries referring to non-existent files
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27704 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 13:29:29 +00:00
zarah@google.com e36ac8f125 Mark generics_test.dart as failing when run with the analyzer.
Review URL: https://codereview.chromium.org//23465031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27665 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-19 15:52:40 +00:00
zarah@google.com 317bb49282 Support typeArguments, isOriginalDeclaration, and get originalDeclaration in ClassMirror.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27662 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-19 14:54:52 +00:00
zarah@google.com 3766edd713 Change return type of get typeVariables and typeArguments in ClassMirror.
R=ahe@google.com, gbracha@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27641 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-19 07:01:19 +00:00
mlippautz@google.com 3a3329c1ac Fix tests that broke in r27633.
Make analyzer happy.

BUG=
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27634 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 20:13:49 +00:00
mlippautz@google.com 9f41ce82ae Merge tests for dart2js and VM using multi-tests.
BUG=
R=rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27633 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 19:50:13 +00:00
kevmoo@j832.com 1a9178abe0 Handle Future result from Future.sync computation
BUG= https://code.google.com/p/dart/issues/detail?id=13368
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27619 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 13:42:52 +00:00
ngeoffray@google.com 9cd65b1b99 Update status file for dart2js and vm.
Review URL: https://codereview.chromium.org//23926018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27567 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-17 12:21:53 +00:00
ngeoffray@google.com f922667e80 Fix warnings spotted by analyzer.
Review URL: https://codereview.chromium.org//24202002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27564 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-17 12:17:52 +00:00
ngeoffray@google.com a9d58a3fc4 Remove merge error.
Review URL: https://codereview.chromium.org//23708047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27562 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-17 12:08:06 +00:00
ngeoffray@google.com 8b0ff9c615 Implement redirecting factories in mirrors.
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27561 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-17 12:05:40 +00:00
sra@google.com 322b7531be Test for the type of sublist on typed_data lists
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27538 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-16 23:52:48 +00:00
mlippautz@google.com b09bbf706b Add metadata to type parameters. Reflective access is provided by TypeVariableMirror.
Addresses issue 10906.

BUG=https://code.google.com/p/dart/issues/detail?id=10906
R=asiva@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27523 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-16 16:53:24 +00:00
ngeoffray@google.com e546e2676d Change how we generate bound closures to handler bound closures due to super getters: we need to pass the exact function to call instead of fetching it from the receiver.
R=ahe@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27519 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-16 13:09:09 +00:00
rmacnak@google.com aa8d63aeea Properly handle exceptions that arise when reflectively invoking a constructor/factory.
R=asiva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27439 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 17:42:08 +00:00
mlippautz@google.com cd958c8ca4 Fix reparsing of function parameters that include type parameters.
The parser is now properly initializing parsed_function/current_function to make
internal lookups work (instead of crashing).

BUG=
R=hausner@google.com, rmacnak@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27418 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 01:06:43 +00:00
rmacnak@google.com 07c4d9d0c6 Fill in type arguments when creating an object from the mirrors or embedding API.
BUG=http://dartbug.com/13186
BUG=http://dartbug.com/12921
R=regis@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27417 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-12 00:48:16 +00:00
sra@google.com 21fdcce9b9 dart:typed_data type hierarchy changes try 3
Review URL: https://codereview.chromium.org//23618043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27413 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 23:05:27 +00:00
floitsch@google.com 68a9727c52 Rewrite Futures.
R=lrn@google.com

Committed: https://code.google.com/p/dart/source/detail?r=27375
Reverted: https://code.google.com/p/dart/source/detail?r=27376

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27383 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 14:00:20 +00:00
floitsch@google.com d035cbd825 Revert "Rewrite Futures."
This reverts commit r27375.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27376 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 12:16:41 +00:00
floitsch@google.com 42e3d1db85 Rewrite Futures.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27375 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 12:02:37 +00:00
johnmccutchan@google.com bc987abea7 Revert type hierarchy changes
Review URL: https://codereview.chromium.org//23533046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27374 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-11 11:05:10 +00:00