codefu@google.com
2afd27cbf6
Increase Mac stack size
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8970033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2552 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 23:28:23 +00:00
efortuna@google.com
89fc7ef53e
Fix paths in build process so we can build dartc (and then frog) on Windows.
...
Review URL: http://codereview.chromium.org//8972011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2538 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 19:36:40 +00:00
codefu@google.com
e9487a92e4
Expands on previous function RTT to support named/optional parameters.
...
Issues encountered:
http://code.google.com/p/dart/issues/detail?id=847
http://code.google.com/p/dart/issues/detail?id=848
BUG=
TEST=
Review URL: http://codereview.chromium.org//8913006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2465 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 13:31:32 +00:00
regis@google.com
5db4de9756
Implement revised factories in the VM.
...
Emit warnings when obsolete syntax is used.
Review URL: http://codereview.chromium.org//8921033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2394 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 19:35:07 +00:00
zundel@google.com
2c38b7de7f
This adds a check to the resolver to detect when an override
...
has different number of parameters than in its superinterface.
Review URL: http://codereview.chromium.org//8632020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2354 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-12 19:19:18 +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
ager@google.com
3bf558018e
Allow single-dash options to be specified without a space before value.
...
./tools/test.dart -mdebug,release
Make the patterns given to the test script more restrictive. A pattern
has to specify the test suite as the first component. The rest is used
as a pattern on all tests within that suite:
./tools/test.dart -mrelease leg co19/leg
will run the leg tests and the co19 tests that contains the substring
'leg' somewhere in the full path name of the test.
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8772007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2014 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 11:50:05 +00:00
zundel@google.com
b721a2962a
Puts JsScope on a diet
...
Lazy initialization of the names field and interning the description field
reduces memory consumption from > 128M to < 64 M in a unit test that was
suffering from OOM problems.
Review URL: http://codereview.chromium.org//8659022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1986 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 15:42:32 +00:00
scheglov@google.com
bb1c53ac58
Fix for resolving interface constructors in factory, issue 521.
...
http://code.google.com/p/dart/issues/detail?id=521
R=zundel@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8747016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1945 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:37:44 +00:00
regis@google.com
f43ffceffd
Update function type checking in VM after spec change (issue 444):
...
- the return types must be covariant or contravariant (an earlier version of the
guide specified contravariance only).
- the names of optional parameters must match in the same order (an earlier
version of the spec specified that any subset was allowed, no order required).
Review URL: http://codereview.chromium.org//8664015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1898 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 17:00:16 +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
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
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
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
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
jmesserly@google.com
5e4805a30a
Parser fix for lambdas. All the heavy lifting courtesy of Stephen :)
...
(http://codereview.chromium.org/8400017/ )
Only difference in this version is using a List instead of a Map (due to Maps having not so great performance at the moment when the keys are numbers. And we could get even better perf by tweaking this to cache the lookahead on the Token, if we really wanted to)
Review URL: http://codereview.chromium.org//8545003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1683 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-19 01:46:51 +00:00
srdjan@google.com
8b6dbe1b76
Do not allow allocation of FallThroughError and AssertionError by the user.
...
Review URL: http://codereview.chromium.org//8569013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1671 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 20:36:42 +00:00
sigmund@google.com
682511e998
Support globals in frog isolates.
...
Review URL: http://codereview.chromium.org//8591033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1667 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 18:38:17 +00:00
regis@google.com
747ffe77c2
Use correct issue number in co19 status file.
...
Review URL: http://codereview.chromium.org//8585045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1636 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 22:19:34 +00:00
jmesserly@google.com
3a321d88f6
Fixes issues in string interpolation tests
...
This started as my attempt to add a test for http://codereview.chromium.org/8591010/ , but it snowballed into fixing other issues when I discovered that StringInterpolateTest was failing already.
Review URL: http://codereview.chromium.org//8585044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1634 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 21:48:39 +00:00
regis@google.com
80d89cc93b
Fix parsing of factory calls (issue 500).
...
Add test.
Fix test.
Adjust co19 status file.
Review URL: http://codereview.chromium.org//8591025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1633 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 21:42:55 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
srdjan@google.com
6ae61921fa
Update co19-runtime.status with issues assigned.
...
Review URL: http://codereview.chromium.org//8555019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1524 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-15 00:22:09 +00:00
srdjan@google.com
22ea3cf225
Fix String.trim implementation (follow spec).
...
Fix Queue.every, Queue.some, Queue.filter, ..
Adapt co19 status files.
Review URL: http://codereview.chromium.org//8510066
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1521 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 22:23:41 +00:00
srdjan@google.com
17aa639eb1
Update co19 status for runtime.
...
Review URL: http://codereview.chromium.org//8536044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1518 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 18:03:41 +00:00
floitsch@google.com
1bf944156e
Fix dual-pivot sort.
...
BUG=dart:432
TEST=
Review URL: http://codereview.chromium.org//8510047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1506 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:57:59 +00:00
floitsch@google.com
e24dec2169
Rename StopWatch to Stopwatch. Add new Stopwatch.start() and Stopwatch.reset().
...
BUG=dart:418
TEST=
Review URL: http://codereview.chromium.org//8537011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1505 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-14 13:56:18 +00:00
jmesserly@google.com
5a8a4b3cce
Fix dispatch on MemberSets to always go dynamic if needed.
...
And a bug where we'd put a dynamic toString and == on Object that conflicts with the one that is actually on Object.
Review URL: http://codereview.chromium.org//8540030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1494 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-12 01:32:50 +00:00
jmesserly@google.com
469f38d61d
Fix co19 status in light of r1485. Trying to get the bots green.
...
Review URL: http://codereview.chromium.org//8539033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1492 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-12 00:38:17 +00:00
jmesserly@google.com
21943943f5
fix co19 status
...
I was trying to be too clever. The tests are plain old passing, regardless of checked mode.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8536039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1484 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 23:46:13 +00:00
jmesserly@google.com
66e7eed905
Optimize boolean asserts
...
This change adds a notion of non-nullability to the type system. We use this to track nullable vs non-nullable bools, removing a lot of the checks in "if" "for" etc.
Also fixes ?: precedence, uncovered by sra's PEG tests
Review URL: http://codereview.chromium.org//8463027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1481 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 23:31:57 +00:00
jimhug@google.com
30f83aefc5
incremental progress on Value
...
I particularly like the fun type error this caught in corelib_impl.
Review URL: http://codereview.chromium.org//8538019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1472 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 19:48:55 +00:00
jmesserly@google.com
92ba3e1590
Change presubmit to run co19 tests, but run a few less frog configurations to keep the total runtime similar.
...
Review URL: http://codereview.chromium.org//8528015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1471 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 19:36:05 +00:00
sigmund@google.com
5cec1f4072
fix co19 tests - updates that I didn't catch after merging with John's cl
...
Review URL: http://codereview.chromium.org//8539003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1446 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:22:38 +00:00
sigmund@google.com
03058faa90
Enable frogium test in bots, and fix checked mode on co19 tests.
...
Review URL: http://codereview.chromium.org//8523027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1445 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:02:24 +00:00