Commit Graph

5559 Commits

Author SHA1 Message Date
ngeoffray@google.com ee66938e08 Fix for issue 1835: record the 'final' information in the DeclaredIdentifier.
Review URL: https://chromiumcodereview.appspot.com//9464006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4563 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 11:42:34 +00:00
hausner@google.com 1ecc0a9e97 Fix handling of unresolved names
Fixes issue 1805 (http://code.google.com/p/dart/issues/detail?id=1805)

The VM didn't turn unresolved identifiers into instance getter calls in all cases. Refactored the code that handles primary expressions.
Review URL: https://chromiumcodereview.appspot.com//9453020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4550 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 19:55:57 +00:00
ahe@google.com 57f0a9464d Implement operator-is for interfaces' supertypes and String's supertypes. Also, improve stack traces.
Review URL: https://chromiumcodereview.appspot.com//9429047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4544 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 17:45:12 +00:00
floitsch@google.com b5f8367c7c Implement hackish version of const list literals.
Review URL: https://chromiumcodereview.appspot.com//9443017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4533 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 14:32:35 +00:00
ngeoffray@google.com 740d3b7419 Sicne dartc has no backend anymore, a runtime error in a multitest does *not* make it a negative test.
Review URL: https://chromiumcodereview.appspot.com//9442015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4531 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 13:57:07 +00:00
kasperl@google.com 441f425882 More tests are passing on Safari now.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4519 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 10:21:20 +00:00
ngeoffray@google.com d8f83ba1ad A return and a throw should empty the environment.
Review URL: https://chromiumcodereview.appspot.com//9372107

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4518 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 10:18:12 +00:00
kasperl@google.com da4d85e836 Update test expectations after issue 1804 was fixed.
R=lrn@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4514 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 08:54:19 +00:00
jmesserly@google.com 0657c4b4b4 fix dartium status of Resourcetest
Seems like the issue is how browser tests are getting generated

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4504 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 22:49:55 +00:00
jmesserly@google.com a51cbe7e34 another try at fixing status file. still not sure about dartium
Review URL: https://chromiumcodereview.appspot.com//9429071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4500 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 22:02:07 +00:00
iposva@google.com ac171561ce - Test ensuring that we can access fields of dynamic fields.
Review URL: https://chromiumcodereview.appspot.com//9416108

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4498 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 21:54:47 +00:00
jmesserly@google.com 81dd3dd483 fix status file for ResourceTest
Review URL: https://chromiumcodereview.appspot.com//9433060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4497 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 21:49:06 +00:00
iposva@google.com 8f2bf7f884 Fix issue 732:
- Add handling for #resource library tags: Ignore at runtime, they are only used
  by the Dart Editor at the moment.
Review URL: https://chromiumcodereview.appspot.com//9416111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4494 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 21:40:27 +00:00
iposva@google.com f9c7d4053a - Test for issue #732: #resource library tag handling in VM.
Review URL: https://chromiumcodereview.appspot.com//9416103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4490 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 21:16:15 +00:00
ahe@google.com fef1247082 Update status file for frog/leg on debug VM
Review URL: https://chromiumcodereview.appspot.com//9428043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4486 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 19:59:25 +00:00
regis@google.com 25fcaf5044 Generic bound errors are static type errors not to be reported by the VM.
Review URL: https://chromiumcodereview.appspot.com//9428015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4476 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 17:48:05 +00:00
srdjan@google.com d494c74610 Reduce run-time of two longest running tests (checked mode).
Review URL: https://chromiumcodereview.appspot.com//9416102

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4474 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 17:42:32 +00:00
ahe@google.com 7d28eca1f7 Update dartc status file
Review URL: https://chromiumcodereview.appspot.com//9431033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4471 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 17:34:32 +00:00
ngeoffray@google.com 1cf2784c9b Change CodeAfterTryIsExecutedNegativeTest to a multitest.
Review URL: https://chromiumcodereview.appspot.com//9433041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4470 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 16:59:02 +00:00
ahe@google.com 1c8b2fae68 Update frog status file
Review URL: https://chromiumcodereview.appspot.com//9416100

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4461 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 15:25:31 +00:00
ahe@google.com ac33f3bfaa Update leg status files.
Review URL: https://chromiumcodereview.appspot.com//9416099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4459 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 15:20:10 +00:00
ahe@google.com 9df9992f4f Second attempt to make dartc green.
Review URL: https://chromiumcodereview.appspot.com//9433040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4458 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:54:46 +00:00
floitsch@google.com 3b96c23926 Allow binary operators on compile-time-constants.
Review URL: https://chromiumcodereview.appspot.com//9427012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4455 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:25:27 +00:00
lrn@google.com 750ba21241 Support break and labeled statements.
Review URL: https://chromiumcodereview.appspot.com//9421035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4453 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:14:51 +00:00
podivilov@google.com 365b5b36bb Unbreak dartium build.
TBR=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4451 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 14:08:54 +00:00
ahe@google.com cbcba131eb Explicitly use node.js in the cases where it is needed.
Review URL: https://chromiumcodereview.appspot.com//9430046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4450 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 13:57:25 +00:00
ngeoffray@google.com ea554fcbb6 Make sure the merge block after a try/catch has its dominator the block that contains HTry. This way, the codegen does not think a catch block needs to visit the merge block.
Review URL: https://chromiumcodereview.appspot.com//9432022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4447 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 13:16:44 +00:00
ahe@google.com 15155475f3 Return newValue from indexSet helper and other intercepted setters. Also, throw IllegalArgumentException on negative length in getRange interceptor.
Review URL: https://chromiumcodereview.appspot.com//9355048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4445 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:55:51 +00:00
ahe@google.com 40264e33ab Implement .dynamic and throw ObjectNotClosureException in forEach interceptor.
Review URL: https://chromiumcodereview.appspot.com//9426041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4444 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:55:31 +00:00
ahe@google.com 852455cbf1 Annotate language and corelib test status.
Review URL: https://chromiumcodereview.appspot.com//9427018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4442 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:54:36 +00:00
ahe@google.com 848f1e8d59 Copy JSSyntaxRegExp from frog.
Review URL: https://chromiumcodereview.appspot.com//9423042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4440 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:53:53 +00:00
ahe@google.com 6292244973 Add null checks in helpers so all co19 Duration tests pass.
Review URL: https://chromiumcodereview.appspot.com//9425039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4436 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:52:28 +00:00
ahe@google.com df35172184 Implement Date.
Review URL: https://chromiumcodereview.appspot.com//9424027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4435 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:52:05 +00:00
ahe@google.com 0248bfb2cb Implement Strings API.
Review URL: https://chromiumcodereview.appspot.com//9355032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4433 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:51:21 +00:00
ahe@google.com e2717213ab Pass all co19 int tests.
Review URL: https://chromiumcodereview.appspot.com//9422026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4431 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:50:42 +00:00
ahe@google.com 43b46c092e Improve double implementation.
Review URL: https://chromiumcodereview.appspot.com//9421025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4430 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 09:50:18 +00:00
ahe@google.com 50f9f9e1ba Improve List implementation.
Review URL: https://chromiumcodereview.appspot.com//9355031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4414 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-21 23:37:57 +00:00
srdjan@google.com 73fad81b9a Corrected bug number.
Review URL: https://chromiumcodereview.appspot.com//9430020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4412 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-21 22:14:50 +00:00
srdjan@google.com 87089f37f1 Fix cacthing exception object: a null exception is always caught.
Review URL: https://chromiumcodereview.appspot.com//9416067

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4411 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-21 22:07:59 +00:00
karlklose@google.com a0b995b146 Implement cycle-checking and code generation for redirecting constructors.
Review URL: https://chromiumcodereview.appspot.com//9391004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4378 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-20 13:55:47 +00:00
floitsch@google.com b91e9347a8 Allow to invoke fields as if they were methods.
Example:
var f;

main() {
  f = () => 499;
  print(f());
}

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4365 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:28:42 +00:00
ahe@google.com 98d8d8f5cd Only warn that const expressions are not implemented.
Review URL: https://chromiumcodereview.appspot.com//9395043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4364 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:24:23 +00:00
scheglov@google.com cf869318e9 Issue 1606/1108. The 'native' keyword is supposed to only be allowed in core libraries.
http://code.google.com/p/dart/issues/detail?id=1606
http://code.google.com/p/dart/issues/detail?id=1108

R=codefu@google.com,zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4361 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:07:07 +00:00
ahe@google.com a552e40ff1 Mock up all remaining core library implementation classes.
Review URL: https://chromiumcodereview.appspot.com//9417031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4358 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 16:52:11 +00:00
ahe@google.com a5e2d6e486 Use shared implementation of Stopwatch.
Alos, mock up an implementation of interface constructors.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4357 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 15:54:43 +00:00
floitsch@google.com 786e679742 Allow method-calls to getters (assuming they contain closures).
Example:
class A {
  var f;
}

main() {
  var a = new A();
  a.f = () => 499;
  print(a.f());  // <== method call to a.f.
}

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4351 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 13:27:09 +00:00
floitsch@google.com ce51c0ee32 Support implicitly bound closures (aka. tear-off closures).
Review URL: https://chromiumcodereview.appspot.com//9415005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4312 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 13:43:19 +00:00
ahe@google.com 01984b9204 Handle imports of dart:core and dart:coreimpl
Review URL: https://chromiumcodereview.appspot.com//9413006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4307 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 11:30:29 +00:00
ahe@google.com 14c86613a7 Various mocks and tweaks to reduce cancels in Leg.
Review URL: https://chromiumcodereview.appspot.com//9420001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4305 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 10:26:17 +00:00
karlklose@google.com 1165672c79 Allow named parameters in const constructor invocations.
The compile time constant analyzer visited the name of the parameter as identifier, which was not resolved. This resulted in an element of kind NONE, which was classified as non-constant.

BUG=http://code.google.com/p/dart/issues/detail?id=1576
TEST=language/NamedArgumentInConstCreationTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4301 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 08:13:49 +00:00