Commit Graph

79322 Commits

Author SHA1 Message Date
srdjan@google.com 4ebee97585 Print Bigints in decimal format.
Review URL: http://codereview.chromium.org//8351050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1058 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-02 00:36:10 +00:00
jimhug@google.com 8b964a96ab Most of these tests appear to be relying on checking code that will never be run. My model of dart is that these tests may not happen - unless compiled with a special --compile_all flag - and that we should fix the tests by adding some small amount of code to ensure that the broken code is reached.
I have some more detailed notes on a few of the tests which have different issues.

With these changes, the vm and dartc both still pass all tests (except for some confusing behavior in dartc on ThirdTest).  However, these tests should match the expected semantics of dart more closely and allow for greater flexibility in deciding exactly when correctness must be verified.

Note: We still need to add a separate test for the --compile_all flag that will test the mode where we insist on compiling/checking all input code.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1055 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-02 00:23:03 +00:00
regis@google.com 4bc0c5eecc Simplify canonicalization of constants and types.
Review URL: http://codereview.chromium.org//8442001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1053 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 23:38:09 +00:00
jacobr@google.com 157b35983a Implement measurement using promises
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1050 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 23:17:47 +00:00
regis@google.com 3125475ef8 Canonicalize types.
Review URL: http://codereview.chromium.org//8372041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1045 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 22:00:06 +00:00
codefu@google.com b32b5ceb7f Constructor parameters should have this.<field> reference elements set.
R=brianwilkerson@google.com,mmendez
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1043 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 21:55:16 +00:00
fabiomfv@google.com ec78d3fce6 https://code.google.com/p/dart/issues/detail?id=223
Review URL: http://codereview.chromium.org//8384018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1036 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 18:42:54 +00:00
codefu@google.com 74866724b7 Tweaks to get presubmit working
R=zundel
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1035 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 18:23:21 +00:00
turnidge@google.com d7c536d677 Reorganize dart_api.h and add a bunch of documentation.
Review URL: http://codereview.chromium.org//8343045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1034 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 18:11:36 +00:00
ahe@google.com b12090febd Update co19 status for vm-win32 checked mode.
Review URL: http://codereview.chromium.org//8423011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1032 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 17:51:39 +00:00
ahe@google.com 1b3cab3a4c Update status file.
Review URL: http://codereview.chromium.org//8438006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1031 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 17:33:17 +00:00
ahe@google.com 287c47916f Adjust co19 status for windows
Review URL: http://codereview.chromium.org//8439003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1029 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 17:12:04 +00:00
ahe@google.com ceb8ed7aaa More co19 fiddling. Sections are tricky.
Review URL: http://codereview.chromium.org//8351041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1028 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 16:54:17 +00:00
ahe@google.com 56e2b80cc3 More fiddling with co19 status.
Review URL: http://codereview.chromium.org//8386005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1027 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 16:44:19 +00:00
ahe@google.com 6484640a85 Update status file for checked tests.
Review URL: http://codereview.chromium.org//8438004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1026 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 16:32:15 +00:00
ahe@google.com a7ebe7f317 Fix broken test.py expression.
Review URL: http://codereview.chromium.org//8386003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1024 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 16:10:32 +00:00
ahe@google.com f544669837 Use $checked to check for VM running in checked mode
Review URL: http://codereview.chromium.org//8438001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1023 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 15:46:32 +00:00
ahe@google.com 45fbff75cd Update dartc status to co19 r16
Review URL: http://codereview.chromium.org//8351037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1020 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 15:17:46 +00:00
ahe@google.com f23f15b33c Skip tests that behaves differently in checked mode
Review URL: http://codereview.chromium.org//8430032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1017 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 15:10:00 +00:00
ahe@google.com 3f33ba36b5 Remove passing test from status file
Review URL: http://codereview.chromium.org//8429035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1014 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 14:37:17 +00:00
ahe@google.com be72c6c040 Tests that only fail on Mac
Review URL: http://codereview.chromium.org//8432034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1013 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 14:33:15 +00:00
ager@google.com 5b5c36e253 Implement async file API on top of isolates.
This is not going to be efficient but will give us the right
semantics of the operations. We should be using native async
operations for this.

Fixed a bug in VM implementation of List.setRange.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1012 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 14:07:30 +00:00
codefu@google.com 41a2b62dec Fix prefix variable parse errors
R=floitsch@google.com,mmendez
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1010 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 13:58:28 +00:00
ahe@google.com cab0e62fb1 Update co19 status file
Review URL: http://codereview.chromium.org//8387069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1008 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 13:53:14 +00:00
ahe@google.com 012202bcba Update VM co19 status file
Review URL: http://codereview.chromium.org//8432032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1006 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 13:48:25 +00:00
ahe@google.com 8846883321 Update to co19 revision 15.
Review URL: http://codereview.chromium.org//8430028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1004 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 13:29:33 +00:00
alexeif@google.com c673b4a335 Fix hilighting of string interpolation and several operators.
Review URL: http://codereview.chromium.org//8432002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1003 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 12:02:44 +00:00
sgjesse@google.com 032de2585d Some Linux and Mac OS event handler refactoring
This moved some of the handling of the data on a socket to a socket data object.

This is a step in preparation for another change where more state will be stored on socket data object.

This is also a step in moving from an array of socket data objects indexed by the file descriptor to a hash map of socket data objects.

R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1001 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 11:54:14 +00:00
sgjesse@google.com 18e5ef8da5 New OutputStream interface
R=ager@google.com

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@997 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 10:10:37 +00:00
ngeoffray@google.com 33ec29bf11 Add a new variable environment for testing, to replace the misusage of 'arch'.
Review URL: http://codereview.chromium.org//8408002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@993 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 09:12:55 +00:00
floitsch@google.com 161ae6b076 Fix DurationImplementation == operator.
BUG=198

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@992 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 09:11:35 +00:00
sra@google.com 60bbb9b0bc Add test with implicit super() initializer.
TBR=hausner
BUG=286
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@991 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 05:11:02 +00:00
sra@google.com 4e729db1f7 Add explicit 'super()' calls for dartc / frog.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@988 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 04:15:04 +00:00
sra@google.com f22ce24b56 Work-arounds for missing and broken Frog functionality.
Local functions with named parameters don't work (missing metadata?)

Local functions with these paremeters don't parse:
  -  indented(action()) { // fix:  indented(action) {
  -  wln([node=null]) {   // fix:  wln([node]) {

TBR=vsm

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@986 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 03:21:33 +00:00
srdjan@google.com 24b14c7e53 Fix for bug 5270133 by preventing wrong canonicalization. Fixes problem of sporadic Dart failures when running in checked mode. Fixed wrong tests.
Review URL: http://codereview.chromium.org//8432016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@983 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 00:12:12 +00:00
jat@google.com 2c5709353c Fix build break from r975. It passed on my machine, but the only Expect.equals
with a 9 is in the boolean test, and I recall some discussion about whether
if(null) should actually throw a TypeError or not.

TBR=fabiomfv

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@981 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 23:38:16 +00:00
vsm@google.com 08aa372a33 Skip compiling frog_dom with dartc
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@979 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 23:16:45 +00:00
vsm@google.com 7e8446b9f9 Forgot generated code for frog dom.
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@977 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 22:59:50 +00:00
vsm@google.com 7b3449d97a Mods to generate frog dom apis
Note: The generated DOM will be added under generated/src/frog.  I'll upload them once you've had a chance to look at the script changes without clutter.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@976 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 22:18:02 +00:00
jat@google.com 502c606b81 Add additional runtime type checks.
Review URL: http://codereview.chromium.org//8393015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@975 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 22:09:42 +00:00
regis@google.com a8478d5312 Fix parsing of named parameters (issue 243).
Add corresponding test.
Review URL: http://codereview.chromium.org//8387046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@973 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 21:16:15 +00:00
asiva@google.com b94e5d20ad Enhance the array access API to deal with any objct that implements the list interface.
A future change will consider making the growable array a first class VM object so that access to growable array would be more efficient through the API.
Review URL: http://codereview.chromium.org//8417003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@972 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 21:08:39 +00:00
asiva@google.com 8e2f6361f1 When generating snapshots for a specified script don't include the builtin library by default. The DOM snap shot for instance does not want the builtin library. If the builtin library is needed it needs to be explicitly imported in the specified script.
Review URL: http://codereview.chromium.org//8343071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@971 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 20:53:44 +00:00
turnidge@google.com 45ab0f6d65 DART_CHECK_VALID -- abort on an invalid handle.
EXPECT_VALID -- check handle validity in unit tests.
Review URL: http://codereview.chromium.org//8401010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@970 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 20:18:07 +00:00
antonm@google.com cf53ea78d7 Make DartVM build with clang.
Review URL: http://codereview.chromium.org//8381037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@966 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 19:07:48 +00:00
srdjan@google.com f5713b39eb Fix buildbot breakage for checked mode (allow TypeError as well).
Review URL: http://codereview.chromium.org//8430012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@965 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 19:01:48 +00:00
floitsch@google.com 92e7c3981f Increase timeout. Hopefully this reduces the flakiness on the build-server.
Start timeout only when document is loaded.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@964 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:50:08 +00:00
regis@google.com f9cb997183 Verify that user classes do not extend any of Bool, Double, ObjectArray,
ImmutableArray, GrowableObjectArray, IntegerImplementation, Smi, Mint,
BigInt, OneByteString, TwoByteString, FourByteString.
Review URL: http://codereview.chromium.org//8429013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@963 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:45:16 +00:00
srdjan@google.com 6d8d978d5a FIx issue 261: throw exception if index if idnexed oeprators if lists Array and GrowableArray is not int.
Review URL: http://codereview.chromium.org//8387035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@962 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 18:40:32 +00:00
antonm@google.com f05150594a Proper reg for deoptiomization.
EAX may get overwritten by the operation.  Original value can be restored from ECX.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@958 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 17:49:28 +00:00