Commit Graph

92 Commits

Author SHA1 Message Date
scheglov@google.com acca1aaf61 Issue 4543. Use complete Resolver before constants analyzer
http://code.google.com/p/dart/issues/detail?id=4543

This allows us to use resolved Elements for all nodes, without duplicating Resolver functionality.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10902 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 15:58:11 +00:00
ahe@google.com 73f8d23447 Adjust bug number
Review URL: https://chromiumcodereview.appspot.com//10823368

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10842 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 17:05:58 +00:00
ahe@google.com 63cf05a386 Update status file for the analyzer (nee dartc).
Review URL: https://chromiumcodereview.appspot.com//10832344

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10839 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:59:35 +00:00
ahe@google.com 4174c7cfcf Update status file for dummy_compiler.
Review URL: https://chromiumcodereview.appspot.com//10836289

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10828 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:18:09 +00:00
ricow@google.com d2bcca8b32 Update status for dummy compiler, we don't fail this in checked mode anymore
Review URL: https://chromiumcodereview.appspot.com//10836288

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10820 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 14:01:21 +00:00
ricow@google.com 112185f725 Add slow marker for utils/dummy_compiler_test in checked mode.
Cutting the standard timeout in half caused this to now timeout instead of failing. 
Review URL: https://chromiumcodereview.appspot.com//10837280

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10788 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 05:45:04 +00:00
dgrove@google.com 39889f6270 Move dartdoc from lib/ to pkg/ .
Reviewed at desk by rnystrom, since gcl upload fails when there
are binary images in the change.

TBR=rnystrom@google.com



git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10776 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 22:59:55 +00:00
ricow@google.com 942e3cf4c1 Add a support for a slow marker in status files.
The reasoning for this is that we want to have a sufficiently low
timeout to catch performance regressions, but still want to maintain
the support for having a few tests that takes a longer time to
complete.

This cl adds 2 slow functions, I will add more if any additional tests timeout on the buildbot.
Review URL: https://chromiumcodereview.appspot.com//10854156

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10714 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 11:55:44 +00:00
dgrove@google.com c265902bea Move unittest from lib to pkg.
Review URL: https://chromiumcodereview.appspot.com//10836241

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10685 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:36:59 +00:00
sigmund@google.com 26eed674ba Fix layout tests.
Review URL: https://chromiumcodereview.appspot.com//10854075

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10462 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 21:52:07 +00:00
antonm@google.com e79a8e543a Update .png file.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10277 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-06 08:21:54 +00:00
iposva@google.com 37c88890bb - Fix type in URI test.
Review URL: https://chromiumcodereview.appspot.com//10826114

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10170 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 14:26:36 +00:00
ahe@google.com 1e0c2471a5 Changed default Uri constructor to Uri.fromComponents(), new default constructor is Uri.fromString(). This is to avoid new Uri('http://www.google.com') resulting in Uri with scheme='http://www.google.com'.
Committing on behalf of: Alexander Aprelev <aprelev@gmail.com>

BUG=dart-3348
TEST=new Uri('http://www.google.com') is the same as new Uri.fromString('http://www.google.com') same as new Uri.fromComponents(scheme:'http', domain:'www.google.com')

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10168 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 13:48:30 +00:00
smok@google.com 4412f8653f dart2dart Skip non-language tests, leave yaml too.
Review URL: https://chromiumcodereview.appspot.com//10823079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10014 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 13:50:54 +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
antonm@google.com 74d17a16f9 dart2dart compiler support.
R=whesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9880 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 11:20:41 +00:00
sigmund@google.com be52d28a66 fixing drt-trampoline
BUG=http://dartbug.com/3917

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9230 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 21:55:40 +00:00
sigmund@google.com 2d02962131 disable layout tests in mac or windows(not tested)
TBR=efortuna@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9209 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 17:30:10 +00:00
sigmund@google.com 25a24b69a5 Adds support for layout tests.
Review URL: https://chromiumcodereview.appspot.com//10683009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9207 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 17:05:10 +00:00
ahe@google.com caa708cddb Update dart2js to use diagnostic kinds.
Review URL: https://chromiumcodereview.appspot.com//10579015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8843 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-19 13:48:13 +00:00
gram@google.com 9b79e27e17 Some unit test fixes:
Fixed a couple of issues in the ensureInitialized() function.
Added expectAsyncUntil methods to support callbackDone style tests.
Split the matcher tests up so that we can exclude those that use isInstance
from the environments where they don't work.
Eliminated the need for two functions calls in throws/throwsA.
Fixed some tests.
Changed some uses of Expect to expect.
Fixed a bug when using expectAsync with a count of zero.
Fixed a bug where we weren't updating the call count in invoke0/1/2.
Made expect behave sensibly in cases where the user doesn't supply a 
matcher (e.g. expect(foo, 0)). USing the predicate form with a 
reason now requires a named parameter.
Review URL: https://chromiumcodereview.appspot.com//10544167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8753 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 23:17:57 +00:00
zundel@google.com 1b7f8307d2 A redirect constructor cannot reference an instance method.
See issue http://code.google.com/p/dart/issues/detail?id=2105

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8685 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 20:32:33 +00:00
gram@google.com 0aceb0c410 Revert 8668
Review URL: https://chromiumcodereview.appspot.com//10539163

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8673 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 17:27:21 +00:00
gram@google.com 0a8476dfcc Some unit test fixes:
Fixed a couple of issues in the ensureInitialized() function.
Added expectAsyncUntil methods to support callbackDone style tests.
Split the matcher tests up so that we can exclude those that use isInstance
from the environments where they don't work.
Eliminated the need for two functions calls in throws/throwsA.
Fixed a couple of tests.
Review URL: https://chromiumcodereview.appspot.com//10545167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8668 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 16:40:28 +00:00
rnystrom@google.com a1c7361583 Add matchers for unit testing futures:
- completes
- completion()

Also made throws and throwsA() work with futures.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8632 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 22:49:24 +00:00
gram@google.com f77eb9e22e Fixed a mismatch describer with unreachable code.
Commented out isInstance tests that are causing issues with dart2js.
Review URL: https://chromiumcodereview.appspot.com//10539029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8368 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 23:01:28 +00:00
gram@google.com 29342005b3 Fix problems that occur in checked mode.
Review URL: https://chromiumcodereview.appspot.com//10541035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8360 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 20:40:29 +00:00
gram@google.com d2efc58b00 New expectation functions plus convert old tests to use these.
Review URL: https://chromiumcodereview.appspot.com//10441104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8355 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 20:15:58 +00:00
ngeoffray@google.com 2cb4416340 Use the typedef arity to know how to invoke a closure given by the dom.
Review URL: https://chromiumcodereview.appspot.com//10441071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8067 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 15:53:54 +00:00
ngeoffray@google.com 5ca4106a51 Skip dart2js/firefox until we fix issue 2615.
Review URL: https://chromiumcodereview.appspot.com//10449049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8045 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:41:29 +00:00
ngeoffray@google.com 3542e0bc07 Status file update to have dart2js/chrome/mac green.
Review URL: https://chromiumcodereview.appspot.com//10459006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8037 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 08:55:40 +00:00
ahe@google.com 355f5303a5 Add --package-root option to the compiler.
Review URL: https://chromiumcodereview.appspot.com//10407092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7849 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-22 12:49:49 +00:00
gram@google.com 45d0e6e824 URI encoder/decoder - copied from other repo. This is the same code already reviewed but the other repo is not allowing me to commit so trying again.
See  Issue 10310080: Added uriEncode/uriEncodeComponent/uriDecode/uriDecodeComponent functions.
Review URL: https://chromiumcodereview.appspot.com//10399077

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7758 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 18:39:18 +00:00
ngeoffray@google.com 21041489fa Implement PrimitiveOrNull types.
Review URL: https://chromiumcodereview.appspot.com//10389063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7537 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 10:25:11 +00:00
nweiz@google.com 3e83522697 Move Yaml into utils/pub.
Review URL: https://chromiumcodereview.appspot.com//10339009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7264 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 23:37:17 +00:00
ajohnsen@google.com d796a6fbae Update locale char when moving position in number parsing in the JSON parser.
BUG=http://code.google.com/p/dart/issues/detail?id=2858
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7219 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 09:06:05 +00:00
karlklose@google.com 8fa9bf1317 Implement simple dynamic type check.
The generated code for the test is:
(before)
 $.isTrue(typeof x === 'object' && !!x.is$Hest, (void 0));
 $.isFalse(typeof x === 'object' && !!x.is$Hest, (void 0));
(with patch)
 $.setRuntimeTypeInfo(x, ({X: 'int'}));
 var t0 = $.getRuntimeTypeInfo(x);
 $.isTrue(typeof x === 'object' && !!x.is$Hest && typeof t0 === 'object' && t0.X === 'int', (void 0));
 var t1 = $.getRuntimeTypeInfo(x);
 $.isFalse(typeof x === 'object' && !!x.is$Hest && typeof t1 === 'object' && t1.X === 'String', (void 0));

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7184 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-01 11:26:59 +00:00
sigmund@google.com 1dd7f30abc test rename overhaul: step 11 - tests/utils
Review URL: https://chromiumcodereview.appspot.com//10170040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7117 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-28 00:16:04 +00:00
floitsch@google.com d08c6ea50f Reapply "Avoid "=== true" inside code by calling a function that does this for us."
This reapplies a fixed version of commit 7000.
Original CL: https://chromiumcodereview.appspot.com/10140027/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7068 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 11:20:03 +00:00
ajohnsen@google.com 66bddb1ec9 Require a digit when parsing JSON number.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7059 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 08:08:25 +00:00
ajohnsen@google.com 6da614afbf Relax JSON test to support other targets then the VM.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7058 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 07:29:46 +00:00
ajohnsen@google.com 29e5a0318e Optimize the JSON parser by tokenizing while parsing and using jump-table.
I've also updated the test to include a few corner cases.

My tests shows a 50-80% speedup. The optimization will also give a lower
memory usage since we don't keep a list of all tokens alive.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7056 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 07:07:39 +00:00
floitsch@google.com 5fa8f393a0 Revert "Avoid "=== true" inside code by calling a function that does this for us."
This reverts commit 7013.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7025 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 15:54:55 +00:00
floitsch@google.com 6f96f1c0b0 Reapply "Avoid "=== true" inside code by calling a function that does this for us."
This reapplies a fixed version of commit 7000.
Original CL: https://chromiumcodereview.appspot.com//10140027

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7013 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 12:37:41 +00:00
nweiz@google.com 6d2b52bb73 Add a basic YAML processor. Much of the language is still unimplemented.
Review URL: https://chromiumcodereview.appspot.com//10153004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6971 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 19:58:56 +00:00
antonm@google.com 9b4efa81c0 Remove now unnecessary suppression.
TBR=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6891 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-24 15:34:27 +00:00
ahe@google.com 9eac6a5748 Remove frogsh.
Review URL: https://chromiumcodereview.appspot.com//10164004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
antonm@google.com 63309b3fa1 Suppress utils/Utf8Test on Dartium for now.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6787 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 10:11:02 +00:00
antonm@google.com b777033656 Add #library to make test run properly under DRT.
TBR=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6786 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 09:58:12 +00:00
ahe@google.com 43a6504688 Add test case for utils/utf8/utf8.dart.
Review URL: https://chromiumcodereview.appspot.com//9190042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6784 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 09:27:26 +00:00