Commit graph

3668 commits

Author SHA1 Message Date
regis@google.com 3f6efe251b Relax assert so that the ia32 disassembler does not choke on C-heap allocated
constant strings.
Review URL: https://chromiumcodereview.appspot.com//10114002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6654 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 19:56:29 +00:00
mattsh@google.com 56d677eb49 added printWarnings option to HtmlDiff
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6653 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 19:03:58 +00:00
kasperl@google.com 02ba487148 Fix remaining warnings.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6648 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:25:11 +00:00
ager@google.com 758943e32a Add read-only environment variable access.
Map<String, String> env = new Platform().environment();

Unfortunately, this is a bit hard to test at this point. I
will move on to implement support for providing an environment
to processes that are started. At that point we can test it
properly.

Another follow-up change will be to remove the instantiation
for Platform. I would like this to be just

Map<String, String> env = Platform.environment();

R=sgjesse@google.com
BUG=dartbug.com/752
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6646 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:20:28 +00:00
hausner@google.com 69d33b8d8d Fix bug 1991, variable resolution in string interpolation
Check to make sure string interpolation expressions cannot
contain type parameter names.
Review URL: https://chromiumcodereview.appspot.com//10108020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6645 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:10:35 +00:00
karlklose@google.com 2cccd55714 Remove SimpleType.
Review URL: https://chromiumcodereview.appspot.com//10105027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6644 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 16:05:09 +00:00
ahe@google.com 49f9fb1425 Make dart2js executable.
Review URL: https://chromiumcodereview.appspot.com//9969209

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6643 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 15:42:37 +00:00
floitsch@google.com 7626a83bc4 Revert "Reapply "Don't try to box immutable objects."
This reverts commit 6639 (again).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6642 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 15:11:11 +00:00
floitsch@google.com 144860c0d9 Reapply "Don't try to box immutable objects."
This reapplies (a fixed version of) commit 6631 which was reverted in commit 6632.

Fix tests (types were wrong).

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6639 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:47:29 +00:00
brianwilkerson@google.com cf0cedfdda Fix for issue 2569
Review URL: https://chromiumcodereview.appspot.com//10066047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6638 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:38:19 +00:00
zundel@google.com 9965d546ab Another case of creating from factory constructors was not taken into account in r6619
http://code.google.com/p/dart/issues/detail?id=2282

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6636 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:36:14 +00:00
floitsch@google.com ddd7475724 Revert "Refactoring if block-information."
This reverts commit 6630.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6635 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:29:29 +00:00
zundel@google.com 4ce241dc76 Revert "Renamed the 'dartc' launch script to 'dart_analyzer' and adds it to dart-sdk"
This reverts r6629.  Breaks the windows editor build in a different way.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6633 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:26:54 +00:00
floitsch@google.com 2bde3de690 Revert "Don't try to box immutable objects."
This reverts commit 6631.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6632 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:20:39 +00:00
floitsch@google.com ccccad3360 Don't try to box immutable objects.
Review URL: https://chromiumcodereview.appspot.com//10091036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6631 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:09:44 +00:00
lrn@google.com 567f1e4beb Refactoring if block-information.
Generalizes block information handling and adds (yet unused) info blocks
for if and logical-and/or.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6630 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 13:02:07 +00:00
zundel@google.com f209ea4140 Renamed the 'dartc' launch script to 'dart_analyzer' and adds it to dart-sdk
Some now unused scripts and files were also removed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6629 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 12:59:39 +00:00
kasperl@google.com 43ff9be2fa Add extends clause to the type parameter for AbstractScanner.
This gets rid of a warning when using the result of calling utf8String inside the implementation.

R=ahe@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6627 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 12:09:41 +00:00
ahe@google.com 56f34d7514 Move cygwin_dir to shared gypi file.
Review URL: https://chromiumcodereview.appspot.com//9877003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6626 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 11:53:56 +00:00
ngeoffray@google.com cd0a23b68b Truley compute direct subtypes of native classes.
Review URL: https://chromiumcodereview.appspot.com//10106019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6625 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 11:37:56 +00:00
kasperl@google.com 192bc8795e Minor fixes to remove some warnings.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6624 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 11:26:25 +00:00
podivilov@google.com 009efe078a Do not delete DOMStringMap and DOMStringList types from idl database.
R=antonm@chromium.org,sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6623 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 10:30:34 +00:00
lrn@google.com 8531ffaa1e Fix type warnings and a few other warnings, and probably even an error.
Mostly warnings introduced by cascade implementation.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6621 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:33:16 +00:00
ngeoffray@google.com 908ce3b4df Fix for issue 2468: also convert Dart closures to Js closures in stubs for native methods.
Review URL: https://chromiumcodereview.appspot.com//10108012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6620 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:32:22 +00:00
zundel@google.com 082190545e Remove warning for using a factory constructor on an abstract class.
http://code.google.com/p/dart/issues/detail?id=2282

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6619 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:30:21 +00:00
ngeoffray@google.com fdcd0cb5c4 Fix for issue 2433: for stubs on native classes, only call a method with a non-mangled name when the method is a JS method.
Review URL: https://chromiumcodereview.appspot.com//10108013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6618 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 09:28:44 +00:00
ngeoffray@google.com 6843835778 Fix issue 2358: dart methods on native classes must also check if the current prototype has the method. If not, we need to re-do the dynamic dispatch to actually hit the subclass implementation of the method.
Review URL: https://chromiumcodereview.appspot.com//10092012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6617 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 08:04:42 +00:00
ngeoffray@google.com 1f8650af80 Add a test for checking that enough positional arguments were passed in.
Review URL: https://chromiumcodereview.appspot.com//10102001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6616 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 07:57:10 +00:00
sgjesse@google.com 20b1747a8a Add missing properties on HttpHeader
R=ajohnsen@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6615 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 07:37:47 +00:00
efortuna@google.com 7e3897e122 Fix install script to deal with unzip for Windows.
Review URL: https://chromiumcodereview.appspot.com//10106012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6614 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 01:07:45 +00:00
regis@google.com 9c9652be6f Implement condition type checks in new compiler, thereby removing last bailouts.
Remove svn:eol-style property on various files.
Review URL: https://chromiumcodereview.appspot.com//9969192

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6613 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-17 00:17:33 +00:00
hausner@google.com 02661e6905 Accept keyword abstract in front of a class declaration
We can just ignore it. The VM has nothing to do for abstract
classes.
Review URL: https://chromiumcodereview.appspot.com//10103014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6612 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:46:55 +00:00
sra@google.com 83161ea194 Fix fremontcutbuilder bug
Also regenerate dom.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6611 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 23:40:58 +00:00
sra@google.com aa51ea5010 Next IndexedDB test - scan with a cursor.
Review URL: https://chromiumcodereview.appspot.com//10079028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6609 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:41:22 +00:00
hausner@google.com 475fbca314 Implement implicit interfaces
Amazingly, this small change is all it seems to take to implement
implicit interfaces.
Review URL: https://chromiumcodereview.appspot.com//10103009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6607 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:21:54 +00:00
rnystrom@google.com a494569dfc Fix HTTP links in URI docs.
Also fixes a bug in our markdown parser where reference links are not
correctly case-insensitive.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6606 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 22:17:53 +00:00
srdjan@google.com e68746422f Fix issue 2125: do not reparse a function being deoptimized.
Review URL: https://chromiumcodereview.appspot.com//10103005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6604 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 21:37:45 +00:00
rnystrom@google.com e34a368125 Fix apidoc build step on Windows.
Review URL: https://chromiumcodereview.appspot.com//10091010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6603 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:58:18 +00:00
turnidge@google.com e5022d70d4 Add fast paths for Smi values in the dart embedding api.
This speeds up the UseDartApi microbenchmark by 30%.  Thanks to Carl
for suggesting this.
Review URL: https://chromiumcodereview.appspot.com//10052027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6602 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:30:37 +00:00
floitsch@google.com 9ffbf450c6 Reapply "Refactor type propagation."
This reapplies (a corrected version of ) commit 6599 which had been reverted in commit 6600.

Original CL: https://chromiumcodereview.appspot.com//10098001

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6601 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:13:49 +00:00
floitsch@google.com ec2bc38e45 Revert "Refactor type propagation."
This reverts commit r6599.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6600 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:06:00 +00:00
floitsch@google.com 31e2a0b5ee Refactor type propagation.
Review URL: https://chromiumcodereview.appspot.com//10098001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6599 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 20:00:02 +00:00
scheglov@google.com 310487fec0 Fix for parsing qualified type in for-in
R=devoncarew@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6598 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 18:27:32 +00:00
rnystrom@google.com 6d53afbeb5 Enable "package:" test on dart2js.
Review URL: https://chromiumcodereview.appspot.com//10069034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6595 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 17:47:42 +00:00
floitsch@google.com 1cf1476ef9 Remove bad semicolon in negative test.
Review URL: https://chromiumcodereview.appspot.com//9972016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6594 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 16:25:21 +00:00
floitsch@google.com 91a1605755 Operator4Test only fails in unchecked mode for frog.
Review URL: https://chromiumcodereview.appspot.com//10095015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6590 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:57:30 +00:00
karlklose@google.com f1f869fbd3 The element of an InterfaceType can also be a TypedefElement.
Committed TBR to fix the build.

TBR=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6589 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:38:29 +00:00
floitsch@google.com 63455dd294 It's CompileTimeConstantPTest/01 that is failing for frog.
Review URL: https://chromiumcodereview.appspot.com//10097019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6588 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:36:12 +00:00
floitsch@google.com 53083ba48a Add issue number.
Review URL: https://chromiumcodereview.appspot.com//10097017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6587 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:30:00 +00:00
karlklose@google.com 3fb96bb8f8 Recommit 'Implement interface types'.
Reviewed as https://chromiumcodereview.appspot.com/9431029

TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6586 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-16 15:23:41 +00:00