Commit graph

87586 commits

Author SHA1 Message Date
dgrove@google.com beef9a8baa update codereview.settings for open-sourcing.
Review URL: http://codereview.chromium.org//8218001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@293 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 06:43:32 +00:00
dgrove@google.com e2b593358c pin version number of DumpRenderTree
TBR=vsm
Review URL: https://chromereviews.googleplex.com/3576016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@292 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 22:53:26 +00:00
mmendez@google.com 6091c0dc03 When running with with --warn_no_such_type the backend would assert on non-existent types. Previously, we would add a default ctor to a non-existent type.
In this patch, we don't add ctors to non-existent types and we generate NSME's for instantiation of non-existent types or types with non-existent ctors.

BUG=5433121

Review URL: https://chromereviews.googleplex.com/3563019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@283 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 05:02:07 +00:00
zundel@google.com 3866a85d54 Avoid crashing on new invocations that are not fully resolved.
R=mmendez@google.com

Review URL: https://chromereviews.googleplex.com/3568019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@282 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-09 04:47:04 +00:00
zundel@google.com 870da8ef9d Fixing bad merge in CommandLineOptions
Review URL: https://chromereviews.googleplex.com/3565017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@276 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:31:25 +00:00
zundel@google.com 4ccb7c5810 Add --enable-type-checks to allow certain resolution errors to be non-fatal
This is to match the  behavior outlined in Gilad's
"Optional Types in Dart" document.  Extra type checks are turned
on when --enable-type-checks is passed on the command line *or*
optimization mode is enabled in the compiler.

See also https://chromereviews.googleplex.com/3563014/

Review URL: https://chromereviews.googleplex.com/3561023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@275 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 15:11:10 +00:00
dgrove@google.com cab9ea690f 1. fix broken htmlconverter.py
2. add back js as target for htmlconverter.py
Review URL: https://chromereviews.googleplex.com/3568018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@273 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 07:37:52 +00:00
mmendez@google.com 8d341582c5 Fix build break introduced by r271.
I copied the TypeTest.dart to TypeVMTest.dart, but forgot to update the file name used by the test accordingly.

TBR=iposva

Review URL: https://chromereviews.googleplex.com/3568017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@272 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 04:33:51 +00:00
mmendez@google.com fc7390d97b Add support for --enable_type_checks (developer mode) for dartc.
This patch is based on https://chromereviews.googleplex.com/3520019/.  However it addresses the following issues:

1) TypeError exceptions will now have the stack trace filled in.
2) Type parameters are now accessible from closurized code, including the trampoline shims for named optinal parameters.
3) Suppress use of FunctionExpressionInliner with type checks because the inline normalization can leave return nodes in the AST.
4) Pass the generateHumanReadableOutput flag to the closure backend.
5) TypeDartcTest passes in debug and release modes with type checking enabled.  We still need to enable the additional cases in the code.

Review URL: https://chromereviews.googleplex.com/3558021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@271 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 04:11:34 +00:00
johnlenz@google.com 179f836439 Fix source map stack deobfuscation for test runner.
Review URL: https://chromereviews.googleplex.com/3573020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@270 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 01:50:04 +00:00
eub@google.com 7fb89bc64e Add --verbose and --dartc_extra_flags flags to update.py.
Review URL: https://chromereviews.googleplex.com/3577021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@269 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 00:12:06 +00:00
jacobr@google.com 9192c5ec37 Modify client.status as swarm tests now pass.
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3577022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@268 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-08 00:02:34 +00:00
regis@google.com 6b6d732d3a Inline type checks for num, int, double, bool, String, and Function interfaces.
Review URL: https://chromereviews.googleplex.com/3557013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@267 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 23:52:29 +00:00
jacobr@google.com ddaacbe83b checkpoint
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3556012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@265 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 23:29:39 +00:00
sigmund@google.com 4505632927 build bot: fixing pattern so that version of dartium + vm shows correctly in waterfall.
Review URL: https://chromereviews.googleplex.com/3572016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@262 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 21:26:59 +00:00
sigmund@google.com 755cd7ec8b htmlconverter.py: allow .html + .htm file extensions, disallow all others.
Review URL: https://chromereviews.googleplex.com/3567016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@261 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 21:17:04 +00:00
sra@google.com 8af240c0cc Tests for passing falsy values to named arguments.
Fixes type error in previous version.

BUG=3530015
TEST=

Review URL: https://chromereviews.googleplex.com/3561022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@260 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:55:07 +00:00
codefu@google.com 015f74d3c1 dart:html, woohoo!
Review URL: https://chromereviews.googleplex.com/3577020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@259 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:45:19 +00:00
knorton@google.com 186d2a1cc2 Removed refernce to GoogleCodeStyle.xml from README.txt
Review URL: https://chromereviews.googleplex.com/3579014/

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@258 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:38:14 +00:00
sra@google.com 62d265fb4e Revert "Tests for passing falsy values to named arguments."
This reverts commit 75ee354c00e07fd209c8e60c3f588e55eaac7299.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3581014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@257 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:23:28 +00:00
sigmund@google.com e6eb1f62a1 get_drt.py: fix to remove race with dartium bot during downloads
Review URL: https://chromereviews.googleplex.com/3561021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@256 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:06:22 +00:00
sra@google.com bead816a8c Tests for passing falsy values to named arguments.
BUG=5419670
TEST=

Review URL: https://chromereviews.googleplex.com/3530015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@254 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 20:00:39 +00:00
sigmund@google.com 4c9be10f18 Remove my email
Review URL: https://chromereviews.googleplex.com/3578016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@253 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:54:03 +00:00
johnlenz@google.com f2639e3a79 Add Dart RTT info to the Function prototype
Review URL: https://chromereviews.googleplex.com/3573017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@252 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:32:49 +00:00
floitsch@google.com 385e90dd3b Remove my mail from some of the files.
Review URL: https://chromereviews.googleplex.com/3573018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@251 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:28:26 +00:00
jbrosenberg@google.com 7f4d06ec8d Fixed args passed to metrics scripts
R=codefu

Review URL: https://chromereviews.googleplex.com/3573019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@250 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 19:06:02 +00:00
regis@google.com 820653338a Avoid accessing the object store when checking for var class or void class.
Review URL: https://chromereviews.googleplex.com/3562016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@249 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:31:02 +00:00
sigmund@google.com 05b0b0ba29 get_drt + client bots: fix google-storage source location for archives
Review URL: https://chromereviews.googleplex.com/3583012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@248 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:27:18 +00:00
rchandia@google.com 770771127b Deactivates ANSI colors on errors for non-interactive consoles
R=zundel@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3572015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@245 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:06:23 +00:00
hausner@google.com 51bfa4841e Supercall skipping
Trivial change. Fixes b/5384453
Review URL: https://chromereviews.googleplex.com/3570015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@244 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 18:02:30 +00:00
sigmund@google.com 5c68f6de7c get_drt.py: remove extra printing
Review URL: https://chromereviews.googleplex.com/3558018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@243 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 17:49:37 +00:00
jgw@google.com d0cd03b159 Revert "Changed error messages to report the URI of the offending file, rather than its "name"."
Review URL: https://chromereviews.googleplex.com/3566013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@240 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 17:23:04 +00:00
jgw@google.com 340daa5ed0 Changed error messages to report the URI of the offending file, rather than its "name".
Now you can actually find them.

Review URL: https://chromereviews.googleplex.com/3569014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@237 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 16:46:07 +00:00
jbrosenberg@google.com 115edafe88 update compiler_compare.sh to point to new repo
Review URL: https://chromereviews.googleplex.com/3568012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@232 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 16:02:07 +00:00
ngeoffray@google.com d9f0ae9d05 Update status file.
Review URL: https://chromereviews.googleplex.com/3577017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@231 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 16:01:19 +00:00
floitsch@google.com e143f6c81f Improve doc for isolates.
Also make Isolate.main abstract.

Review URL: https://chromereviews.googleplex.com/3567015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@230 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 15:46:33 +00:00
zundel@google.com d82c272940 Fix exception message in get_drt.py
Exception threw an exception when the command failed!

Review URL: https://chromereviews.googleplex.com/3559014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@229 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 15:31:49 +00:00
ngeoffray@google.com 96303f1dab Use import directives instead of --expose_core_impl.
Review URL: https://chromereviews.googleplex.com/3561018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@227 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:56:12 +00:00
ngeoffray@google.com ade74afb71 Mark test as SKIP because it apparently passes when running at the top-level (which is what the wiki says for running tests).
Review URL: https://chromereviews.googleplex.com/3580012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@225 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:52:36 +00:00
srdjan@google.com 3e702c53d7 Fix bool type checks for checked mode. Fast case is now always executed.
Review URL: https://chromereviews.googleplex.com/3577016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@224 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:51:45 +00:00
ngeoffray@google.com 57ef47426c Add #library directives to make browser testing happy.
Review URL: https://chromereviews.googleplex.com/3574016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@222 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:28:18 +00:00
floitsch@google.com 6a5e62c07e Add a double.compareTo test.
Review URL: https://chromereviews.googleplex.com/3561015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@221 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:16:29 +00:00
ngeoffray@google.com 672b792a6b --expose_core_impl does not work on chromium right now.
Review URL: https://chromereviews.googleplex.com/3567014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@220 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 14:08:21 +00:00
ngeoffray@google.com 475a9ab9f6 You shall run checked and unchecked tests!
Review URL: https://chromereviews.googleplex.com/3567013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@219 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:56:46 +00:00
ngeoffray@google.com 394ddb3f29 Checked mode is soooo right.
Review URL: https://chromereviews.googleplex.com/3577015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@218 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:50:39 +00:00
ngeoffray@google.com 934801b8fd Add maps.dart in corelib_impl.dart of DartC.
Review URL: https://chromereviews.googleplex.com/3570014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@217 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:49:42 +00:00
antonm@google.com 3d26b7d9f0 Introduce Maps.
This class helps to implement Map interface provided you have basic operations
like [], []=, remove and getKeys.

Review URL: https://chromereviews.googleplex.com/3549015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@216 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:36:51 +00:00
ngeoffray@google.com 7f7ee4a02b Address feedback and add more comments to the new range methods.
Review URL: https://chromereviews.googleplex.com/3568013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@214 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 13:12:55 +00:00
ngeoffray@google.com 8b8b4844fa Add default arguments for regexp flags.
Review URL: https://chromereviews.googleplex.com/3558016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@213 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 12:47:56 +00:00
floitsch@google.com 312a19af39 Add INFINITY, NAN and NEGATIVE_INFINITY to double.
Review URL: https://chromereviews.googleplex.com/3572013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@212 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 11:49:02 +00:00