Commit Graph

79322 Commits

Author SHA1 Message Date
ahe@google.com 9bf46f477d Don't cache subtypes in elements. It causes a memory leak in the Editor.
Review URL: https://chromiumcodereview.appspot.com//9390011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4271 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 16:37:55 +00:00
ahe@google.com 669f0733b1 Source in most stuff.
Review URL: https://chromiumcodereview.appspot.com//9359039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4270 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 16:31:30 +00:00
scheglov@google.com 43878f5c2f Fix VM test
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4268 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 15:26:01 +00:00
scheglov@google.com cf2cfb07ca Tests triage: language
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4266 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 14:48:31 +00:00
ahe@google.com 489caf673d Ignore typedef
Review URL: https://chromiumcodereview.appspot.com//9359044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4264 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 14:09:14 +00:00
floitsch@google.com c769016700 Also allow type-errors.
In checked mode we get TypeErrors. Allow those as well.

Fixes build-breakage.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4262 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 13:50:05 +00:00
floitsch@google.com e554ddf8a0 Throw NoSuchMethod or IllegalArgument on bad operators or bad arguments to
binary expressions.

Fixes Issue 1588

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4260 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 13:25:33 +00:00
kasperl@google.com 371b9e2222 Promote Stephen's InterfaceInheritFieldTest to a language test.
Add another test that checks that you can override fields (as spec'ed).

R=ngeoffray@google.com,ahe@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4259 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 13:05:24 +00:00
podivilov@google.com 706bc11a85 Implement C++ bindings generation in dartgenerator.py.
R=antonm@google.com,sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4256 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 12:56:38 +00:00
karlklose@google.com 496a24b47e Create values for literal Strings.
Review URL: https://chromiumcodereview.appspot.com//9360039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4254 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 11:40:41 +00:00
podivilov@google.com fadde97358 A bunch of fixes in idl database generator.
* Enable SHADOW_DOM
* Add "mediastream" directory to idl search path
* Fix attribute exceptions rendering

R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4253 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 09:24:41 +00:00
ahe@google.com ee2436d7df Update co19 to revision 124
Review URL: https://chromiumcodereview.appspot.com//9404001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4247 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 06:34:36 +00:00
cshapiro@google.com bb7ee3d0fb Add multi-byte ByteArray access methods to the Dart API.
Review URL: https://chromiumcodereview.appspot.com//9384027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4244 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 02:51:11 +00:00
sigmund@google.com 69530abbf1 move proxy out into sample/proxy
Review URL: https://chromiumcodereview.appspot.com//9363064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4243 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 01:54:52 +00:00
efortuna@google.com eb41cb3c9e Don't run any tests on Opera (yet).
TBR=jmesserly@google.com,
Review URL: https://chromiumcodereview.appspot.com//9398015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4242 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 01:07:41 +00:00
efortuna@google.com ad9e253501 Force close of browser Windows when complete.
Review URL: https://chromiumcodereview.appspot.com//9369051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4241 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 00:54:26 +00:00
regis@google.com 83e063f330 Simplify type resolution in parser.
Review URL: https://chromiumcodereview.appspot.com//9395017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4240 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 00:44:16 +00:00
antonm@google.com a3f6238760 Fix a typo.
Review URL: https://chromiumcodereview.appspot.com//9363044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4235 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 20:19:17 +00:00
antonm@google.com fd0fbc470b Suppress a test which depends on dart:io.
Review URL: https://chromiumcodereview.appspot.com//9361068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4234 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 20:10:13 +00:00
sigmund@google.com 6cf7f9b794 futures: add more tests for future and completer.
Review URL: https://chromiumcodereview.appspot.com//9392029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4231 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 16:12:13 +00:00
ahe@google.com dd5c820640 Move helpers and interceptors to own library.
Review URL: https://chromiumcodereview.appspot.com//9373043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4229 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 15:47:28 +00:00
sgjesse@google.com 52187a22c0 Add missing backref collection when reading mint and bigint objects in a native message handler
R=asiva@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4228 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 15:26:01 +00:00
ngeoffray@google.com 9b098e1d90 Fix 'is' for null.
Review URL: https://chromiumcodereview.appspot.com//9358055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4227 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 15:21:34 +00:00
sgjesse@google.com b4d571dcdd Handle stdio redirection in standalone VM
The recent change to epoll on Linux and kqueue on Mac OS for getting
notifications from file descriptors caused the redirection of stdin,
stdout and stderr for the stand alone VM to stop working.

On Linux epoll failed when file descriptor 0, 1 or 2 redirected from
or to a file war registered. On Mac OS there was just no events
generated from kqueue.

The streams created for stdio, stdout and stderr is now of the correct
type and for file redirections no longer a socket object holding a
file descriptor for a regular file.

Added testing of stdio redirection using both pipes and files. These
tests are currently skipped on Windows.

Fixed handlin of short socket read when reading the process exit code.

Always close the socket port when not waiting for any events.

R=iposva@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4226 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 15:20:27 +00:00
ahe@google.com 9fa03d9c27 Better parsing of interfaces.
Review URL: https://chromiumcodereview.appspot.com//9370029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4225 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 15:19:27 +00:00
ngeoffray@google.com 603df2f989 Support is!.
Review URL: https://chromiumcodereview.appspot.com//9380006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4224 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 14:49:41 +00:00
podivilov@google.com 105950f3ce Remove RequestAnimationFrameCallback.dart from native dom_public.darttemplate.
TBR=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4222 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 14:32:18 +00:00
srdjan@google.com aeb547c3fa Report errors with return (e.g., when missing) on Mac OS X.
Review URL: https://chromiumcodereview.appspot.com//9363041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4221 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 14:21:11 +00:00
podivilov@google.com 9b2808e9ba RequestAnimationFrameCallback.dart should be generated.
R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4220 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 13:46:08 +00:00
ajohnsen@google.com f977ac9e7e Make lists parsed by JSON untyped.
Review URL: https://chromiumcodereview.appspot.com//9387007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4219 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 13:42:28 +00:00
ngeoffray@google.com eeeb21f604 Fix bot with status changes.
Review URL: https://chromiumcodereview.appspot.com//9348083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4218 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 13:39:48 +00:00
danrubel@google.com f81c137b51 Multimap replacement
Review URL: https://chromiumcodereview.appspot.com//9373059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4217 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 13:19:42 +00:00
ngeoffray@google.com ee9b6f1f65 Fix for issue 1623: bind does not work on safari.
Review URL: https://chromiumcodereview.appspot.com//9365050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4213 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 12:13:14 +00:00
kasperl@google.com 879cf216d5 Update test expectation for frog.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4211 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 10:38:03 +00:00
podivilov@google.com 8a721df41d Add ImplementedBy attribute for operations merged from [Supplemental=XXX] interfaces.
C++ implementations need to know webcore factory name.

R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4209 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 09:51:55 +00:00
sgjesse@google.com 85e0084bd9 Disable all thread pool tests on Windows
The thread pool is actually implemented on Windows, but the current
monitor implementation has some know issues.

R=ricow@google.com

BUG=dart:1673

TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4208 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 08:53:34 +00:00
nweiz@google.com 305256ae0a Ensure that newly-constructed elements don't have parents.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4206 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 02:30:05 +00:00
sra@google.com 6e7bcb52f0 Add XSLTProcessor constructor
Fixes Issue 1642 for Frog.
Implementation needed for Dartium.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4205 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 02:00:45 +00:00
regis@google.com f8468f64a8 Disable test added in r4201 and failing for leg.
Review URL: https://chromiumcodereview.appspot.com//9388033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4202 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 01:20:21 +00:00
regis@google.com 5933826ae8 Fix context unchaining (issue 5991015).
Add test.
Review URL: https://chromiumcodereview.appspot.com//9392020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4201 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-14 00:58:56 +00:00
asiva@google.com d50bbba277 Implement support for specifying string interopolation style variable substitution in the import and source statements.
e.g:
sivamach[runtime]>more /workspace/asiva/expr/test1.dart
#library('test1.dart');
#import('${GOOGLE}$SRC/test2.dart');
#import('$DART/test3.dart');
test1() {
  print("test1");
}
main() {
  test1();
  test2();
  test3();
}
sivamach[runtime]>more /workspace/asiva/expr/src/test2.dart
#library('test2.dart');
#source('$GOOGLE$SRC/test2a.dart');
test2() {
  print("test2");
  test2a();
}
sivamach[runtime]>more /workspace/asiva/expr/src/test2a.dart
test2a() {
  print("test2a");
}
sivamach[runtime]>more /workspace/asiva/expr/src/test3.dart
#library('test3.dart');
#source('test3a.dart');
test3() {
  print("test3");
  test3a();
}
sivamach[runtime]>more /workspace/asiva/expr/src/test3a.dart
test3a() {
  print("test3a");
}

sivamach[runtime]>out/Debug_ia32/dart --import_map=GOOGLE,/workspace/asiva/expr --import_map=SRC,src --import_map=DART,/workspace/asiva/expr/src /workspace/asiva/expr/test1.dart
test1
test2
test2a
test3
test3a
Review URL: https://chromiumcodereview.appspot.com//9359009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4199 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 22:50:19 +00:00
nweiz@google.com 8c29c1e0c8 When dumping JSON for html_diff, don't list renames where the member name
remains the same.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4196 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 20:57:39 +00:00
sra@google.com 925d1de0a8 Avoid generating an overriding field in dart:dom
- Detect when the shadowed implementation is adequate and use that.
- If it is not adequate, generate getter / setter

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4193 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 20:37:26 +00:00
scheglov@google.com 1b21501f7a Remove DartIsolateStubGenerator.
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4191 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 16:42:24 +00:00
sigmund@google.com c656cc1b62 test.dart progress bar: a small tweak when --report is not used.
Review URL: https://chromiumcodereview.appspot.com//9378028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4190 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 16:25:26 +00:00
sgjesse@google.com bba0b40536 Fix x64 compilation
R=srdjan@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4189 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 14:51:52 +00:00
srdjan@google.com 99edfad378 Print top level functions as well when reproting invocation count.
Review URL: https://chromiumcodereview.appspot.com//9390001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4187 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 14:23:10 +00:00
floitsch@google.com 8b472681ea Support getting of static functions.
Example:
  class A {
     foo() => 499;
  }
  main() { ... var f = A.foo; ... f(); }

Implemented by using the static function as container for the
closure call methods. In JS:

<foo> = function() { return 499; }
<foo>.call$0 = <foo>;
// If necessary add stubs for named arguments on <foo> too.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4184 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 12:36:08 +00:00
floitsch@google.com b0693669c0 Allow self-referencing closures.
Example:
  var f = fib(i) {
    if (i < 2) return i;
    return fib(i - 1) + fib(i - 2);
  };
  print(f(5));  // => 5

The only thing we need to do is make the element representing the current closure point to 'this' inside its body.
In the process I had to fix some other minor issues that were triggered by this change.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4183 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 12:13:09 +00:00
sgjesse@google.com 31a2f9079f Ensure FileTest.dart deletes temporary directories
The FileTest.dart did not delete the created temporary directories. This
was caused by the sub-test testOutputStreamWriteAppend not working.

The close handler for a file FileOutputStream is newer called.

R=ricow@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4182 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-13 12:06:09 +00:00