sra@google.com
36f7d87a02
Test for finding correct method for overriden native method of hidden native class.
...
I think the current implementation of $patchMethod has bugs that make it 'mostly work'. It patches one step too high (either the object or the prototype of the subclass). That is why I needed to add test#2 to exhibit the behaviour I thought I would see on the first test.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8674009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1815 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 20:22:45 +00:00
regis@google.com
6191ea8088
Fix build breakage.
...
Check type of list and map literals in checked mode only, and with an
"assignable to" test rather than a "instance of" test.
Review URL: http://codereview.chromium.org//8677019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1814 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 20:14:27 +00:00
srdjan@google.com
1d21a8fa7d
Do not type checks at returns of implicit getter.
...
Review URL: http://codereview.chromium.org//8678020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1813 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 20:09:11 +00:00
srdjan@google.com
4c267997cd
Fix bug 557: Disallow user side allocation of ImmutableArray. Also added "instantiation-checks" for some other VM-internal classes.
...
Review URL: http://codereview.chromium.org//8648003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1811 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 19:48:25 +00:00
regis@google.com
9f230a34c6
Implement type checking of list literals (issue 220).
...
Remove expose_core_impl flag.
Add tests.
Fix tests.
Cleanup type checking of map literals.
Review URL: http://codereview.chromium.org//8676001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1809 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 19:34:23 +00:00
scheglov@google.com
72a83801c5
Missing test files
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1806 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 19:11:08 +00:00
scheglov@google.com
73cf5451f1
Support for parsing returning qualified type. Issue 513.
...
http://code.google.com/p/dart/issues/detail?id=513
R=codefu@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8662019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1805 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 18:52:33 +00:00
ager@google.com
fed5e6d99c
Add truncate operation to File API.
...
R=whesse@google.com
BUG=264
TEST=
Review URL: http://codereview.chromium.org//8679005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1800 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 15:42:20 +00:00
sgjesse@google.com
8ecb231e80
Fix running process tests on Windows
...
TBR=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8679008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1799 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 15:32:39 +00:00
sgjesse@google.com
b0e17c1cad
Fix refactoring bug
...
TBR=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8676011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1798 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 15:15:20 +00:00
sgjesse@google.com
d7c8c1f1e4
Fix a number of issues with the process handling
...
1. Ignore the signal SIGPIPE on Linux and Mac OS
When reading from or writing to a closed pipe the signal SIGPIPE
is raised. The default handling of this is to terminate the
program. When signal SIGPIPE is ignored the read and write
returns EPIPE.
2. Wrong return type for stdio getter
3. When there is an error on a socket mark it as closed
4. Mark the pipe used for process exit status as a one way pipe
5. Add tests to test stdin, stdout and stderr in Dart scripts
R=ager@google.com
BUG=dart:536, dart:454
TEST=
Review URL: http://codereview.chromium.org//8662006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1793 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 14:49:18 +00:00
podivilov@google.com
437f27b534
Remove support for attribute event listeners.
...
R=vsm@google.com
BUG=5590885
Review URL: http://codereview.chromium.org//8637013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1790 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 13:31:13 +00:00
ager@google.com
e0651019fc
Perform better activity tracking in test scripts.
...
Let the process queue be the controller that has full information about pending activities.
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8682005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1783 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 10:40:04 +00:00
ager@google.com
5d7ee32c6e
Update test scripts to deal with current VM behavior on optional constructor arguments.
...
Find binaries in tests based on the platform we are running on.
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8662004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1779 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 10:22:48 +00:00
whesse@google.com
a24a40da90
Fix excess memory usage problem in StringInputStream.
...
BUG=dart:555
TEST=
Review URL: http://codereview.chromium.org//8639004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1777 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 09:10:38 +00:00
sra@google.com
fb98a21f8c
Switch to " native '*Class' "
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8665012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1775 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 02:50:29 +00:00
srdjan@google.com
b7612781f5
Fix crash reported by Florian.
...
Review URL: http://codereview.chromium.org//8665008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1774 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:37:18 +00:00
hausner@google.com
7d3c45084a
Partial fix to client breakage
...
TBR
Review URL: http://codereview.chromium.org//8666012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1772 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:18:16 +00:00
jacobr@google.com
5b31d3d00f
This class wasn't used anyway. Removing as it causes errors due to recent VM changes.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8673005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1771 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:12:10 +00:00
srdjan@google.com
230a6d1392
Factor out code part for instanceof, and hardwire "is bool" check.
...
Review URL: http://codereview.chromium.org//8592008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1770 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 00:36:36 +00:00
srdjan@google.com
592c62f888
Disable dartc tests failing on Mac OS X.
...
Review URL: http://codereview.chromium.org//8562010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1769 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 00:32:10 +00:00
nweiz@google.com
4b756816ea
Add a script for determining which DOM methods correspond to which HTML methods.
...
Ultimately, this will be used for generating documentation. Currently, though,
it just prints out information to the console.
This also includes some annotations to the HTML library, where the DOM
correspondence couldn't be auto-detected.
Review URL: http://codereview.chromium.org//8548019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1767 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 23:39:59 +00:00
regis@google.com
a2bb53c7af
Implement type checking of map literals (issue 221).
...
Support proper syntax for map literals (at most one type argument is allowed)
and give a warning when legacy syntax is used.
Add tests.
Fix tests.
Review URL: http://codereview.chromium.org//8637018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1764 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 21:42:07 +00:00
srdjan@google.com
3df86ef438
Remove isOdd/isEven from num and double interfaces.
...
Review URL: http://codereview.chromium.org//8598021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1760 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:44:52 +00:00
turnidge@google.com
beebe26bf8
Reorder the functions in dart_api_impl.cc to match dart_api.h.
...
Review URL: http://codereview.chromium.org//8636021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1759 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:42:38 +00:00
hausner@google.com
b9cf297c15
Initializing formals can't be optional parameters
...
Add new error message to VM compiler.
Remove all optional initializing formals from library
and tests.
Review URL: http://codereview.chromium.org//8619008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1755 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:09:54 +00:00
terry@google.com
64784aa1b1
Beginning of CSS parser using frog parsering infrastructure.
...
Change for in memory buffers.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8498020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1752 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 17:30:20 +00:00
zundel@google.com
ccad2889cd
Don't allow invoking a constructor as 'const' if it wasn't declared 'const'.
...
BUG=5142545
Review URL: http://codereview.chromium.org//8624001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1751 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 17:07:49 +00:00
zundel@google.com
7287d25eac
Makes an error message friendlier when trying to invoke
...
a field as a method.
BUG=395
Review URL: http://codereview.chromium.org//8643001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1750 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 16:59:44 +00:00
ager@google.com
d77030bb36
Make Dart test scripts work for the VM on Windows.
...
Minor changes:
- Set system to win32 for test expectation files.
- Add the .exe executable postfix to binaries.
- Do the magic to figure out if a test crashed.
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8636012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1748 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 15:29:27 +00:00
floitsch@google.com
206e409912
Use strict when possible. Don't even try to cache the hashcode for strings.
...
Review URL: http://codereview.chromium.org//8511023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1745 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 14:28:28 +00:00
whesse@google.com
f40da67d2b
Add Directory.createTemp() to asynchronously create a temporary directory.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8588029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1741 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 13:06:39 +00:00
ager@google.com
53ab9b1cfb
Undo change to generate_projects file used by Golem.
...
Golem really should be updated to use gclient instead but
doing this to get the builder going again.
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8633009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1736 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 11:34:23 +00:00
ager@google.com
53de4bd129
Use relative path to cygwin on Windows for the runtime
...
build.
The DEPTH variable is apparently not stable across a
full checkout or a checkout with only the runtime.
Review URL: http://codereview.chromium.org//8636006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1730 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 08:34:16 +00:00
asiva@google.com
245a288c29
Check for presence of native resolver in library for classes which have native fields only in regular run mode not while generating snapshots.
...
While generating snapshots the native resolver is not set and would trigger this error.
Review URL: http://codereview.chromium.org//8618011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1728 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 01:22:07 +00:00
sra@google.com
42f62445ff
Enable SVG for dartc and frog
...
This will increase the size of dart:dom by ~30%
There is a basic layout test that will be checked in soon.
BUG=5353686
TEST=
Review URL: http://codereview.chromium.org//8618007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1726 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 23:57:21 +00:00
iposva@google.com
ea500c9260
- Remove uses of the dart_bin binary.
...
Review URL: http://codereview.chromium.org//8597016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1725 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 23:50:35 +00:00
asiva@google.com
caa37a2581
Fix issue-545 IsObjectStoreTypeId was not updated correctly after new types (StringInterface and ListInterface) were added.
...
Review URL: http://codereview.chromium.org//8623003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1723 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 23:16:32 +00:00
jmesserly@google.com
71eb286ffa
Fix Swarm to run again, and enable its test
...
Something broke consts--they weren't being generated with the "var" prefix, so closures didn't work right. Not sure why we're only hitting this in Swarm tests.
Also turn off type checks for DOM types until we put in the right fallback for is$ methods.
TEST=swarm_test
Review URL: http://codereview.chromium.org//8618004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1722 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 22:29:43 +00:00
asiva@google.com
f844cef89e
Update language status file for library prefix negative tests.
...
Review URL: http://codereview.chromium.org//8547016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1721 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 22:17:47 +00:00
asiva@google.com
ce606eda7b
Library prefix should be an identifier
...
(we don't yet check that it is not a reserved keyword, that can be done only
after we are able to store the keyword table as a singleton in the vm isolate)
Review URL: http://codereview.chromium.org//8500006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1720 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 22:17:41 +00:00
asiva@google.com
4aacd28754
Make the implicit constructor private for zone, handlescope and nohandlescope classes.
...
Review URL: http://codereview.chromium.org//8562008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1718 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 21:07:40 +00:00
asiva@google.com
777bbbf277
Fix signature for external string API methods.
...
Review URL: http://codereview.chromium.org//8527027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1716 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:47:32 +00:00
regis@google.com
42ac60faf3
null is an instance of Dynamic (fix issue 443).
...
Review URL: http://codereview.chromium.org//8592004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1715 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:35:53 +00:00
iposva@google.com
0727d9731a
- Remove bad define.
...
Review URL: http://codereview.chromium.org//8584007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1714 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:28:49 +00:00
turnidge@google.com
a31b5a59f7
Start using UNWRAP_NONNULL to check inputs to dart api functions.
...
Improve a few error messages.
Lots of testing.
Review URL: http://codereview.chromium.org//8528018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1712 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:09:51 +00:00
regis@google.com
c0a9b76a67
Add missing argument to HANDLESCOPE().
...
Siva is investigating why this is only failing now and only on Win32.
Review URL: http://codereview.chromium.org//8547013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1711 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 17:47:49 +00:00
regis@google.com
314a89e16c
Update comments in core lib showing proper factory syntax.
...
Improve error messages reported from class finalizer.
Fix parser error reporting to be thread safe.
Reformat type error and failed assertion messages to be consistent.
Add one more new factory syntax test.
Review URL: http://codereview.chromium.org//8549033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1708 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 17:06:52 +00:00
ager@google.com
8b047a6544
Fix gclient runhooks on Windows for a full checkout.
...
The problem was incorrect setting of and use of the DEPTH gyp
variable.
R=whesse@google.com
BUG=496
TEST=
Review URL: http://codereview.chromium.org//8472007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1706 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 15:47:21 +00:00
ager@google.com
8580aca8f1
Actually add the VM test configuration file.
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8461014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1704 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 15:45:42 +00:00