Commit Graph

1365 Commits

Author SHA1 Message Date
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
lrn@google.com 5cd6aace2b Change bool.fromEnvironment to recognize "true" and "false" and use default for rest.
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29672 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 14:05:28 +00:00
lrn@google.com 66959d9dbf Change int.fromEnvironment in VM to use same code as int.parse.
R=fschneider@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29670 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 13:45:39 +00:00
lrn@google.com eb9e33e328 Update documentation on .fromEnvironment. Make bool default be false.
I want more text, and examples of usage, alternative usage, etc.

R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29657 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 09:33:18 +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
floitsch@google.com 0c25691130 improve DateTime parsing a UTC timezone offset
BUG= http://dartbug.com/14550
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29615 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 00:53:21 +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
lrn@google.com dc19265838 Fix test to not assume that JSON.decode returns dynamic.
It currently returns Object.
I have CL to make it do that again, but it's open for discussion.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29527 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 10:37:00 +00:00
lrn@google.com 441688711f Update List constructor documentation. Say that null is not a length.
R=floitsch@google.com, ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29522 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 09:54:45 +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 3a01260611 Remove dart:json
BUG= http://dartbug.com/12843
R=floitsch@google.com, fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29240 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 10:30:34 +00:00
lrn@google.com ff1d105a0f Remove deprecated 'str' getter on Match.
BUG= http://dartbug.com/12843
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29167 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 12:06:41 +00:00
ngeoffray@google.com 581fa005f9 Faster JSNumber:toInt.
R=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29162 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-24 08:44:32 +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
kevmoo@j832.com cf134382a1 Set.add returns true if item has been added, otherwise false
BUG= https://code.google.com/p/dart/issues/detail?id=3546
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28863 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-18 17:24:24 +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
floitsch@google.com 2e7f55b3ce Revert set_to_string_test too.
Review URL: https://codereview.chromium.org//27040002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28522 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 16:03:30 +00:00
floitsch@google.com 005ac979ee Revert toString output changes of Queues, and LinkedLists.
Review URL: https://codereview.chromium.org//27028003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28520 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 15:40:50 +00:00
lrn@google.com 36d28b3f98 Change the toString method of IterableBase/IterableMixin to show some elements.
It always shows at least the first three and last two elements, unless the
iterable has more than 100 elements, in which case it's considered endless.
If there are room for more elements, within some limits, they are also included.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28504 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 10:56:17 +00:00
lrn@google.com 04c230b114 Add Set.lookup method to get the instance in the set.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28499 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-11 07:16:20 +00:00
lrn@google.com e3713a08d4 Make List.shuffle take an optional Random object to use.
R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28305 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-07 12:07:30 +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
rmacnak@google.com b56528fd99 Make the implementations of InstanceMirror.hashCode use dart:core's identityHashCode.
R=ahe@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28229 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 16:38:19 +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
lrn@google.com 55a8a72ca6 Add List.shuffle().
Will add tests too.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28206 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 11:09:01 +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
kasperl@google.com 8eab6f1e7e Manually enqueue compareTo, hashCode, ==, and toString in the Dart-to-Dart backend to avoid tree shaking these methods out. They may be invoked by the VM core libraries.
R=ngeoffray@google.com
BUG=http://dartbug.com/11099

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27927 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 05:12:33 +00:00
sgjesse@google.com 415d53b557 Add property base to the Uri class
Uri.base returns the natural base URI for the current platform.

R=ahe@google.com, floitsch@google.com, iposva@google.com, rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27877 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 13:52:15 +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 cad438b73b Make VM Expando use identityHashCode instead of object's hashCode.
R=fschneider@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27873 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 10:47:35 +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
lrn@google.com c03e58cd99 Add Object.hashCodeOf to get the default hashCode of an object.
BUG= http://dartbug.com/13404
R=floitsch@google.com, iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27865 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-25 08:15:41 +00:00
lrn@google.com 6d49d9f1ac Reapply "Convert HashSet, LinkedHashSet to factory methods and custom implementations."
R=floitsch@google.com, fschneider@google.com, kasperl@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27610 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-18 11:36:25 +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