Commit Graph

79322 Commits

Author SHA1 Message Date
ahe@google.com 055a4b26f1 Generate elements for interfaces and nodes for supertypes.
Review URL: http://codereview.chromium.org//9107010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3200 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 19:07:42 +00:00
scheglov@google.com 146e8ebb82 Issue 965: Report error for static local function
http://code.google.com/p/dart/issues/detail?id=965

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//9185013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3198 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 18:34:54 +00:00
whesse@google.com 4a7645ceab Fix flaky tests on chromium buildbot, by adding a correct fix to test.dart.
BUG=dart:1135,dart:1127
TEST=tools/test.dart -cchromium language

Review URL: http://codereview.chromium.org//9190011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3197 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 18:26:37 +00:00
codefu@google.com 159f4dccf8 Issue 1091: Static type warning for setters with non-void return types
http://code.google.com/p/dart/issues/detail?id=1091
Spec 0.06 section 7.3 Setters

R=zundel
BUG=
TEST=

Review URL: http://codereview.chromium.org//9188004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3196 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 17:51:52 +00:00
whesse@google.com 91aa36e658 Add check for repeated options on test.dart command line. Revert debugging commit r3110.
Also fix bug where unknown options would crash test.dart.

BUG=
TEST=tools/test.dart --flag foo --flag bar --mispellede

Review URL: http://codereview.chromium.org//9166013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3195 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 17:48:22 +00:00
zundel@google.com 0b9d798568 Update fling library for changes to DartCompilerListener
http://code.google.com/p/dart/issues/detail?id=1106

Review URL: http://codereview.chromium.org//9186008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3194 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 17:42:33 +00:00
ahe@google.com 5c477d0ba1 Cancel the compilation if the SSA builder attempts to visit a type annotation.
Review URL: http://codereview.chromium.org//9185010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3191 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 16:14:07 +00:00
ajohnsen@google.com fa84daf779 Remove redundant code from Futures.wait.
Review URL: http://codereview.chromium.org//9166037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3189 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 16:08:32 +00:00
sgjesse@google.com 729c54ceef Fix Windows build
TBR=whesse@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//9190006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3187 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 15:22:43 +00:00
sgjesse@google.com 0122a33a76 Handle EINTR on all IO operations
There have been spurious FileIOExceptions seen on some Mac OS machines.

R=ager@google.com,whesse@google.com

BUG=
TEST=

Review URL: http://codereview.chromium.org//9139011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3185 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 15:12:27 +00:00
ahe@google.com dea93d6568 Record names of constructors and use that to implement Object.toString.
Review URL: http://codereview.chromium.org//9114053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3183 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 14:03:21 +00:00
whesse@google.com 3da8cc127f Fix flaky error on buildbot due to virtual X server xvfb.
The test.py test script handles this flaky error, and this CL adds
handling of this error to the test.dart script.  Issue dart:1135 is filed to
get rid of this error.

BUG=dart:1135
TEST=xvfb-run tools/test.py -cchromium language

Review URL: http://codereview.chromium.org//9139012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3182 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 14:01:45 +00:00
karlklose@google.com 07745506fd Implement super calls.
TEST=tests/leg_only/src/SuperCallTest.dart, ResolverTest.testSuperCalls.

Review URL: http://codereview.chromium.org//9166010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3181 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 13:46:26 +00:00
lrn@google.com 41771582a2 Implement for-in.
Direct implementation with no optimizations.

Review URL: http://codereview.chromium.org//9148021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3180 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 10:37:47 +00:00
ngeoffray@google.com cca16663b3 Forgit this file in last commit.
Review URL: http://codereview.chromium.org//9107005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3179 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 10:37:21 +00:00
sra@google.com a7d44f5e83 Manually reapply changes to get around stupid shadowing warning.
We really need a way to turn off specific warnings.  In this case, a
parameter shadows a method.  The code is automatically generated so
hard to change, and the names chosen are really the nicest ones for
the editor experience.

BUG=
TEST=

Review URL: http://codereview.chromium.org//9114060

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3176 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 02:06:27 +00:00
sra@google.com a9a485ca7f Suppress warning checks on wrapping_dom.dart
Second try

BUG=
TEST=

Review URL: http://codereview.chromium.org//9114059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3175 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 01:52:30 +00:00
sra@google.com 583bed4f3f Suppress warning checks on wrapping_dom.dart
BUG=
TEST=

Review URL: http://codereview.chromium.org//9167035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3174 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 01:46:38 +00:00
efortuna@google.com a324098caf Changed automated testing to run test.dart instead of test.py
Review URL: http://codereview.chromium.org//9181006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3173 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 01:38:27 +00:00
sra@google.com 6fa3ec347e Refactor DOM generator.
Each target (approximately) is now represented by a 'System'.  This
should be helpful in merging in the dart:hmtl code - it can be another
System (or 2 - one for frog, one for VM).

There are more changes to come.  In particular, I want to make the
class/interface templates per-system.

Checkpoint

BUG=
TEST=

Review URL: http://codereview.chromium.org//9181010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3172 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 01:23:34 +00:00
vsm@google.com b06f5be6d8 Build fix for mac/clang
This should get Dartium Mac bots green.

Review URL: http://codereview.chromium.org//9175002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3171 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 00:28:26 +00:00
turnidge@google.com 55e33151db Introduce the Error object class in the vm. It represents all of the
things that may go wrong while invoking the dart api.

Here are the four types of error:

- ApiError = the user misused one of the dart apis
- LanguageError = a language-level problem, e.g. compiler error
- UnhandledException = an uncaught exception made its way to the embedder
- UnwindError = a forced isolate interrupt

This cl is the first of a series. I plan to move the point of
creation for LanguageErrors into the Parser, etc. I also plan to move
the longjmp's out of dart_api_impl.cc. I also also plan to implement
UnwindErrors later.

(Copied from Issue 9085031 due to subversion problems)
Review URL: http://codereview.chromium.org//9166016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3168 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 21:42:21 +00:00
turnidge@google.com 9ade77d8f5 Comment-only change to track down some svn issues I'm having.
Review URL: http://codereview.chromium.org//9179002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3167 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 21:20:03 +00:00
asiva@google.com 34a115ad57 - Pass in the isolate parameter when creating handles.
- Store the current isolate pointer in the snapshot reader object and use it instead of calling Isolate::Current() during the deserializing process.
Review URL: http://codereview.chromium.org//9124012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3160 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 18:47:38 +00:00
antonm@google.com 8f2e04904c Remove suppression.
BUG=1113

Review URL: http://codereview.chromium.org//9167016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3159 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 18:22:28 +00:00
ager@google.com 607eea1402 Cleanup gypi mess.
My change that introduced a platform directory shared between vm and bin runtime components did not correctly update gypi files.

BUG=
TEST=

Review URL: http://codereview.chromium.org//9124030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3155 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 16:50:14 +00:00
zundel@google.com 568329fe06 Disallow assignment to a top level method in dartc
http://code.google.com/p/dart/issues/detail?id=966

Review URL: http://codereview.chromium.org//9158014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3154 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 16:39:21 +00:00
codefu@google.com d3703d84e7 Issue 1099: Compile time error for RHS this access in initializer
http://code.google.com/p/dart/issues/detail?id=1099
R=zundel
BUG=1099
TEST=

Review URL: http://codereview.chromium.org//9169013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3153 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 16:31:48 +00:00
codefu@google.com addcaec400 Issue 1105: Duplicate initialization should have a compile error
http://code.google.com/p/dart/issues/detail?id=1105
7.5.1
It is a compile-time error if more than one initializer corresponding to a
given instance variable appears in k’s initializer list. It is a
compile-time error if k’s initializer list contains an initializer for a
variable that is initialized by means of an initializing formal of k.
R=zundel,mmendez
BUG=1105
TEST=

Review URL: http://codereview.chromium.org//9166006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3152 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 16:27:28 +00:00
podivilov@google.com 38e453baa2 Disable even more dart:html event related tests broken by WebKit changes.
See issue 1005.

TBR=sra@google.com


git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3151 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 16:18:53 +00:00
terry@google.com 28f15786ab Disable CSS test for leg and frogium #directives not supported.
BUG=
TEST=

Review URL: http://codereview.chromium.org//9155013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3150 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:52:06 +00:00
antonm@google.com 868ea7c3cd Do not set debug Dart flags when running the test.
BUG=1113

Review URL: http://codereview.chromium.org//9147032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3149 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:41:57 +00:00
zundel@google.com e2d6d49290 Adds extra measure of safety to dartc.sh and dartc_test.sh
Adding set -e will cause the script to exit with non-zero status if a
shell command exits with non-zero and the status is not checked.  We found
a case where a problem wasn't being caught and the script kept going in another
change.  This might help prevent similar problems from going uncaught in the
future.

Review URL: http://codereview.chromium.org//9168009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3148 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:30:42 +00:00
terry@google.com 9a40e87326 Enabled CSS tests, added CSS tests to buildbot, fixed tooling with nodejs, and added more tests.
BUG=
TEST=

Review URL: http://codereview.chromium.org//9168008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3147 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:28:53 +00:00
scheglov@google.com 9eb76b67ca Include dom.dart library into ignoring shadow warnings
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3146 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 15:20:03 +00:00
whesse@google.com edcf12235f Fix an error on the buildbots where the dartc shell script was throwing an error.
Also, improve error output from test.dart.

Add verbose output from the dartc bash script, and separators between compilation and execution phase output in the test.dart browser tests.

BUG=dart:1104
TEST=tools/test.dart -cchromium language

Review URL: http://codereview.chromium.org//9158011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3143 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 14:14:49 +00:00
ricow@google.com 45b5e07fa9 Fix a few nits in comments in input_stream.dart
Review URL: http://codereview.chromium.org//9155007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3137 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 12:42:02 +00:00
ahe@google.com 73bb4430ec language/Unary2Test is flaky on Dartium.
Review URL: http://codereview.chromium.org//9166005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3134 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 11:40:56 +00:00
ngeoffray@google.com b98e31df25 Looking at the selector was wrong initially. Keep the TODO but just use the target (which is the fied currently because we don't have setters).
Review URL: http://codereview.chromium.org//9169008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3132 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 10:09:46 +00:00
ahe@google.com 8f48ea94c5 Nested comments.
Review URL: http://codereview.chromium.org//9146011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3131 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 08:38:12 +00:00
ahe@google.com 37af5fb7db Better error recovery.
Review URL: http://codereview.chromium.org//9158001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3130 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 08:36:02 +00:00
jacobr@google.com 20e99ef0c2 Support map in generated dart:html files.
BUG=
TEST=

Review URL: http://codereview.chromium.org//9167006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3128 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 04:26:52 +00:00
nweiz@google.com ecc9b0b8e0 Add the dummy test file for the dartdoc tests.
TBR

Review URL: http://codereview.chromium.org//9169002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3127 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 02:24:06 +00:00
rnystrom@google.com e1894718ab Display negate operators correctly in dartdoc.
Review URL: http://codereview.chromium.org//9166002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3126 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 01:53:07 +00:00
rnystrom@google.com 9f73ad9b27 Make test.dart not barf if the path to your repo has 'src/' in it.
Review URL: http://codereview.chromium.org//9146019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3125 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 01:09:40 +00:00
regis@google.com 344dcbde12 Print stop message.
Review URL: http://codereview.chromium.org//9128002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3124 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 00:32:51 +00:00
nweiz@google.com 6828d81999 Fix FrozenElementList#forEach.
TBR

Review URL: http://codereview.chromium.org//9146017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3123 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 00:17:41 +00:00
regis@google.com 5a11b9b3ad A class/interface cannot implement/extend a type parameter (issues 886 and 887).
Added tests.
Review URL: http://codereview.chromium.org//9153006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3122 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 00:01:47 +00:00
nweiz@google.com eb6b2f9fd7 Naming change for code review.
TBR

Review URL: http://codereview.chromium.org//9153010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3121 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 23:15:27 +00:00
sra@google.com 8bec9d5bd1 Remove everything to do with snippets
We don't use snippets and there are other mechanisms that can get the
same effect.  IDL-side modifications can be expressed as supplemental
IDL; generated-code-side modifications as templates or tweaks to the
generator.

BUG=
TEST=

Review URL: http://codereview.chromium.org//9152018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3120 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 23:08:45 +00:00