Commit Graph

79322 Commits

Author SHA1 Message Date
jmesserly@google.com 8dbbe798c0 Add a test for "is Object", fix try-catch of null
Regression test for: http://codereview.chromium.org/8590017/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1622 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 19:12:03 +00:00
hausner@google.com 98ca000f01 Will be used by the debugger to find static calls in Dart code.
Review URL: http://codereview.chromium.org//8588014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1621 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 18:53:16 +00:00
vsm@google.com 8299dfe610 Regenerate from IDL with LANGUAGE_JAVASCRIPT on
Review URL: http://codereview.chromium.org//8588010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1620 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 15:01:35 +00:00
ager@google.com 7808645ea4 Support stub-generator tests on the VM (which does not actually generate the stubs).
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1618 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 14:27:28 +00:00
ager@google.com 0bbe9566c6 Enable language and isolate tests using the dart test runner.
Refactor the test_config.dart files. Have a standard implementation
of a test suite that can be easily customized to cover all the
current suites.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1611 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 12:25:01 +00:00
ager@google.com fb9d29c514 Use the right command for dartc.
Tests running correctly now. The python script does some sort
of batch processing to speed up the test runs. None of that is
in the dart scripts yet.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1610 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 11:20:57 +00:00
ager@google.com 0b8097c578 Start extracting common test_config.dart functionality into a utility library.
R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1607 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 09:39:13 +00:00
ager@google.com 9acb066008 Dart test scripts: fix progress time indication.
Also, fix recursive configuration expansion (--mode=debug,release)
and allow test selection patterns in arbitrary position on the
command line and not just at the end (./tools/test.dart co19 -m release).

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1606 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 09:27:07 +00:00
iposva@google.com d0ef98bc71 - Allocate instantiated type arguments in new gen.
Review URL: http://codereview.chromium.org//8588027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1605 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 08:41:42 +00:00
ager@google.com 7124c5046b Test for immutable Lists in ListSet API methods.
Using the file and socket API it was possible to modify immutable
arrays.

R=sgjesse@google.com,turnidge@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1604 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 06:57:39 +00:00
jmesserly@google.com be50531723 Treat assignment to final as an error
Fixes http://code.google.com/p/dart/issues/detail?id=329

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1603 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 05:07:11 +00:00
jmesserly@google.com 2df4bd027d Add implicit super() call
Fixes http://code.google.com/p/dart/issues/detail?id=283

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1602 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 04:04:16 +00:00
cshapiro@google.com 1309ebd16e Add an external array type to support typed arrays.
Review URL: http://codereview.chromium.org//8429027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1601 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 03:18:52 +00:00
jmesserly@google.com 03fc558ef1 fix initialization of null in loops
http://code.google.com/p/dart/issues/detail?id=468

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1599 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 02:58:17 +00:00
jmesserly@google.com 65590d9809 Fix "is Object" to always be true in Dart.
Also make sure our try-catch codegen knows this fact.
This fixes: http://code.google.com/p/dart/issues/detail?id=469

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1597 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 01:52:59 +00:00
regis@google.com 3c64ffe9a3 Support correct factory syntax in the VM as decribed in the spec.
Change the default value of --silent_warnings from true to false, so that
warnings are visible when legacy factory syntax is used.

In order to facilitate transition of libraries and user programs, legacy factory
syntax is still supported by 2 workarounds, but warnings are printed.

The first workaround allows the factory clause to omit the type
parameter list, which otherwise has to match exactly with the list of
type parameters in the factory class declaration.

The second workaround allows a factory method to omit the type
parameter list. In that case, the type parameter list of the enclosing
class is used instead.

Workarounds will be removed to enforce correct factory syntax at a later time.
Review URL: http://codereview.chromium.org//8585004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1595 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:49:04 +00:00
srdjan@google.com 7397762688 Better tracing of deoptimization (added a reason id and printing of source). Fix a bug with excessive deoptimization for null receiver -- caused by (null).toString().
Review URL: http://codereview.chromium.org//8588002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1593 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:38:05 +00:00
vsm@google.com ec6c1f19aa Enable html_tests for chromium/release
Review URL: http://codereview.chromium.org//8587011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1592 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:32:43 +00:00
srdjan@google.com 651710e328 Fix windows build: a co19 remainder test is failing.
Review URL: http://codereview.chromium.org//8589004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1591 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:07:23 +00:00
vsm@google.com bfb17fba32 Support DOMString[] and regenerate from IDL
Notes:
- This rolls forward to just before Pavel's LANGUAGE_JAVASCRIPT change.  I'll update from there in a second CL.
- I'll need to reapply to initWebKitWheelEvent manually to this.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1590 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:05:15 +00:00
srdjan@google.com 778e4bf21f Fix integer's % operation; fix parsing of doubles; update co19 tests.
Review URL: http://codereview.chromium.org//8468025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1589 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 22:52:56 +00:00
shauvik@google.com 5491527d87 Added support for dumping AST to console, text file or dot file
Review URL: http://codereview.chromium.org//8566019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1587 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 22:33:55 +00:00
amshali@google.com 8eb81c43b4 Fixed a compile error
Review URL: http://codereview.chromium.org//8586002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1586 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 22:31:33 +00:00
asiva@google.com ac82be41eb Report an error when Dart_ListGetAsBytes does not get an integer list.
Review URL: http://codereview.chromium.org//8523036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1585 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 21:12:38 +00:00
vsm@google.com fefe9875a2 Changes initWheelEvent to initWebKitWheelEvent
Review URL: http://codereview.chromium.org//8583003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1584 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 20:02:44 +00:00
antonm@google.com b869b81c1d Mirgate dart:html to initWebKitWheelEvent.
Recently Dartium code generator started to follow more closely JS-specific
stuff in IDLs.  And, as an example, for JS we have WheelEvent.initWebKitWheelEvent, not
WheelEvent.initWheelEvent as for other languages.  Hence the change.
Review URL: http://codereview.chromium.org//8581002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1582 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 19:26:40 +00:00
sigmund@google.com eaa083e94b Convert most of the javascript isolate code into Dart, inject JS code only when
isolates are used by the application.

This brings 'hello world' down to 1.2k

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1581 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 18:26:07 +00:00
ager@google.com f79cb1f051 Update co19 test expectations after fixing Expect.listEquals.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1578 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 16:19:46 +00:00
ager@google.com 7c9b90b879 Fix Expect.listEquals error message.
R=floitsch@google.com
BUG=dart:476
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1577 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 16:11:30 +00:00
ager@google.com dbe72d6a24 Fix Windows build.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1574 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 15:53:29 +00:00
ager@google.com c4fb2b2f4d Implement setPosition on File to seek to a byte position.
R=sgjesse@google.com
BUG=dart:263
TEST=standalone/FileTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1573 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 15:50:55 +00:00
ager@google.com 17c3c9b8c2 Optimize the processing of test options.
Read the entire file in one go and find all matches of the regexps.
This reads the file with the assumption that one byte is a char.
For the things we are looking for that will be ok.

No need to pass special options to get a larger new space. We
run corelib, standalone and co19 in roughly 10sec on my machine.
With the python version we are at 6sec.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1569 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 14:48:44 +00:00
zundel@google.com 04e553e1c4 Sorted some files before refactoring
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1567 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 14:13:04 +00:00
floitsch@google.com b34a3599a7 Use Expect.listEquals instead of own version.
R=ngeoffray@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1565 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 13:13:54 +00:00
ager@google.com 2b62a139f2 Enable co19 test suite on dart test scripts.
Updated the TestExpectations class to be able to deal with the
odd matching rules that are used for co19.

Currently we are using a lot of memory when running all of these
tests. I have optimized the test expectation part quite a bit.
The thing that seems bad now if the processing of all the lines
of every simple test to find DartOptions. We need to work on that.

R=whesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1563 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 12:27:06 +00:00
terry@google.com 17fc5c5060 Fixed update to correctly call htmlconverter.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1557 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 02:47:20 +00:00
efortuna@google.com bb83c227fe Made changes to the test architecture so that we can run frameworks other than
just Firefox from WebDriver.
Review URL: http://codereview.chromium.org//8566021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1555 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 00:42:18 +00:00
turnidge@google.com 548cced243 Provide better error messages when we fail to build the builtin lib.
Review URL: http://codereview.chromium.org//8571020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1554 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 00:18:03 +00:00
codefu@google.com efcbffc225 Handle NPE case for 'dart:typo'
http://code.google.com/p/dart/issues/detail?id=203

R=jwren@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1553 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 22:36:03 +00:00
asiva@google.com aaffbd2561 Support command line parameters to specify a url to file name mapping. This is used during snapshot generation so that a URL is mapped to a physical file name.
Review URL: http://codereview.chromium.org//8439061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1550 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 21:19:27 +00:00
iposva@google.com 4d3a4d6568 - Warn about variable length arrays.
Review URL: http://codereview.chromium.org//8564035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1543 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 19:09:19 +00:00
srdjan@google.com dd28a71e37 Remove more broken co19 tests, ENABLE tests for frog and dartc.
Review URL: http://codereview.chromium.org//8573008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1542 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 18:36:51 +00:00
srdjan@google.com 2eb7456a30 Fix build, by disabling the correct tests (Expects.StringEquals should not throw an exception and certain co19 tests faile unexpectedly in checked mode).
Review URL: http://codereview.chromium.org//8574011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1541 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 18:23:11 +00:00
srdjan@google.com 92f177896b Fix throwing ObjectNotClosure instead of null exception if closure is null.
Fix integer compareTo if other is a double NaN.
Fix Expect.stringEqual to accept null as arguments.
Update co19 status file.
Review URL: http://codereview.chromium.org//8528050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1539 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 18:02:12 +00:00
iposva@google.com 0c9902ca67 - Avoid allocating variable length arrays on the stack.
- Fix C++ warning about copying vtables.
- Use correct delete for PortMap entries.
Review URL: http://codereview.chromium.org//8555024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1538 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 17:47:21 +00:00
scheglov@google.com f53a4aa109 Report errors for default parameter values, issue 351
http://code.google.com/p/dart/issues/detail?id=351

R=zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1536 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 16:58:28 +00:00
sgjesse@google.com 670196a286 Remove invalid assert
TBR=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1535 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 14:14:16 +00:00
sgjesse@google.com 04bc611751 Handle stdin/stdout/stderr on Windows
Create handle objects for stdin/stdout/stderr. For Mac OS and
Linus the file descriptor numbers are used but on Windows the
handles are wrapped in an object.

The system handles for stdin/stdout/stderr on Windows does not
support overlapped IO. To mittigate this the write calls are
performed synchronously and the read calls are preformed in a
thread which posts the result through the completion potr where
it is handled as if it originated from overlapped IO through the
completion port. For now each call to read starts a new thread.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1533 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 13:19:07 +00:00
sgjesse@google.com a0d0bd8899 Rephrase some comments.
R=whesse@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1532 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 12:41:14 +00:00
jmesserly@google.com 8c3822e984 Fix a spurious warning in Frog selfhost. Pretty simple bug, VarMember was not passing through isDynamic (a perhaps misnamed flag whose main effect is to suppress warnings when we're building a dynamic call). Also don't suppress actual assertion generation when "isDynamic" is set.
Review URL: http://codereview.chromium.org//8567016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1526 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 04:31:34 +00:00