codefu@google.com
d5dbe92233
Issue 991: Missing compiler errors for uninitialized final fields
...
http://code.google.com/p/dart/issues/detail?id=991
-Track non initialized fields at declaration for classes
-Verify they are initialized in non-redirect constructors
-Check for duplicate final initialization; add tests and mark VM and Frog
as failing
BUG=
TEST=
Review URL: http://codereview.chromium.org//9081001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2951 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 16:51:55 +00:00
sgjesse@google.com
73c2a13913
Start of thread pool implementation
...
This the initial commit for adding a thread pool to the Dart
server. For now it is hidden behind a flag (--enable_thread_pool)
and when enabled just starts up and processes 100 void tasks.
Mac OS implementation is not tested and Windows implementation is
still pending.
As we are currently not sharing anything between bin/ and vm/ I
have just used pthread calls directly in the Linux and Mac OS
implementation code. However with Monitor and Thread classes from
vm/ the thread pool could be written platform independently. This
can always be changed later.
R=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8983017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2946 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 15:16:06 +00:00
ager@google.com
708ce692b2
Allow using '--option value' as well as '--option=value' in dart test script.
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9091006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2945 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 14:51:05 +00:00
whesse@google.com
cafbd4b453
Add exemption for test-config.dart files to client/tests/dartc/dartc.status.
...
BUG=
TEST=tools/test.py --component=dartc
Review URL: http://codereview.chromium.org//9019045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2944 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 14:49:18 +00:00
ager@google.com
d5696e2026
Change the behavior of open on files to not truncate by default
...
when opening for writing.
We have an explicit truncate method in the API and truncating
the file is a bit hostile to users who want to modify or append
to an existing file. :-)
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9034005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2941 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 12:23:01 +00:00
whesse@google.com
bb7ec07431
Add client/tests/client web tests to the test.dart test script.
...
BUG=
TEST=tools/test.dart --component=dartium,chromium,frogium client
Review URL: http://codereview.chromium.org//9036009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2939 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 11:55:08 +00:00
iposva@google.com
eebc04fa87
- Fix build.
...
Review URL: http://codereview.chromium.org//9008060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2937 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 08:08:39 +00:00
iposva@google.com
346424b9b0
- Add a size field to the header.
...
- Make use of the field when available to avoid accessing the class.
Review URL: http://codereview.chromium.org//9072011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2936 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 08:04:04 +00:00
iposva@google.com
e52e33466e
- Add regression test for issue 1023.
...
Review URL: http://codereview.chromium.org//9091001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2932 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 01:28:25 +00:00
iposva@google.com
d078d62165
Fix issue 1023:
...
- Throw OutOfMemoryException when allocation fails.
Review URL: http://codereview.chromium.org//9030013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2931 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 01:27:57 +00:00
hausner@google.com
3d3ed3720e
Fix issues 968 and 998
...
968: don't crash if no class name given after 'default'
998: eliminate code generator diagnostic output on stdout
Review URL: http://codereview.chromium.org//9072012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2930 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 01:12:04 +00:00
efortuna@google.com
69c162ee4c
Adding 7-zip to third party so that we can zip SDKs on Windows.
...
This is a reincarnation of this CL: http://codereview.chromium.org/9022043
Review URL: http://codereview.chromium.org//9074007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2929 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 00:58:20 +00:00
efortuna@google.com
33c8a3ada3
Changing display of perf graphs to make them more readable.
...
Review URL: http://codereview.chromium.org//9071015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2927 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 23:42:24 +00:00
asiva@google.com
f18a4b2d46
Cleanup some of the tests to use the macro TEST_CASE instead of UNIT_TEST_CASE
...
Review URL: http://codereview.chromium.org//9075008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2926 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 23:25:51 +00:00
zundel@google.com
e215e81abc
Violating type bounds on a new invocation is a static type error, not a compile error
...
http://code.google.com/p/dart/issues/detail?id=1027
Review URL: http://codereview.chromium.org//9016053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2921 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 20:53:39 +00:00
scheglov@google.com
986593e8fa
Remove wrong test, issue 575.
...
http://code.google.com/p/dart/issues/detail?id=575
R=zundel@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9019011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2920 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 19:38:00 +00:00
efortuna@google.com
b7cb80a026
Added readme about performance testing for browser perf setup.
...
Review URL: http://codereview.chromium.org//8815018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2919 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 19:02:32 +00:00
efortuna@google.com
0da8b0a4fa
Fixing upload_sdk for windows.
...
Note CL http://codereview.chromium.org/9022043/ goes with this.
Review URL: http://codereview.chromium.org//9053006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2918 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 18:36:05 +00:00
whesse@google.com
8a7e905d70
Fix tools/test.dart dartc/junit_tests callback type error.
...
BUG=dart:1025
TEST=tools/test.dart --component=dartc dartc/junit_tests
Review URL: http://codereview.chromium.org//9072006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2917 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 17:55:37 +00:00
zundel@google.com
a141090260
Fixes typo in NegativeParserTest and updates test to check for warnings
...
Review URL: http://codereview.chromium.org//9073004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2912 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 15:57:33 +00:00
codefu@google.com
5ed64c70d9
Issue 940 - Exception generating js for prefixed toplevel fields
...
http://code.google.com/p/dart/issues/detail?id=940
Talked to Gilad about the abiguity of language spec between prefix identifiers and method invocation. P.id(...) looks like o.m(...) to the parser at the moment.
Local fields are correctly represented in the AST as unqualified invocations.
R=zundel,mmendez
BUG=
TEST=
Review URL: http://codereview.chromium.org//8956062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2910 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 15:04:28 +00:00
sgjesse@google.com
6b197bb454
Make sure to close when _BaseDataInputStream reaches the end
...
This will close the opened file used by a FileInputStream when the
input stream is read to the end.
Should get rid of the current Windows buildbot redness.
R=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9072004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2907 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 12:26:48 +00:00
sgjesse@google.com
18aba0fd29
Handle reading byte past the end of file
...
When reading a byte past the end of file an error is now triggered.
R=ager@google.com
BUG=dart:1017
TEST=
Review URL: http://codereview.chromium.org//9072003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2906 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 11:16:56 +00:00
sgjesse@google.com
959977140b
Refactor the file input stream
...
Inherit FileInputStream from _BaseDataInputStream.
R=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9067004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2904 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-03 10:17:17 +00:00
whesse@google.com
f245169804
Add --list option to tools/test.dart.
...
BUG=
TEST=tools/test.dart --list
Review URL: http://codereview.chromium.org//9053009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2897 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 13:20:51 +00:00
sgjesse@google.com
b6c38c1763
Update status file
...
Skip test SocketStreamCloseTest on dartium
TBR=antonm@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8952026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2896 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 13:16:36 +00:00
sgjesse@google.com
0010d34ced
Fix checked mode failure
...
TBR=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9065006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2895 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 13:10:48 +00:00
sgjesse@google.com
8055ffeb77
Add close to input stream and cleanup socket and streams
...
* All input streams now have a close method for just cutting
the stream
* Removed interfaces FileInputStream and FileOutputStream
* Added exceptions to socket to avoid mixing stream and non-stream
use of the same socket
* Added special handling of the socket connect handler callback
R=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9029001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2893 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 13:00:59 +00:00
whesse@google.com
ff7c583340
Use blocking file access in tools/test.dart for multitest creation.
...
Speeds up test.dart by a factor of 2, and test.dart --list by a factor of 6.
Test.dart is now only 15% slower than test.py.
BUG=
TEST=tools/test.dart
Review URL: http://codereview.chromium.org//9003017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2889 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-02 11:47:22 +00:00
whesse@google.com
a3a4b50337
Add dartc junit tests to test.dart.
...
BUG=
TEST=tools/test.dart --component=dartc dartc/junit_tests
Review URL: http://codereview.chromium.org//9015005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2885 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 13:16:07 +00:00
antonm@google.com
b84db4fda9
Enable html_tests once again.
...
Review URL: http://codereview.chromium.org//9053008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2884 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 12:57:56 +00:00
sra@google.com
ccbc08a03c
Disable dart:html tests broken by WebKit changes.
...
I hate to do this but it might take a little while to fix and it will be helpful to have client green in the meantime.
Issue 1005 needs to be fixed before these can be re-enabled.
The initXXXEvent methods which these tests use have been removed from WebKit. A workable solution needs to be added to the dart:dom layer.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9015016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2883 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 05:33:37 +00:00
sra@google.com
d646397dda
Work-around for Issue 1005 part (1)
...
CSSStyleDeclaration objects may claim hasOwnProperty is true before
property has been added.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9051011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2881 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 05:03:22 +00:00
iposva@google.com
1b135b4b5a
- Fix try lock on Lion.
...
Review URL: http://codereview.chromium.org//9022041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2880 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 23:05:40 +00:00
sra@google.com
a16ed28ed8
Parse 'static' qualifier in IDL.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9051008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2879 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 22:59:49 +00:00
scheglov@google.com
56c2c7357e
Include compiler tests suite, tweaks for tests.
...
R=codefu@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9034022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2877 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 20:25:17 +00:00
codefu@google.com
b07eeae6d3
Issue 999: NPE from CompileTimeConstantAnalyzer
...
http://code.google.com/p/dart/issues/detail?id=999
R=scheglov@google.com ,zundel@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9052002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2876 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 20:14:27 +00:00
scheglov@google.com
66edafb3ab
Check for abstract method with body and top-level abstract elements, issue 871
...
http://code.google.com/p/dart/issues/detail?id=871
R=codefu@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9015002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2867 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 16:11:19 +00:00
codefu@google.com
e480e8e7fc
Issue926: NPE while traversing nodes + invalid string interpolation
...
http://code.google.com/p/dart/issues/detail?id=926
BUG=
TEST=
Review URL: http://codereview.chromium.org//9006033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2866 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 13:51:26 +00:00
sigmund@google.com
d0171bde41
frog await: allow errors after the await within try-catch blocks.
...
Review URL: http://codereview.chromium.org//9006053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2859 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-28 20:55:09 +00:00
asiva@google.com
2a3eca43a4
Push raw_null instead of smi 0 in all places were we setup the return value location before calling into the runtime.
...
Review URL: http://codereview.chromium.org//8965071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2844 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-28 01:55:58 +00:00
sigmund@google.com
30157e4866
await in frog: partial support for try-catch blocks
...
Review URL: http://codereview.chromium.org//9007053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2840 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-28 00:22:25 +00:00
asiva@google.com
da44923290
Move include of limits.h to globals.h
...
Review URL: http://codereview.chromium.org//9005037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2839 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-28 00:13:57 +00:00
asiva@google.com
bffac87084
Make snapshots 32 or 64 bit compliant by using Write<int64_t> and Read<int64_t> for intptr_t types and adjust Smi values into Smi/Mint or BigInt based on the value read.
...
Review URL: http://codereview.chromium.org//9021042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2838 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-27 23:54:30 +00:00
iposva@google.com
e72f0af364
- Fix a couple near branches that were out of reach.
...
- Implement slow case for AllocateContext and AllocateClosure stubs.
Review URL: http://codereview.chromium.org//9046009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2836 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-27 22:59:54 +00:00
podivilov@google.com
28cef96e4e
Mark html/html_tests as failing in dartium.
...
TBR=antonm@google.com
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2832 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-27 16:20:37 +00:00
ngeoffray@google.com
c01852be32
Do not generate at use site loop phis. It requires live analysis that we currently don't implement.
...
Review URL: http://codereview.chromium.org//9035008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2808 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-23 18:30:21 +00:00
asiva@google.com
59858f6e58
In CheckIsolate process only if we have any unfinalized classes.
...
Review URL: http://codereview.chromium.org//9027025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2798 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-23 00:46:00 +00:00
iposva@google.com
39714313b3
- Return 0 in the unreachable case.
...
Review URL: http://codereview.chromium.org//9022025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2797 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-23 00:31:17 +00:00
iposva@google.com
7d5e5ec8a2
- Promote objects from new gen to old space if they survived a scavenge.
...
- Properly initialize the tags in intrinsified allocation.
- Check for valid tag bits.
Review URL: http://codereview.chromium.org//9027017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2796 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-23 00:14:05 +00:00