hausner@google.com
29f91cc6f4
Implement new catch syntax in vm compiler
...
- Support for new on T catch (e) syntax
- warning (default:off) when old catch clause syntax is found
- convert one language test to used new catch syntax
Review URL: https://chromiumcodereview.appspot.com//10827240
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10456 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:14:18 +00:00
antonm@google.com
69d5071ea7
Process typedefs, referenced from the program.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10854067
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10450 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 17:02:27 +00:00
antonm@google.com
1362e63724
Rename privates directly, not via visitIdentifier.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10837186
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10446 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 15:42:29 +00:00
smok@google.com
e636d1cafd
A visitor that builds a map from node to "Usage".
...
A renamer just renames "usages" according to its type.
This allows us to split various send-guessing logic and renaming.
No scopes yet.
Review URL: https://chromiumcodereview.appspot.com//10836128
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10433 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 07:49:11 +00:00
antonm@google.com
9ff266bcbf
Amend suppressions.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10825272
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10430 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 06:33:10 +00:00
iposva@google.com
de7f866c4a
- Allow patching of top-level methods and accessors.
...
Review URL: https://chromiumcodereview.appspot.com//10824209
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10409 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 17:29:49 +00:00
antonm@google.com
d084d02749
First take on support of library private names.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10826186
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10367 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 08:05:45 +00:00
rnystrom@google.com
0bc9b19740
Rename BadNumberFormatException -> FormatException.
...
Review URL: https://chromiumcodereview.appspot.com//10850034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +00:00
iposva@google.com
8abf2557fa
- Update status for failing analyzer test.
...
Review URL: https://chromiumcodereview.appspot.com//10834202
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10327 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 04:58:46 +00:00
iposva@google.com
fae0217abb
- Add a test for setters without corresponding getters.
...
Review URL: https://chromiumcodereview.appspot.com//10836121
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10326 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 01:16:50 +00:00
srdjan@google.com
a954183877
Do not silently convert integers to doubles in binary operations. Only when at least one of arguments is double can the result be double.
...
Review URL: https://chromiumcodereview.appspot.com//10828189
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10323 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 00:32:22 +00:00
floitsch@google.com
8dc1bbf516
Fix dominatedUsers for phis.
...
Review URL: https://chromiumcodereview.appspot.com//10855004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10288 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 14:12:21 +00:00
antonm@google.com
d26512406d
Properly parse operator declarations without return type.
...
Formerly, 'operator' token was parsed as a return type, fix it.
Emit a space if operator name is 'negative' as otherwise it's
unparsed as 'operatornegative'.
R=ahe@google.com ,smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10836034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10283 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 11:36:11 +00:00
johnniwinther@google.com
3ce4405ced
Revert "Skeleton typedef type implementation"
...
This reverts revision 10234.
Review URL: https://chromiumcodereview.appspot.com//10829168
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10235 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 16:06:19 +00:00
johnniwinther@google.com
21855b3b1a
Skeleton typedef type implementation
...
Review URL: https://chromiumcodereview.appspot.com//10832136
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10234 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 15:48:49 +00:00
ager@google.com
4531c0c770
Remove old isolate API and update all code in the repository to use
...
the new API.
R=kasperl@google.com ,sigmund@google.com ,turnidge@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10837070
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10210 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:24:29 +00:00
smok@google.com
51e85cf70d
Revert resolver from https://chromiumcodereview.appspot.com/10824062
...
and update tests.
Review URL: https://chromiumcodereview.appspot.com//10834146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10209 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:02:31 +00:00
antonm@google.com
4013399dfb
Update test expectations.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10831136
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10195 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 19:19:21 +00:00
hausner@google.com
73366bab9e
Properly skip expressions that contain the operator as.
...
Fix 4277.
Review URL: https://chromiumcodereview.appspot.com//10830130
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10151 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 00:11:09 +00:00
hausner@google.com
db4653f0e0
Add check for duplicate field initialization
...
This change adds a check that reports duplicate initialization
of instance fields. Fixes issues 921 and 1034.
There were several tests in the language suite that had duplicate
initializers for final instance fields. Corrected the tests.
dart2js also contained duplicate initializations of a couple
of final fields.
Review URL: https://chromiumcodereview.appspot.com//10825140
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10146 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 22:25:36 +00:00
scheglov@google.com
9874031222
Issue 4300. Support for 'external' keyword
...
http://code.google.com/p/dart/issues/detail?id=4300
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10823127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10144 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 22:09:49 +00:00
vsm@google.com
25768eaeb5
Revert "Update status for IE"
...
These tests mysteriously started working in r9839 and breaking again
when I partially rolled it back in r10118. Only IE is affected.
On the surface, the change (noSuchMethod on a DOM type) looks
completely unrelated to the tests, but it's obviously causing a lot of
unintended changes. It was rolled back due to massive code size
increase.
TBR=kasperl,efortuna
I'll file a bug.
Review URL: https://chromiumcodereview.appspot.com//10821130
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10120 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 16:16:36 +00:00
antonm@google.com
467f3c5d6e
Some more triage.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10837036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10111 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 07:33:05 +00:00
antonm@google.com
699a1eedac
Some more triage.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10829119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10110 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 07:12:04 +00:00
antonm@google.com
a129698199
Some more triage.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10825129
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10109 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 07:02:25 +00:00
antonm@google.com
4a6768c7b2
Some more triage.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10843024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10108 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 06:50:23 +00:00
antonm@google.com
b7dde2a807
Some more triage.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10821123
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10107 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 06:44:56 +00:00
antonm@google.com
7bc0e0d9a3
Properly emit variable declarations.
...
VariableElements share definition in VarialbleListElement, so it should be
only output once.
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10837025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10082 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 18:56:00 +00:00
antonm@google.com
cec30e74df
Support type annotations for list literals.
...
R=ahe@google.com ,smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10849002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10075 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 17:56:34 +00:00
antonm@google.com
d39132ea71
Fix interpolation unparse.
...
Formerly, string interpolation parts were put into a node list with null
delimiter, which was converted to single space string. That lead to extra
space when unparsing interpolation: '$a $b' -> '$a $b'.
Make empty string delimiter explicit and do not augument it with an additional
space.
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10824113
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10073 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 17:43:50 +00:00
antonm@google.com
89251a2862
Triage some more tests.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10838003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10063 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 16:01:58 +00:00
antonm@google.com
d6636e3ede
Properly emit and rename generic types.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10832083
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10061 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 15:47:07 +00:00
antonm@google.com
eb2fd0a0af
Properly rename new <class>.<factory> expressions.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10826083
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10059 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 15:05:17 +00:00
smok@google.com
473c435bc7
dart2dart Fix default class unparse and extends class/interface unparse with type arguments.
...
Review URL: https://chromiumcodereview.appspot.com//10844002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10057 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 14:29:43 +00:00
antonm@google.com
6065dd688b
Properly unparse as operator.
...
It requires spaces like 'is' does.
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10828093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10055 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 12:46:56 +00:00
antonm@google.com
839db23c5b
Triage class_extends_negative_test.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10830094
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10054 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 12:40:51 +00:00
antonm@google.com
37254909d3
Better cascade support.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10843002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10053 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 12:15:11 +00:00
antonm@google.com
50ef55d111
Support cascade receivers.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10821101
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10048 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 09:39:26 +00:00
antonm@google.com
751c4e0ca4
Call operator is not supported by dart2js frontend.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10837016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10046 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 08:41:35 +00:00
antonm@google.com
f92b250772
Triage assign_static_test.
...
Apparently dart2dart test framework incorrectly treats test annotations:
necessary exceptions are thrown, but they are mistreated.
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10827097
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10045 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 08:39:16 +00:00
antonm@google.com
6f8067bc75
Triage abstract_syntax_test.
...
Another instance of incorrect treatment of keywords.
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10823098
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10044 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 08:33:25 +00:00
smok@google.com
1651f0d54a
Record 'implements' keyword for class declaration nodes.
...
Do not record 'implements' or 'extends' in NodeList of implemented interfaces.
Review URL: https://chromiumcodereview.appspot.com//10786028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10042 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 08:27:13 +00:00
antonm@google.com
beb0a3c380
Support signed constants.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10828076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10039 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 08:01:18 +00:00
antonm@google.com
275eb80dff
Suppress tests for external keyword.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10828089
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10038 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 07:53:32 +00:00
iposva@google.com
e5a314d222
- Allow parsing of external methods.
...
Review URL: https://chromiumcodereview.appspot.com//10821076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10028 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 22:46:24 +00:00
antonm@google.com
ef1fa326b2
Some more triage.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10821093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10025 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 19:56:07 +00:00
antonm@google.com
3255d88374
Triage some more tests.
...
TBR=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10821092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10022 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 19:13:48 +00:00
antonm@google.com
5b3d4c6ddc
Support imports for dart: libs.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10829076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10015 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 15:37:28 +00:00
smok@google.com
3ba530752e
Fix broken build, language/function_type_alias6_test test now
...
fails or crashes in different environments.
TBR=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10830064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10004 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 06:21:42 +00:00
smok@google.com
ac8d991870
dart2dart
...
Several fixes for more robust renaming of type annotations and Send-s:
Correct renaming of class interfaces with type arguments, renaming
of global functions, constructor and named constructor calls, static
field accesses.
Review URL: https://chromiumcodereview.appspot.com//10824062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10003 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 05:27:58 +00:00