Commit Graph

79322 Commits

Author SHA1 Message Date
ager@google.com 64ca753193 Split File into File and RandomAccessFile.
Update all users of the API.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2272 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:37:17 +00:00
efortuna@google.com 7578faca4b Modification to the order that classes are printed out so that the prototype
class is always printed out before the inheriting class. Adjustments to make the
benchmarks run in IE9.
Review URL: http://codereview.chromium.org//8828008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2271 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:27:12 +00:00
dgrove@google.com 04c5e7fad3 Get dependencies for SDK close to right.
Review URL: http://codereview.chromium.org//8890024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2270 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 19:12:32 +00:00
srdjan@google.com 8591cd93ef Removed print from test.
Review URL: http://codereview.chromium.org//8883027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2266 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 18:19:47 +00:00
codefu@google.com 5613c66865 Function type checking: Part Deux
This replaced the following CL that was falling behind head.
http://codereview.chromium.org/8566022/

Summary:
Add support for function runtime type checking and typedefs; re-worked to
support tree-shaking at head.  Static, instance, top level, and hoisted
methods have RTT lookup methods to identify their types.  Respective
getters() and binds() have been updated or added to link the lookup methods
to bounded methods. Static method getters were added as well to perform this
linking for non-bound situations.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2263 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 18:12:00 +00:00
scheglov@google.com c95fa9c286 Check for using 'this' and 'super'. Tests. Issue 662.
http://code.google.com/p/dart/issues/detail?id=662

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2252 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 16:25:23 +00:00
zundel@google.com c92b33dc0c Overriding fields is now permissable.
Review URL: http://codereview.chromium.org//8859002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2250 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 15:58:19 +00:00
ager@google.com 01b6853960 Only use dartc batch processing for the dartc component.
Running frog tests would actually spin up java processes. :-\

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2247 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 14:08:08 +00:00
ager@google.com 422ab9a7cf Make the write end of the interrupt pipe in the eventhandler blocking on mac and linux.
The messages written are small control messages that we do want to succeed now.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2246 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 13:44:06 +00:00
ager@google.com 45a4f01a78 Fix progress indicator typo.
TBR

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2243 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 12:22:15 +00:00
ager@google.com ad170cc5e9 Get rid of the spinner in progress indicators.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2239 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 11:20:21 +00:00
sgjesse@google.com c2ff95292b Add .gdb_history to .gitignore
R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2237 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 11:03:48 +00:00
sra@google.com 4521347a0b Fix AudioContext constructor for Dartc.
Frog is still broken, but this should fix the build.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2231 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 09:05:49 +00:00
ngeoffray@google.com ab24606c5a Fix frog presubmit.
Review URL: http://codereview.chromium.org//8888007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2230 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 08:58:51 +00:00
sgjesse@google.com a2b669273a Only schedule one data callback at the time for chunked input stream
R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2228 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 08:38:11 +00:00
sra@google.com cc6a29f991 Enable fullscreen API and file system API
These were discussed in the Hackathon HTML5 lecture.
They are also enabled in Dartium.
Enabling so they can be used.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2227 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 06:46:27 +00:00
vsm@google.com 03a41b0b73 Added constructor for AudioContext for dartc and frog
Review URL: http://codereview.chromium.org//8873008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2225 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 05:51:01 +00:00
rnystrom@google.com 430a969207 In the navigation, list exception types after other types.
Review URL: http://codereview.chromium.org//8885005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2223 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 03:31:41 +00:00
sra@google.com 58fea99105 Revert "Revert "Implement typed array constructors.""
This reverts commit c994dafc93117a7ba270df5c92212a7c85dcc705.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2222 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 03:22:23 +00:00
sra@google.com 1dc0d0899b Revert "Implement typed array constructors."
This reverts commit ace636521ecc117cc02b07ebd221d57913f01d7a.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2221 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:49:11 +00:00
sra@google.com c050587f5d Implement typed array constructors.
This change implements a set of three constructors for each of TypedArrays, e.g:

Float32Array(int len);
Float32Array.fromList(List<num> list);
Float32Array.fromBuffer(ArrayBuffer buffer);

Implemented for both Dartc and Frog.
Test case coming in a different CL.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2220 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:43:59 +00:00
rnystrom@google.com 5168cde79f Fix displaying generic types.
Review URL: http://codereview.chromium.org//8888002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2219 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:22:55 +00:00
sigmund@google.com 174f04e153 frog: detect when getter/setter has incorrect number of arguments.
Review URL: http://codereview.chromium.org//8879006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2217 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:17:54 +00:00
rnystrom@google.com 1b58511a2c Fix broken dartdoc.
Review URL: http://codereview.chromium.org//8879004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2216 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:08:20 +00:00
srdjan@google.com 2d352798b9 Fix for intrinsified Math.sqrt method, added test.
Review URL: http://codereview.chromium.org//8866010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2213 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:47:52 +00:00
sigmund@google.com 890c352f09 frog: improve errors with named param (bug 507)
BUG= 507
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2212 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:46:46 +00:00
asiva@google.com 566ff2b3cf Add a tags field to RawObject so that we can tag objects with certain values,
e.g:
- object is canonical
- object was created from snapshot
etc.

Once we have class Ids implemented the current class_ and flags_ words can be
compressed into a single header word.
Review URL: http://codereview.chromium.org//8827016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2211 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:43:06 +00:00
asiva@google.com 660b5719bf Add test to expose bug in initialization of objects with native fields in the inline allocation stub. The tests are skipped as another CL fixes the bug.
Review URL: http://codereview.chromium.org//8875001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2209 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:23:21 +00:00
regis@google.com 0ef32f52f4 Fix handling of unresolved upper bounds in factory declarations (issue 721).
Review URL: http://codereview.chromium.org//8862002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2208 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:16:55 +00:00
regis@google.com 603c316b46 Fix win32 build.
Review URL: http://codereview.chromium.org//8853002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2207 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:14:07 +00:00
regis@google.com ec7f6331d1 Add 64-bit stubs to call into the runtime and to call native functions.
Fix 64-bit assembler bugs.
Review URL: http://codereview.chromium.org//8818001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2206 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 00:03:08 +00:00
nweiz@google.com f7419664c4 Thoroughly document html_diff and html_doc.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2204 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 23:13:23 +00:00
asiva@google.com d34cbbf00a Add additional asserts in the snapshot writer/reader code.
Review URL: http://codereview.chromium.org//8868001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2202 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:40:50 +00:00
nweiz@google.com a811209d78 Add a script to generate HTML and DOM docs with cross-links to one another.
This entails adding callbacks to dartdoc for injecting additional
comments, as well as adding somewhat deeper support for hashing and
equality testing of Frog objects.

The next step is to inject the annotations into the HTML and DOM library source itself.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2199 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:15:12 +00:00
hausner@google.com 9159389495 First bits of external debugger API
The debugger API is in a separate set of files. Embedders do not have
to include the debug api if they don't need to.
Review URL: http://codereview.chromium.org//8826007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2198 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:13:49 +00:00
zundel@google.com 98504921ed Report error on parsing URI cleanly (don't throw exception)
Issue 712: http://code.google.com/p/dart/issues/detail?id=712

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2197 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 21:36:05 +00:00
dgrove@google.com e984d80ba2 Use dart-dump-render-tree to hold SDK's for the moment.
TBR=sigmund

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2196 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 20:46:02 +00:00
danrubel@google.com 93a4a8a116 DartC minor fix and doc cleanup
Review URL: http://codereview.chromium.org//8856003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2193 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 20:16:54 +00:00
sigmund@google.com d45d3596c5 frog: better errors/warnigns about type annotations in map literals.
Using 2, instead of 1 type arguments is only a warning (this matches the vm)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2189 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 19:10:37 +00:00
scheglov@google.com db40457d22 Fixes for JUnit tests
R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2188 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 18:54:54 +00:00
sigmund@google.com cb86ec8e6a buildfix: not use type annotation in map literals within htmllib
Review URL: http://codereview.chromium.org//8855001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2187 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:43:52 +00:00
sigmund@google.com b0d4e767fc frog: use type annotation in map and list literals
BUG= http://code.google.com/p/dart/issues/detail?id=220 http://code.google.com/p/dart/issues/detail?id=221

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2186 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:37:00 +00:00
ager@google.com fd97081f49 Add --time option to dart test scripts.
This is useful for finding new tests that start taking a long time.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2183 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 16:33:16 +00:00
scheglov@google.com 06d54c8d64 Support for 'abstract' modifier for class and spec recommended warnings, issue 375
http://code.google.com/p/dart/issues/detail?id=375

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2181 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 16:15:20 +00:00
ager@google.com 54de7bd01c Make test scripts work on Windows again.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2177 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 14:41:27 +00:00
ager@google.com 0854b17c4b Add suite name to display name. This makes it easier to find failing tests.
Without the suite name it is hard to figure out how to run the failing test
again because you don't know which suite to run.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2176 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 13:44:02 +00:00
ager@google.com efc76278db Support --special-command test option. As a special case support --valgrind option.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2174 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 13:23:57 +00:00
ager@google.com 5023793165 Correctly handle the --arch argument to dart test scripts.
Support a --verbose/-v flag that prints all commands run.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2169 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 12:48:09 +00:00
jacobr@google.com 770a6a6c0a New version of the bindings.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2168 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 12:31:46 +00:00
sgjesse@google.com 3d8e19a43f Simulate data and close callbacks on a synchronous file input stream
A input stream obtained from File.openInputStream() can now be used
with code that expects data and close callbacks.

Before the input stream obtained from File.openInputStream() did not
generate any callbacks.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2166 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 08:57:31 +00:00