Commit Graph

79322 Commits

Author SHA1 Message Date
ngeoffray@google.com 70c01beb9b Clean up (most) uses of Array. Still more to come in the VM corelib code base.
Review URL: http://codereview.chromium.org//8321024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@507 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 10:02:59 +00:00
ngeoffray@google.com 7a76e86b18 Fix test to use developer mode. DartC does not have to check arguments to native methods.
Review URL: http://codereview.chromium.org//8334015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@506 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 09:23:14 +00:00
karlklose@google.com 5bb2f9da7f DartC: Replace Array by List in the type-checker.
Review URL: http://codereview.chromium.org//8317004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@505 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 08:18:31 +00:00
regis@google.com 14b2f4f150 Temporary workaround for issue 5474672.
Review URL: http://codereview.chromium.org//8341007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@504 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 04:32:01 +00:00
regis@google.com ee3fdf27e4 Replace calls to Class::IsParameterized() by either
Class::NumTypeParameters() > 0
or by
  Class::NumTypeArguments() > 0.
Review URL: http://codereview.chromium.org//8329005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@503 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 00:59:54 +00:00
rnystrom@google.com 44170deb77 Clean up util tests to use new style.
Review URL: http://codereview.chromium.org//8337002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@502 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-18 00:37:01 +00:00
nweiz@google.com 9e293343cc Another fix to the web-test pattern.
Review URL: http://codereview.chromium.org//8297007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@501 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:59:01 +00:00
hausner@google.com ab37c41e1d Interpolated strings are never considered compile time const
Review URL: http://codereview.chromium.org//8318031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@500 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:51:28 +00:00
cshapiro@google.com 4f6c98ea40 Add a const qualifier to string handles which are not reassigned.
Review URL: http://codereview.chromium.org//8339002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@499 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:49:48 +00:00
hausner@google.com abdb2d6281 Fix mysterious build breakage that nobody can explain.
Review URL: http://codereview.chromium.org//8339003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@498 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:41:32 +00:00
rnystrom@google.com 97d0ea9c71 Move test(), group(), and expect() to top level.
Instead of being methods on UnitTestSuite, they will automatically create
one if there isn't already one, then run it. This lets you define tests just
like:

main() {
  test('not crazy', () {
    expect(sky) == blue;
  });
}

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@490 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:02:29 +00:00
regis@google.com 74420600b1 Verify method overrides in checked mode only (fix issue 69).
Review URL: http://codereview.chromium.org//8319020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@489 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 23:00:09 +00:00
johnlenz@google.com eadf5e05a2 Add a command-line option for generating source maps.
Review URL: http://codereview.chromium.org//8287001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@486 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 20:58:35 +00:00
regis@google.com 7c2f02849c Merge the 3 different closure nodes into a single node.
Review URL: http://codereview.chromium.org//8294013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@485 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 20:22:42 +00:00
dcarlson@google.com 0266184ec1 Create minimal TextMate mode for Dart.
R=knorton@google.com,rnystrom@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@484 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 20:19:51 +00:00
vsm@google.com cc71ad71ed Test fix: remove extraneous print
TEST=corelib/ListInsertRangeTest

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@483 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 20:18:45 +00:00
terry@google.com 770a1c9d60 Remove the --disable-type-optimizations when --optimize is used.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@482 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 20:10:00 +00:00
srdjan@google.com 76f932ce14 Add test for blacklisting extension/implementation of classes and interfaces. Added a few tests, please comment which additional ones need to be added.
Review URL: http://codereview.chromium.org//8320002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@481 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:43:42 +00:00
johnlenz@google.com 69a08abbbd Namespace named parameters to avoid conflicts
Review URL: http://codereview.chromium.org//8301002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@480 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:31:09 +00:00
regis@google.com 4d24678892 Set type argument vector at compile time in type of closure parameters; this
require the introduction of a signature type cached in signature functions.
Support printing of the name of an instantiated signature type, e.g. print
'(int) => int' instead of '<T>(T) => T<int>'.
Avoid cycles when printing the name of illegal types during error reporting by
checking that the type is not being finalized.
Review URL: http://codereview.chromium.org//8289027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@479 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 19:03:32 +00:00
floitsch@google.com 1eade445f6 Update status file with bug-number.
Review URL: http://codereview.chromium.org//8317013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@476 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 18:28:22 +00:00
floitsch@google.com 3282ad880d Skip layout_tests until I have figured out what is wrong.
TBR=ahe

R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@474 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 17:32:23 +00:00
floitsch@google.com 9ea0d01b92 Fix fix.
TBR=ngeoffray

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@473 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 17:09:22 +00:00
floitsch@google.com a1d6af4e16 Disable DoubleCompareTest in release mode.
TBR=ngeoffray

R=ngeoffray@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@472 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 16:42:20 +00:00
johnlenz@google.com 857683a0f1 Addresses issue 10.
Review URL: http://codereview.chromium.org//8304012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@471 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 16:14:53 +00:00
floitsch@google.com 0a226d3b67 Implement compareTo on DartC.
BUG=5427706

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@470 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 16:07:17 +00:00
jbrosenberg@google.com eee6552316 Disambiguate non-incremental mode from optimized mode in dartc
Review URL: http://codereview.chromium.org//8289008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@469 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 15:30:03 +00:00
zundel@google.com 20a34d063b This adds checks for compile-time constants in places
where the spec demands it:

  - initializing toplevel finals
  - initializing static final class members
  - initializing named parameters to functions

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@468 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 14:12:33 +00:00
kasperl@google.com 7c038b73a6 Landing http://codereview.chromium.org/8258017/ on behalf of
Ola Martin Bini. Changed reviewed by vsm@google.com.
Review URL: http://codereview.chromium.org//8306026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@467 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 13:52:54 +00:00
srdjan@google.com bb75f90553 Fix 5442338: Return true if the pc descriptor verifier skips verification because of too many descriptors to check.
Review URL: http://codereview.chromium.org//8318002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@466 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 12:29:49 +00:00
srdjan@google.com 934409878a Fix for bug 5442338 (crash in deoptimization): when optimized code calls deoptimization stub, check if the function was already deoptimized previously before attempting to restore unoptimized code.
Add test case when optimized code of a deoptimized function is several time on stack, and deoptimization occurs after the function was already deoptimized.
Review URL: http://codereview.chromium.org//8311017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@465 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-17 11:27:22 +00:00
knorton@google.com 0b647b51c0 Convert cache property from array to object.
This fixes hangs on Safari where it attempts to stringify the array.
Review URL: http://codereview.chromium.org/8301007/

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@463 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-15 01:32:09 +00:00
rnystrom@google.com 18640b3396 Get rid of "==" in Expectation.
Review URL: http://codereview.chromium.org//8297009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@462 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 23:21:44 +00:00
regis@google.com dc895f3138 Rename class AssertError to AssertionError in the VM (fix issue 119).
Move VM specific tests to the correct tests directory.
Enable asserts in the VM when type checks are enabled.
Review URL: http://codereview.chromium.org//8294005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@460 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 22:02:50 +00:00
mattsh@google.com adf76c310c future and completer
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@459 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 22:00:13 +00:00
johnlenz@google.com 95578019c0 Changes "is" and equality checks to strictly check for primitive types, fix a couple of
places we were converting primitives to Object types by "this" coersions.

Fixes issue 79.
Review URL: http://codereview.chromium.org//8286001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@456 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 21:27:14 +00:00
johnlenz@google.com bd867bb9bc Add missing file from the last assert change.
Review URL: http://codereview.chromium.org//8289012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@454 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 21:12:38 +00:00
rnystrom@google.com c28999e0fa Fix pattern used to tell which tests are web tests.
Review URL: http://codereview.chromium.org//8295012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@453 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 21:09:06 +00:00
pdr@google.com b8397762e1 IE9 dom fixes: Add check for __proto__ before using it and add some name workarounds.
Review URL: http://codereview.chromium.org//8277016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@452 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 20:25:00 +00:00
johnlenz@google.com b39ac783af Improve error message for over qualified constructor names.
Review URL: http://codereview.chromium.org//8295003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@451 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 19:19:08 +00:00
jat@google.com d8d8507c7e Add a test that verifies that rethrow ("throw;") throws the expected exception.
R=mmendez,kasperl
Review URL: http://codereview.chromium.org//8271018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@448 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 17:59:47 +00:00
terry@google.com 40310a05ad Support layout metrics in CSS.
- Needed a little more CSS grammar:
       - repeat syntax
       - #elemId regEx was wrong at least 1 character not 2.
  - Changed emitted Dart code for stylets.
  - Changed layout sample code to use CSS stylets.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3574027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@447 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 17:54:07 +00:00
johnlenz@google.com 8ae66721f8 Update assert to follow the spec.
Review URL: http://codereview.chromium.org//8276014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@446 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 17:38:03 +00:00
codefu@google.com 92e3b133c1 Missing unitCompiled()
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@443 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 15:54:17 +00:00
benl@google.com 57b0a93060 Report missing dartc on stderr so junit tests work in debug mode.
TBR=ngeoffray
Review URL: http://codereview.chromium.org//8273039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@442 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:50:46 +00:00
fmalita@google.com a7cc9bcb49 Fling: implement the new DartCompilerListener.unitCompiled() method.
R=knorton@google.com,codefu@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@441 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:48:10 +00:00
ngeoffray@google.com fee0ef8fb5 Make sure we cleanup what was generated by the architecture.
Review URL: http://codereview.chromium.org//8283033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@440 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 14:25:18 +00:00
ngeoffray@google.com 52aa068f73 Implement List.insertRange.
Review URL: http://codereview.chromium.org//8271029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@439 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:44:18 +00:00
codefu@google.com 58060dbd96 Ground work for addition to new listener api
Review URL: http://codereview.chromium.org//8285004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@438 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:31:33 +00:00
ager@google.com 4bf840639c Fix windows build.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@437 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 13:19:20 +00:00