Commit Graph

2114 Commits

Author SHA1 Message Date
johnniwinther@google.com 1274e083f5 Error produced for missing var, final, const or type on field declarations.
BUG=2997
TEST=tests/language/field_decl_missing_var_type_test

Review URL: https://chromiumcodereview.appspot.com//10690106

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9585 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 09:22:53 +00:00
johnniwinther@google.com fdbabb995e Dartdoc and Apidoc updated to use dart2js through the mirror system.
BUG=3414

Review URL: https://chromiumcodereview.appspot.com//10701091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9584 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 08:52:19 +00:00
antonm@google.com 663662028e Clean sort_helper.dart a bit: remove printing.
R=ngeoffrey@google.com

Review URL: https://chromiumcodereview.appspot.com//10692157

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9580 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 07:24:07 +00:00
gram@google.com e75fb92bcb Added ability to disable logging in mocks, to avoid the memory overhead if you don't need behavior verification of the mock itself.
Changed exceptions to end with periods - seems more Darty.
Review URL: https://chromiumcodereview.appspot.com//10694146

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9575 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 23:32:23 +00:00
gram@google.com b0e10499c3 CallMatchers can now be null, or take null for a method name. This might be
useful if we want to do things like find all method calls that returned a 
certain value.
Review URL: https://chromiumcodereview.appspot.com//10689148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9570 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 19:57:52 +00:00
floitsch@google.com 95847193aa Update status file.
Review URL: https://chromiumcodereview.appspot.com//10690141

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9568 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 19:28:49 +00:00
floitsch@google.com de90cce3e2 Inline compareTo for numbers into min and max.
Review URL: https://chromiumcodereview.appspot.com//10690086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9564 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 19:00:40 +00:00
smok@google.com 8b8c0d1b5b Fix getters/setters unparsing, they appeared as ordinary methods without get/set keywords.
Review URL: https://chromiumcodereview.appspot.com//10698154

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9551 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 16:10:28 +00:00
smok@google.com 3fa18d1a27 Fix unparsing of variable definitions.
Example affecting method with method args:
foo(f(arg)){}

would unparse to:
foo(var f(arg)){}

Also correctly unparse variable definition modifiers.

Review URL: https://chromiumcodereview.appspot.com//10735053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9550 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 14:00:34 +00:00
floitsch@google.com c8cd641308 Fix usage of UNKNOWN/CONFLICTING types for union.
Fixes issue 4033.

Review URL: https://chromiumcodereview.appspot.com//10735051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9547 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 10:34:58 +00:00
podivilov@google.com d816c0104e Remove native_gc_test from html.status (issue 2538 is fixed).
R=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10736029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9546 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 10:20:19 +00:00
lrn@google.com 42f353fad1 Patch methods in classes.
Add math library in corelib/unified. Location subject to change.
Made _Random's implementation external and patched it to use JS random.
Made "external" marking acually work.

Review URL: https://chromiumcodereview.appspot.com//10696147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9544 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 08:47:24 +00:00
smok@google.com b929ce15cc dart2dart fix synthesized constructor appearing in unparser. Don't output it.
For example, if we have:
class A {
}
main() {
  new A();
}

that would result in:
class A{class}...

that "class" is the unparse result of synthesized constructor.

Review URL: https://chromiumcodereview.appspot.com//10735030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9541 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 04:31:36 +00:00
smok@google.com 0842017adc dart2dart support for instantiatin simple top-level class:
class A {
}

main() {
  new A();
}

Review URL: https://chromiumcodereview.appspot.com//10690110

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9506 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 12:41:29 +00:00
podivilov@google.com 4f924e3fca Add test for garbage collected window event listeners issue.
R=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10689120

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9497 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 07:51:20 +00:00
smok@google.com ae080111b6 support unparsing of "new Object()":
main() {
  new Object();
}

Review URL: https://chromiumcodereview.appspot.com//10752002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9496 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 03:13:34 +00:00
gram@google.com 2c125a4cd2 Mocking library improvements:
- Timestamped logs
- Using enum pattern
- Improved verifiers

This is basically the same as the last reverted change but has a few bug fixes 
and now uses the enum pattern.
Review URL: https://chromiumcodereview.appspot.com//10752007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9489 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 22:41:17 +00:00
nweiz@google.com cefb44c63e Have Pub make use of the arg parser.
Also allow non-negatable flags in the arg parser.

Review URL: https://chromiumcodereview.appspot.com//10756011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9488 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 22:13:24 +00:00
regis@google.com 5919998308 Fix static type analysis of closure calls (issue 3959).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10762003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9473 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 18:02:40 +00:00
smok@google.com 2f89b3723f dart2dart: fix top level field declarations.
Unparse:
final String x = "asd";
main() {
  x;
}

used to unparse to:
x="asd"main(){x;}

Now:
final String x="asd";main(){x;}

Review URL: https://chromiumcodereview.appspot.com//10702114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9465 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 12:36:52 +00:00
floitsch@google.com affb3cdf0f capital case OK in status file.
Review URL: https://chromiumcodereview.appspot.com//10693121

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9462 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 09:20:32 +00:00
floitsch@google.com 84fcfdce84 Don't box variables for closures that are assigned only once.
Fixes issue 4001.

Review URL: https://chromiumcodereview.appspot.com//10692122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9461 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 09:10:16 +00:00
floitsch@google.com 608cf10ba8 Update status file.
Review URL: https://chromiumcodereview.appspot.com//10689127

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9460 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 08:15:58 +00:00
floitsch@google.com 4a4532d205 Fix int.compareTo.
In particular we want:
 0.compareTo(-0.0) => 1

Review URL: https://chromiumcodereview.appspot.com//10692099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9459 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 07:57:29 +00:00
floitsch@google.com d356ee6c96 Fix very subtle bug in HNode.changeUse.
Review URL: https://chromiumcodereview.appspot.com//10696120

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9441 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 15:22:00 +00:00
smok@google.com 7b3401dd48 Fix const unparse. Example:
foo([var a = const[]]) {}
used to unparse to:
foo([var a = []]) {}

Review URL: https://chromiumcodereview.appspot.com//10689104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9439 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 12:57:27 +00:00
vsm@google.com 9c4f5eda7f Added Dartium support for JS to Dart PortSync calls
I addressed your test comments from the last cl - sorry for missing the last time.

Review URL: https://chromiumcodereview.appspot.com//10702110

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9431 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 09:33:34 +00:00
vsm@google.com 6b9e8a0ea1 Fix status on JS interop tests for FF
TBR=kasperl

Review URL: https://chromiumcodereview.appspot.com//10696123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9430 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 09:09:44 +00:00
vsm@google.com d14ba572e8 Add support for JS->Dart and Dart->dart via *PortSync.
Review URL: https://chromiumcodereview.appspot.com//10695111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9427 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 08:09:58 +00:00
kasperl@google.com 2b34a9613d Update skip list for IE.
R=efortuna@google.com
BUG=http://dartbug.com/4016
TEST=

Review URL: https://chromiumcodereview.appspot.com//10704107

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9424 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 07:30:36 +00:00
kasperl@google.com 8151ee080c Update status files. More stuff pass.
R=efortuna@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10698107

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9420 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-05 14:00:06 +00:00
kasperl@google.com a9a9ab6b58 Mark more tests as passing on IE.
Lots of stuff works now! More to come.

R=efortuna@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10698105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9419 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-05 12:52:12 +00:00
antonm@google.com 3fa10eee68 Remove DRT specific suppression, should be covered by generic x64 suppression below.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10692089

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9412 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 15:38:19 +00:00
johnniwinther@google.com 45d8cdb032 Mirrors prototype added to dartdoc.
The mirrors system is local to dartdoc and will merged with the VM version at a later point.

TEST=compiler/dart2js/mirrors_test.dart

Review URL: https://chromiumcodereview.appspot.com//10692040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9406 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 13:23:28 +00:00
ager@google.com f29bd5d854 Fix more type intersection stuff.
R=floitsch@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10700104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9403 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 12:20:59 +00:00
lrn@google.com d1da93a393 Reapply "Make patch file import declarations apply to the patched library too."
This reapplies r9346 with the following fix:
Adds #library tag to tests containing #import.
The test web-driver tries to source the file if it doesn't contain
a #library declaration, which isn't valid if it contains #import.

R=floitsch

Review URL: https://chromiumcodereview.appspot.com//10698096

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9401 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 12:02:28 +00:00
vsm@google.com d46aa0663a Mark interop tests as failing on ff/win only
TEST=js_interop_2_test

Review URL: https://chromiumcodereview.appspot.com//10695097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9399 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 11:53:11 +00:00
vsm@google.com ee6d14b911 Fix status for new interop tests on IE, FF
TBR'ing to green the bots.

TBR=kasperl

Review URL: https://chromiumcodereview.appspot.com//10696112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9397 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 11:33:35 +00:00
ager@google.com 72b997b522 Reapply change to update dart2js operator equals semantics to follow the latest spec.
Changes since the version that was reverted are in patch set 2:

1. Fix one remaining dart2js test that relied on the old operator== behavior.

2. Fix type intersection operation to actually take null into account. Because of bounded types they should always use canBeNull.

R=floitsch@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10692087

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9396 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 11:29:47 +00:00
smok@google.com 90424cecb1 Fix unparsing of prefix increments.
http://code.google.com/p/dart/issues/detail?id=3909

Review URL: https://chromiumcodereview.appspot.com//10698092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9393 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 10:31:33 +00:00
kasperl@google.com 647a077cbb Make the new JS interop test pass on Dartium.
Review URL: https://chromiumcodereview.appspot.com//10700102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9392 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 10:30:21 +00:00
vsm@google.com bd6989db8f Mark js_interop_1_test as failing on IE
TBR=kasperl

Review URL: https://chromiumcodereview.appspot.com//10694081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9388 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 09:10:33 +00:00
kasperl@google.com 7c7246fd2e First experimental steps towards a better story for JS interop.
R=vsm@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10700101

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9387 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 08:54:25 +00:00
vsm@google.com 9f42d52c42 Remove broken test
Review URL: https://chromiumcodereview.appspot.com//10696109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9385 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 08:00:22 +00:00
vsm@google.com 6c344183fc Initial tests for JS interop
BUG=625

Review URL: https://chromiumcodereview.appspot.com//10696092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9384 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 07:45:41 +00:00
sra@google.com 8d52ae8d46 Update corelib.statis: list_sort_test and sort_test magically started working on IE.
Review URL: https://chromiumcodereview.appspot.com//10696106

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9382 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-04 00:14:34 +00:00
regis@google.com 09d3ecf285 Compile an instance setter call when a static getter is declared, but no field
or static setter are declared (issue 3941).
Add test.
Review URL: https://chromiumcodereview.appspot.com//10689083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9376 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 20:40:02 +00:00
antonm@google.com adbb70ebe8 Better suppression.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10700091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9372 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 18:48:20 +00:00
antonm@google.com 8417d58a19 Suppress document fragment test on Linux.
TBR=podivilov@chromium.org

Review URL: https://chromiumcodereview.appspot.com//10703071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9371 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 18:17:58 +00:00
antonm@google.com feea13eceb Start emitting top-level functions.
R=smok@google.com

Review URL: https://chromiumcodereview.appspot.com//10692073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9359 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 16:21:54 +00:00