Commit Graph

79322 Commits

Author SHA1 Message Date
scheglov@google.com d011f459ac New ErrorCode implementations.
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@841 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 17:22:32 +00:00
srdjan@google.com 5acfab56ba Restructure instance calls in optimizing compiler with the goal of eliminating all remaining inline cache calls in optimized code.
Review URL: http://codereview.chromium.org//8404009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@835 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 15:19:27 +00:00
rchandia@google.com 995680a037 Reroll r634 "Total now reads mortgage sample from server"
Fixed client/samples/total tests
Fixes rename of Process.std{out,err}

Original description:
Removed example SYLK from client

    To get as SYLK spreadsheet named 'foo'
    http://localhost:9090/spreadsheet/get?name=foo

    To get a list of available spreasheets as a JSON array of Strings
    http://localhost:9090/spreadsheet/list

    For now the options are:
    - empty
    - mortgage
    - collatz
    - insertTest

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@831 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 14:47:10 +00:00
mmendez@google.com 959e3573d7 Fixes issue http://code.google.com/p/dart/issues/detail?id=235.
Mismatched type arguments result in an error not a type warning.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@821 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 13:33:45 +00:00
ager@google.com d864b5e1f6 First round of changes to the file interface.
Have both async and sync version for the file operations. The
thinking is that once you have used an async operation you will
not be allowed to use a sync one. Only sync versions currently
implemented.

Instead of having one input and one output stream associated with a
file we create new streams whenever needed. These get their own
underlying file descriptor so they do not interfere. This means
that FileStreams have to be explicitly closed.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@819 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 13:33:18 +00:00
fabiomfv@google.com 7816675ba0 https://code.google.com/p/dart/issues/detail?id=225
moved CL. LGTM from http://codereview.chromium.org/8390059/
Review URL: http://codereview.chromium.org//8401008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@815 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 12:29:33 +00:00
sgjesse@google.com 500a14c6d5 Only call the dataReceived callback for sockets if there is actually data available
R=ager@google.com

BUG=
TEST=EchoServerStreamTest.dart

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@809 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 10:08:08 +00:00
sgjesse@google.com 78f7c8bd45 Fix typo
TBR=whesse@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@805 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 08:31:44 +00:00
vsm@google.com f3463fcb44 Remove obsolete isolate bind method
This has been removed from corelib and compiler.  See
http://codereview.chromium.org//8370031.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@800 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 05:03:23 +00:00
vsm@google.com 91601e09fc Fix for events fired on different isolates.
Ensures that a DOM callback will be fired on the isolate that it
originated on.

BUG=5151491
TEST=https://chromereviews.googleplex.com/3624031/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@798 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-27 03:02:43 +00:00
vsm@google.com fa05dc1712 Mark these tests as now passing
TBR=ngeoffray

BUG=5476054

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@792 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 23:43:51 +00:00
codefu@google.com 4d71168414 Don't throw assertion when dart:lib cannot be found.
Missing LibrarySource gets reported as such.

R=jwren@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@784 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 21:13:51 +00:00
vsm@google.com 659430b074 Move this to corelib
Review URL: http://codereview.chromium.org//8395056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@782 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 21:07:33 +00:00
turnidge@google.com 9ba5441c54 Handle spurious wakeups properly.
Review URL: http://codereview.chromium.org//8392044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@781 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 21:06:18 +00:00
regis@google.com 1df8ca858e Rename the VM internal 'var' type to 'Dynamic' type.
This change does not implement support for the built-in identifier 'Dynamic'.
Review URL: http://codereview.chromium.org//8403003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@779 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 20:58:34 +00:00
turnidge@google.com e756497a78 Refactor the dart api a bit:
- Dart_Result is gone.  Dart_Handle mostly replaces it.
- Name/signature changes
  - IsValidResult -> IsValid
  - GetErrorCString -> GetError
  - many more...
- Make details of persistent handle freelist private.
- Add persistent "True" handle to api state.

Things I am not doing in this changelist:

- Documentation updates
Review URL: http://codereview.chromium.org//8380020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@778 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 20:38:41 +00:00
sigmund@google.com df0fe640ad Fixes to allow natives in copy_dart.py.
Review URL: http://codereview.chromium.org//8394065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@774 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 20:03:42 +00:00
regis@google.com ee7aca7f5b Fix type tests involving an implicit closure of a non-parameterized class
extending a parameterized class.
Add corresponding test.
Disable new test for dartc (filed new issue 5516001).
Review URL: http://codereview.chromium.org//8393033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@771 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 19:03:29 +00:00
srdjan@google.com ffaec5255d Store IC data instead of array of classes in AST node, so that we can easier access targets and future multi-check IC data.
Review URL: http://codereview.chromium.org//8394061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@770 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 18:47:17 +00:00
zundel@google.com dc5bf070e1 Fixes problem with running test.py --arch dartc --mode release,debug
The --optimize flag was set for all tests at the top level if
release mode was specified.  I pushed this logic down into the
be a part of generating run command for each individual test case.

BUG=5408215

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@768 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 18:12:08 +00:00
regis@google.com 57cf4c0e46 Fix issue 235.
Add test.
Disable new test for dartc.
Review URL: http://codereview.chromium.org//8394057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@766 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 17:59:55 +00:00
mmendez@google.com 2fdc3101c2 Report an error if a constructor initializer calls a setter method.
BUG=http://code.google.com/p/dart/issues/detail?id=92

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@760 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 17:18:56 +00:00
ager@google.com 9265136864 Add support for test expectations based on the --checked flag.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@751 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 14:24:38 +00:00
vsm@google.com e95572dd87 Missing parens
Frog is breaking on this when compiling swarm.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@750 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 14:19:16 +00:00
sgjesse@google.com a16c4ee066 Update test expectations
TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@749 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 13:37:34 +00:00
sgjesse@google.com 00a00bcdb4 This contains a new InputStream and StringInputStream interfaces.
The readUntil is only supported through readLine on the StringInputStream.

The StringInputStream implementation in string_stream.dart could live outside the VM as it is plain Dart code.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@747 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 13:17:28 +00:00
ager@google.com 1fa8860919 Implement path canonicalization on Windows to fix infinite loop on cyclic includes.
R=sgjesse@google.com
BUG=179
TEST=language/CyclicImportTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@744 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 12:44:16 +00:00
ngeoffray@google.com 270004a10a dartium runs the VM in release mode -> the test does not fail.
Review URL: http://codereview.chromium.org//8393046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@735 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 10:04:45 +00:00
nweiz@google.com 6c165ed12c Code review fixes for CSSStyleDeclaration.
Review URL: http://codereview.chromium.org//8392023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@729 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 00:28:50 +00:00
regis@google.com 0b98430a58 Cleanups.
Review URL: http://codereview.chromium.org//8390021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@726 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 23:16:16 +00:00
asiva@google.com 2d44c017dd Update language tests status.
Review URL: http://codereview.chromium.org//8390014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@719 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 21:56:34 +00:00
asiva@google.com 597dba3644 Fix windows build.
TBR=regis.
Review URL: http://codereview.chromium.org//8341032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@715 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 21:09:44 +00:00
asiva@google.com ac94efb33f Fix infinite recursion when dealing with cyclic library dependencies.
Review URL: http://codereview.chromium.org//8371016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@714 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 21:01:07 +00:00
regis@google.com d03b6815fe Complete generic closure type checking.
Disable a bad test in co19 (issue 5512850).
Replace workaround by permanent fix for issue 5474672.
Review URL: http://codereview.chromium.org//8391007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@713 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 20:21:22 +00:00
srdjan@google.com 693ffc9b01 Fix crash on Linux,
Review URL: http://codereview.chromium.org//8391013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@712 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 19:27:24 +00:00
codefu@google.com f6cf0dbc9a Handle paths with raw strings
http://code.google.com/p/dart/issues/detail?id=109

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@711 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 19:26:02 +00:00
codefu@google.com 9e4fb5b504 Import with keyword for 2.5 python as well as backport os.path.relpath() from python unittest2
R=mmendez
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@708 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 18:45:22 +00:00
nweiz@google.com 7ed753c214 Fix client/html_tests so they use the new framework.
TBR=jacobr

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@707 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 18:36:26 +00:00
srdjan@google.com 5f43c05de7 Implement new inline cache. Delete a lot of unused code (most of change).
Review URL: http://codereview.chromium.org//8379013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@706 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 18:35:49 +00:00
ngeoffray@google.com c0d7de3d3a Test fails on dartium, not crash.
Review URL: http://codereview.chromium.org//8395001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@700 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 14:37:07 +00:00
ngeoffray@google.com 6e625e250c Add a test for non-parameterized factory.
Review URL: http://codereview.chromium.org//8381036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@697 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 13:53:50 +00:00
ager@google.com 8f6c84704d Disable test that has failing type checks on purpose.
Should be skipped only for checked tests. I'll look into that tomorrow.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@694 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 13:23:30 +00:00
ager@google.com 60300b4c0e Fix Mac build.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@691 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 12:20:33 +00:00
ager@google.com 86284155b9 Improve error handling in the process library.
Verify that the arguments have the types expected by the
implementation. Require a List instance containing builtin
Strings as the arguments. Require a builtin String path.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@690 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 12:16:04 +00:00
benl@google.com e68ae4243d Fix tests broken by proxy changes.
TBR=ager
Review URL: http://codereview.chromium.org//8351032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@689 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 12:07:26 +00:00
alexeif@google.com 029f5029e9 Add abstract keyword.
Review URL: http://codereview.chromium.org//8359003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@687 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:48:48 +00:00
benl@google.com 8154e8ac39 Fix broken test.
TBR=kasperl
Review URL: http://codereview.chromium.org//8375051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@686 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:37:59 +00:00
benl@google.com a64fbe01a8 Rename various Proxy classes. Provide a Proxy interface.
Review URL: http://codereview.chromium.org//8383034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@684 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:09:54 +00:00
antonm@google.com 60fbf3c3cd Better mark as Failed than Skipped.
Review URL: http://codereview.chromium.org//8383035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@682 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 10:38:57 +00:00
antonm@google.com b8ddd0fd39 Temporary suppress the tests.
Review URL: http://codereview.chromium.org//8351031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@681 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 10:13:50 +00:00