Commit Graph

272 Commits

Author SHA1 Message Date
lrn@google.com bd5f28916f Add tests for symbols of operators.
R=ahe@google.com, floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31187 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-17 12:38:53 +00:00
kustermann@google.com 34afbbc66a Mark symbol_test/0{2,3} as passing on drt (in addition to dartium)
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31028 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 17:34:19 +00:00
kustermann@google.com e898028b18 Attempt to deflake our status files
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31022 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 15:37:34 +00:00
srdjan@google.com 8058e7b135 Fix simarm test (add timeout).
R=johnmccutchan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30683 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 23:07:27 +00:00
lrn@google.com 700ed41411 Remove num-parse failure expectation for dart2js after changing test.
Review URL: https://codereview.chromium.org//88003002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30668 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 11:18:00 +00:00
lrn@google.com e1b4afa85d Add num.parse.
The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet.

BUG= http://dartbug.com/8237
R=floitsch@google.com

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30663 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 08:44:38 +00:00
lrn@google.com f5bf3613dc Revert "Add num.parse."
Fails on IE9.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30631 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 14:52:23 +00:00
lrn@google.com e0f3bb3092 Add num.parse.
The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet.

BUG= http://dartbug.com/8237
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30624 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 13:09:04 +00:00
ngeoffray@google.com f02627fe15 Update status file for safari bug.
R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30616 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 11:22:39 +00:00
ngeoffray@google.com 27d1f7aa7f Inline the fixed array constructor manually in the SSA builder. Also track whether a fixed array ever flows into a method that may check if it is growable.
Also fixes new List(null): it now throws.

R=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30612 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 09:10:57 +00:00
floitsch@google.com 1b97a4765f Fix timezone extraction for IE and Opera.
Not perfect, but these browsers don't give enough information.

BUG= http://dartbug.com/14717
BUG= http://dartbug.com/14691
BUG= http://dartbug.com/15027
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30469 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 13:57:53 +00:00
lrn@google.com 06e97d46b6 Fix expectation of corelib/queue_test to not fail analysis.
Review URL: https://codereview.chromium.org//78333002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30464 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-20 12:56:46 +00:00
karlklose@google.com fe2595422d Register generic type of instantiated Map literal.
R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30041 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-07 11:31:29 +00:00
floitsch@google.com ec3db0d42c Fix the generic type of Map.values for map literals.
R=karlklose@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29995 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-06 20:58:39 +00:00
karlklose@google.com 26877eda37 Change status of corelib/map_values2_test.
On dart2js, the library function to create the values-iterable uses IterableBase.map, which create a MappedIterable where the second type argument is set to dynamic. As a consequence, the result of `get values` is an Iterable<dynamic>.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29875 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 07:16:53 +00:00
karlklose@google.com 1ddf0d9a53 Reapply "Set runtime type on list and map literals."
Reviewed as: https://chromiumcodereview.appspot.com/54293008/.

R=johnniwinther@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29798 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 10:25:25 +00:00
floitsch@google.com 2d7491b99e Update status file.
Review URL: https://codereview.chromium.org//56303004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29763 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 18:53:11 +00:00
floitsch@google.com c71cec69e2 Update status file for Opera corelib failures.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29760 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 17:33:59 +00:00
floitsch@google.com 820560eef0 Fix timezone name for IE.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29758 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 17:03:42 +00:00
floitsch@google.com e51764f89e Fix some corelib tests.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29757 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 17:02:27 +00:00
karlklose@google.com df5da8b6f3 Revert "Set runtime type on list and map literals."
This reverts commit r29747.

TBR=kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29748 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 14:58:33 +00:00
karlklose@google.com a3c5867999 Set runtime type on list and map literals.
R=johnniwinther@google.com
BUG=6827,12889

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29747 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 14:19:02 +00:00
ngeoffray@google.com d630ad89c3 Revert r29862, cache must have been updated now.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29734 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-01 09:51:49 +00:00
ngeoffray@google.com fcdfebb688 The bots are using a cached version of the tests that is invalid now that the shared flags are passed.
Review URL: https://codereview.chromium.org//55053003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29682 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 17:28:49 +00:00
ngeoffray@google.com 9fb8d997f7 Implement fromEnvironment on bool, int, String in dart2js.
R=johnniwinther@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29675 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 14:41:44 +00:00
sgjesse@google.com 239e561e60 Update status file
Treat drt and dartium the same for fromEnvironment

TBR=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29645 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 06:38:38 +00:00
sgjesse@google.com 4072a20392 Update status file
The analyzer cannot see compile-time errors in .fromEnvironment

TBR=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29644 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 06:13:51 +00:00
sgjesse@google.com 36a67fa046 Implement fromEnvironment on bool, int and String
This implements const constructor fromEnvironment on bool, int and
String.

The VM have the added -Dname=value option to define the value for the
properties. All values are provided by using the -D - nothing is read
from the environment.

If the resulting value is null or - in the case of int.fromEnvironment
- not a number an ArgumentError is thrown.

This CL does not have any implementation for dart2js.

This is a continuation of the change
https://chromiumcodereview.appspot.com/24975002 by iposva@
BUG=
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29642 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 05:46:57 +00:00
lrn@google.com 0354366832 Mark corelib/list_test/01 as failing on dart2js.
See issue 14616. This behavior is now checked for by a test.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29530 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 11:26:46 +00:00
ngeoffray@google.com 55974b2751 Update status file.
Review URL: https://codereview.chromium.org//49203005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29424 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 09:24:39 +00:00
hausner@google.com e02652a123 Throw CyclicInitializationError instead of string
For some reason, I had to regenerate the snapshot for test standalone/issue14236_source.dart. The checked-in snapshot crashed with my change. We don't know yet why. Siva is looking at this separately.

R=srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29397 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 21:38:57 +00:00
kustermann@google.com 94ebff2225 Bugfix in test.dart, adding of specialized test outcomes for analyzer
This CL will:
 - fix a bug in the legacy AnalyzerCommandOutputImpl class (in certain cases
   we did not report that the analyzer was missing a warning).
 - make the outcome of running the analyzer on a test be one of:
   * CompileTimeError
   * MissingCompileTimeError
   * StaticWarning
   * MissingStaticWarning
 - Make status file updates using the new Expectation markers
 - Remove support for '@static-clean':
     Previously running the analyer on a test could either result in
     'Pass' or in 'Fail'. The '@static-clean' annotation has been used
     as a (poor) mechanism to distinguish between errors and warnings.
     Having the 4 markers mentioned above means we can remove '@static-clean'
 - Remove 100 lines of rotted legacy code in our testing scripts.
 - Make a status file entry for every test that has analyzer errors or warnings

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29350 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-28 10:39:38 +00:00
kustermann@google.com d66aab045d Followup status file update after co19-roll to r641
TBR=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29270 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 18:33:21 +00:00
lrn@google.com b8a3d75996 Add isFinite getter to num.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29067 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 10:21:13 +00:00
iposva@google.com 1860fdef11 - Update status file for dart2dart failure.
Review URL: https://codereview.chromium.org//27623005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28836 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 23:21:12 +00:00
iposva@google.com 210198bc24 - Fix status files for main(args) in Dartium.
Review URL: https://codereview.chromium.org/27731004



git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28834 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 23:07:43 +00:00
iposva@google.com 736d03406e - Add the ability to pass the command line options as an argument to main.
R=asiva@google.com, floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28829 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-17 21:59:46 +00:00
scheglov@google.com 59fd8f58c8 New analyzer_experimental snapshot.
1. "catch (Exception e)" is translated into "on JavaException catch (e)".
2. Java exceptions now extend JavaException.
3. MemberMap moved into resolver, because it is not a generic collection and has references to elements.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28296 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-06 05:11:15 +00:00
floitsch@google.com c542047285 Update status file.
Review URL: https://codereview.chromium.org//25859003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28223 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 15:47:07 +00:00
scheglov@google.com 7bff9958bf 'const' instance creation with incompatible argument types is statis warning.
R=brianwilkerson@google.com, jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28126 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-01 22:08:04 +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
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
lrn@google.com 12c9510193 Update implementations to use Object.identityHashCode for identity map/set
Update map/set constructors to have an .identity() constructor as well.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27869 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 09:43:43 +00:00
kasperl@google.com f77e810f81 First attempt at fixing the status file for chrome-on-android.
R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27601 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 09:56:33 +00:00
sra@google.com ce4b15c0e9 Esoteric bit operations.
- bit length
- truncate to signed fixed width integer
- truncate to unsigned fixed width integer

This change is motivated by a program that spends 20-30% of its time here:
    // TODO(5828): Replace this with a bit-length method on int when available.
    int n_bitLength = this.n.toRadixString(2).length;

See Also
https://code.google.com/p/dart/issues/detail?id=5828#c3
https://code.google.com/p/dart/issues/detail?id=6486#c2
https://code.google.com/p/dart/issues/detail?id=5798#c5
https://code.google.com/p/dart/issues/detail?id=12008

R=lrn@google.com, srdjan@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27269 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-06 22:22:26 +00:00
kustermann@google.com f6ab02857e test.py: Fixed incorrect handling of multitest in status files, status file cleanups.
R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27013 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-02 14:04:59 +00:00
kustermann@google.com 7c2d27bb13 Add again the *necessary* timeout markers for tests running on ie9/ie10
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26930 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 17:32:42 +00:00
kustermann@google.com 4d7311f14b Remove Timeout entries in status files for ie9/ie10
After reducing the load on our IE builders, we hopefully no longer see these
random timeouts.

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26912 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-30 13:39:05 +00:00
ricow@google.com bc8ad29953 Add timeout suppression for corelib/collection_length_test on IE
Filed issue 12844

R=kustermann@google.com, ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26779 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 11:12:26 +00:00
sgjesse@google.com e95bb89f6d Remove some bogus rules from the staus files
R=kustermann@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26357 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 14:19:51 +00:00