johnlenz@google.com
c3cb970918
Fixed alignment of named parameters in the presents of captured scopes
...
Review URL: http://codereview.chromium.org//8347002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@517 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 18:00:04 +00:00
ngeoffray@google.com
c0665b7f29
Remove print from MathVMTest and update status file to refer to dom 'print' bug.
...
Review URL: http://codereview.chromium.org//8339018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@509 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 15:10:03 +00:00
ngeoffray@google.com
7a76e86b18
Fix test to use developer mode. DartC does not have to check arguments to native methods.
...
Review URL: http://codereview.chromium.org//8334015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@506 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 09:23:14 +00:00
hausner@google.com
ab37c41e1d
Interpolated strings are never considered compile time const
...
Review URL: http://codereview.chromium.org//8318031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@500 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:51:28 +00:00
regis@google.com
74420600b1
Verify method overrides in checked mode only (fix issue 69).
...
Review URL: http://codereview.chromium.org//8319020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@489 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:00:09 +00:00
srdjan@google.com
76f932ce14
Add test for blacklisting extension/implementation of classes and interfaces. Added a few tests, please comment which additional ones need to be added.
...
Review URL: http://codereview.chromium.org//8320002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@481 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:43:42 +00:00
johnlenz@google.com
69a08abbbd
Namespace named parameters to avoid conflicts
...
Review URL: http://codereview.chromium.org//8301002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@480 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:31:09 +00:00
zundel@google.com
20a34d063b
This adds checks for compile-time constants in places
...
where the spec demands it:
- initializing toplevel finals
- initializing static final class members
- initializing named parameters to functions
Review URL: http://codereview.chromium.org//8231031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@468 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 14:12:33 +00:00
srdjan@google.com
934409878a
Fix for bug 5442338 (crash in deoptimization): when optimized code calls deoptimization stub, check if the function was already deoptimized previously before attempting to restore unoptimized code.
...
Add test case when optimized code of a deoptimized function is several time on stack, and deoptimization occurs after the function was already deoptimized.
Review URL: http://codereview.chromium.org//8311017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@465 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 11:27:22 +00:00
regis@google.com
dc895f3138
Rename class AssertError to AssertionError in the VM (fix issue 119).
...
Move VM specific tests to the correct tests directory.
Enable asserts in the VM when type checks are enabled.
Review URL: http://codereview.chromium.org//8294005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@460 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 22:02:50 +00:00
johnlenz@google.com
bd867bb9bc
Add missing file from the last assert change.
...
Review URL: http://codereview.chromium.org//8289012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@454 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 21:12:38 +00:00
jat@google.com
d8d8507c7e
Add a test that verifies that rethrow ("throw;") throws the expected exception.
...
R=mmendez,kasperl
Review URL: http://codereview.chromium.org//8271018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@448 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 17:59:47 +00:00
johnlenz@google.com
8ae66721f8
Update assert to follow the spec.
...
Review URL: http://codereview.chromium.org//8276014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@446 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 17:38:03 +00:00
karlklose@google.com
7ab879eb30
Implement correct resolving of library private members.
...
Make findElement take the library into account when looking up _-prefixed members.
Review URL: https://chromereviews.googleplex.com/3531017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@425 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 08:58:10 +00:00
asiva@google.com
002d5698e0
Update language test status file.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@415 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:49:39 +00:00
asiva@google.com
a245caee10
Update dartc test status.
...
Review URL: http://codereview.chromium.org//8286005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@413 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:26:00 +00:00
hausner@google.com
13da6d834f
Create implicit super constructor call if necessary
...
Create an implicit call to the super constructor if no explicit
call is present, and also if the constructor does not have an
initializer list at all.
The evaluation order is still not conforming to the spec. Thus,
a couple of tests that happened to pass before now fail.
Fix issue 85
https://code.google.com/p/dart/issues/detail?id=85
Review URL: http://codereview.chromium.org//8286003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@412 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:16:38 +00:00
asiva@google.com
60f1913eb2
Changes to handle unresolved qualified identifiers.
...
Review URL: http://codereview.chromium.org//8247014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@411 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:09:21 +00:00
asiva@google.com
b1895e13d2
Add negative test for detecting error when the same library is imported twice.
...
Review URL: http://codereview.chromium.org//8247013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@410 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 20:07:08 +00:00
jat@google.com
a2ecb69279
Detect re-throws outside of a catch block.
...
R=johnlenz
Review URL: http://codereview.chromium.org//8247007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@407 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 18:22:58 +00:00
floitsch@google.com
5460fe1206
Add negative test for setters in initializer list.
...
Review URL: http://codereview.chromium.org//8246004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@399 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 15:04:18 +00:00
sra@google.com
50b99ad85d
Add tests for named parameters that have names of JavaScript properties of Object.prototype.
...
BUG=5447476
TEST=
Review URL: http://codereview.chromium.org//8257001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@386 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-13 01:12:51 +00:00
jbrosenberg@google.com
0ecdacb6d0
Don't allow a #source directive in a library unit include itself
...
Review URL: http://codereview.chromium.org//8229028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@383 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 22:25:21 +00:00
sra@google.com
9f50706f03
Test for named parameter called 'count'.
...
Currently fails on dartc because the optional argument count is put in
the same object as the optional arguments.
BUG=5447476
TEST=
Review URL: http://codereview.chromium.org//8229041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@381 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 21:46:26 +00:00
floitsch@google.com
60add15c21
Add test that checks that the default constructor is called.
...
Review URL: http://codereview.chromium.org//8208011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@373 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 19:03:34 +00:00
johnlenz@google.com
7bc0683761
Add support for exception rethrowing using "throw;"
...
Review URL: http://codereview.chromium.org//8208016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@372 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 18:56:01 +00:00
hausner@google.com
08a5cffb3b
Implement index operator super call
...
Last portion of super operator calls.
Review URL: http://codereview.chromium.org//8234022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@359 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:50:19 +00:00
johnlenz@google.com
6701769d35
Fix named parameters handling of values that are falsy in JS, also fixes issues with named parameters that whose "default" value should default to "null".
...
Review URL: http://codereview.chromium.org//8232014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@358 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 23:43:20 +00:00
hausner@google.com
a487770657
Implement super operator calls
...
Review URL: http://codereview.chromium.org//8222015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@335 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-11 16:49:35 +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
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
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
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
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
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
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
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
jgw@google.com
87d272b003
Fully removes support for positional parameters with default values.
...
Review URL: https://chromereviews.googleplex.com/3576012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@204 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 09:18:48 +00:00
sra@google.com
56cc8ce66f
Test for deeply nested parameterized types.
...
BUG=
TEST=
Review URL: https://chromereviews.googleplex.com/3543014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@171 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 23:11:00 +00:00
regis@google.com
db3a736c33
Support optional named arguments at the dart_entry level in the VM.
...
Fix bug 5422033: Const expressions don't work with named arguments.
Review URL: https://chromereviews.googleplex.com/3552015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@168 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:40:45 +00:00
zundel@google.com
6bd18f8086
Fix name shadowing problem in compiler
...
Names in a scope should create shadow copies of names in enclosing scopes.
BUG=5382396
Review URL: https://chromereviews.googleplex.com/3543020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@147 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 19:17:31 +00:00
srdjan@google.com
44392fdb03
Fix resolving of implicit closures: treat null objects same as instances of Object.
...
Review URL: https://chromereviews.googleplex.com/3551013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@138 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 16:31:31 +00:00
floitsch@google.com
fdf276dd2a
Add test for const constructions with named arguments.
...
Review URL: https://chromereviews.googleplex.com/3530018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@134 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:56:33 +00:00
zundel@google.com
fa609a58ec
Updates the resolver to print the line and column number for name conflicts
...
Along the way I gave the ResoverTest more specific errors to test
against and found some cases that weren't being flagged properly
as errors.
BUG=5415945
Review URL: https://chromereviews.googleplex.com/3544012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@132 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:35:05 +00:00
zundel@google.com
d13c2d80f7
Simplifies a couple of tests that are failing in the compiler.
...
This doesn't actually fix anything, just makes a couple of tests simpler.
These tests are meant to test the visibility of symbols in libraries,
but there was some extra baggage in the test that might make it
fail for unrelated reasons.
BUG=5406175
Review URL: https://chromereviews.googleplex.com/3536017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@118 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 13:51:37 +00:00
floitsch@google.com
15727ed074
Rename DateTime to Date.
...
Review URL: https://chromereviews.googleplex.com/3529013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +00:00
ngeoffray@google.com
eebda50623
Update status file to reflect what's implemented in dartc and fix bot.
...
Review URL: https://chromereviews.googleplex.com/3551014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@104 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:28:21 +00:00
ngeoffray@google.com
d42cadb575
Remove directory because it clashes with the existing runtime/tests/dart.
...
Review URL: https://chromereviews.googleplex.com/3502035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@102 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:38:43 +00:00