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
sgjesse@google.com
6b514b1a0c
Remove all remaining references to dartc
...
R=ricow@google.com
BUG=
Review URL: https://codereview.chromium.org//23301004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26338 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-20 06:17:03 +00:00
ricow@google.com
649079a711
Remove flaky marker for csslib/test/declaration_test
...
This has been fixed in V8 and we rolled in a new version
R=kustermann@google.com
Review URL: https://codereview.chromium.org//22891007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26313 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-19 13:22:38 +00:00
asiva@google.com
84d93c0b09
Fix status file to account for dart2dart minified mode failure
...
(error_stack_trace1_test.dart depends on method names)
R=ahe@google.com
Review URL: https://codereview.chromium.org//22865010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26082 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 20:21:36 +00:00
asiva@google.com
dbd0e8c285
Fix the stack trace when there are C++ frames in between dart frames.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//22938002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26044 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-13 00:16:16 +00:00
zra@google.com
8ffef7528d
Bug fix and status file updates for MIPS HW.
...
R=regis@google.com
Review URL: https://codereview.chromium.org//22828004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26037 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 21:45:41 +00:00
asiva@google.com
33a46a45c6
Fix minor bug which was causing throw of Null to not be recognized properly.
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//22889002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26024 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 19:50:28 +00:00
ahe@google.com
4d4fa32377
Implement Error.stackTrace.
...
BUG=http://dartbug.com/11681
R=bak@google.com
Review URL: https://codereview.chromium.org//22798006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26004 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-12 14:42:02 +00:00
kustermann@google.com
b497bd0a4b
Status file update for tests failing on dart2js-drt after chrome roll
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//22576004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25874 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-07 14:00:56 +00:00
zra@google.com
dad3270d95
Implements far branch targets for MIPS.
...
This change adds a flag --mips-far-branches, which when set causes
relative branches to be converted to absolute branches by determining
the PC, adding the branch offset to it, and using the jr or jalr
instruction to jump if the branch test passes.
This procedure clobbers the assembler temporary TMP, so TMP can no
longer be used in a branch test or in the branch delay slot of a
relative branch. Because TMP can't be used in a branch test, a
new temporary is introduced CMPRES2. This change replaces TMP with
CMPRES1 or another register where TMP can no longer be used.
Tests that were failing due to a too-far relative have the
--mips-far-branches flag set.
R=regis@google.com
Review URL: https://codereview.chromium.org//20369003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25543 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-26 23:30:32 +00:00
fschneider@google.com
082e80d514
Temporarily mark list_test as crashing on MIPS.
...
BUG=https://code.google.com/p/dart/issues/detail?id=11851
TBR=zra@google.com
Review URL: https://codereview.chromium.org//19373004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25060 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 17:38:00 +00:00
scheglov@google.com
cdfb38b317
New analyzer_experimental snapshot.
...
The biggest change is in formatting long list literals.
It looks now better and also does not turn Editor into text mode for couple files.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//18612009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24903 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 01:51:53 +00:00
zra@google.com
e21da288c2
Fixes status file.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//18811009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24899 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-11 00:30:47 +00:00
scheglov@google.com
58e638766c
Report CTEC.ARGUMENT_TYPE_NOT_ASSIGNABLE and extra/not-enough arguments as errors.
...
R=brianwilkerson@google.com , jwren@google.com
BUG=
Review URL: https://codereview.chromium.org//18690009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24790 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-07 18:11:36 +00:00
karlklose@google.com
cf5be8e52c
Fix dart2dart test expectations.
...
R=johnniwinther@google.com
Review URL: https://codereview.chromium.org//18757002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24781 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-05 08:09:04 +00:00
hausner@google.com
98883150d6
Partial solution to analyze potentially constant expressions
...
This change adds code that detects if an expression can definitively
never be constant. We use this to analyze the initializer expressions
in const constructors. This check is not entirely water tight, but
together with the checks in canonicalization code catches most
illegal initializer expressions.
The const constructor of class Symbol turns out to be illegal. The
name verification check can't be part of the constructor code.
R=iposva@google.com
Review URL: https://codereview.chromium.org//18649003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24749 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 20:47:14 +00:00
scheglov@google.com
6c6b88967f
Remove dartc status sections.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//18566003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24735 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 17:50:34 +00:00
floitsch@google.com
5e207df6a4
Revert "Relax method override restrictions."
...
Revert "Update status file."
This reverts commit r24731.
This reverts commit r24732.
Review URL: https://codereview.chromium.org//18652002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24733 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 16:39:51 +00:00
floitsch@google.com
96a6e8d252
Update status file.
...
Review URL: https://codereview.chromium.org//18345017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24732 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 16:37:17 +00:00
floitsch@google.com
77034fe249
Relax method override restrictions.
...
This implements part of issue 11495.
BUG= http://dartbug.com/11495
R=regis@google.com
Review URL: https://codereview.chromium.org//18600007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24731 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 16:20:05 +00:00
floitsch@google.com
cd01e5c5f8
Update status file.
...
Review URL: https://codereview.chromium.org//18348014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24730 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 16:18:00 +00:00
floitsch@google.com
b6d62603e7
Correct status file.
...
Review URL: https://codereview.chromium.org//18259008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24729 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 15:36:16 +00:00
floitsch@google.com
438767ca3a
Add stackTrace to Error object.
...
BUG=
R=lrn@google.com
Review URL: https://codereview.chromium.org//18529003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24726 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 14:51:30 +00:00
zra@google.com
e730b67b10
Fixes bug in mips left shift.
...
R=regis@google.com
Review URL: https://codereview.chromium.org//18053013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24561 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 23:11:13 +00:00
iposva@google.com
ca6b378934
- Update status file for dart2js. Tests have been updated to not
...
use ? operator and thus now "Pass" instead of "Fail,OK".
Review URL: https://codereview.chromium.org//18117003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24542 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-27 19:22:21 +00:00
zra@google.com
bc703b348f
Updates co19 status file for simarm and simmips.
...
Also marks corelib/collection_to_string_test as
Pass, Crash for arm hardware, as it crashes
occasionally.
R=regis@google.com
Review URL: https://codereview.chromium.org//17932003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24489 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 20:54:17 +00:00
kasperl@google.com
1e6c3a1998
Remove support for 'argument definitions test' from dart2js.
...
R=ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//17825002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24455 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-26 08:02:25 +00:00
iposva@google.com
11632110c6
- Revert r24441 until issues found have been addressed.
...
Review URL: https://codereview.chromium.org//17769004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24443 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-25 23:38:45 +00:00