sra@google.com
4f20c6ca03
Mark frog DOMWindow as aliased with global scope.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8773024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2006 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 00:20:47 +00:00
zundel@google.com
8455d926f6
Parse method names that include type variables.
...
As a first step to allow factory methods to specify type variables, this
allows the parser to accept statements similar to the form:
class A {
factory B<T>.create() { }
}
http://code.google.com/p/dart/issues/detail?id=417
Review URL: http://codereview.chromium.org//8774024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2004 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 23:46:25 +00:00
srdjan@google.com
d07087ce77
Ongoing renaming of type classes:
...
TypeArguments -> AbstractTypeArguments
TypeArray -> TypeArguments
Review URL: http://codereview.chromium.org//8776020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2002 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 23:19:59 +00:00
jmesserly@google.com
3bbfbdb214
Fixed escaping of const values
...
http://code.google.com/p/dart/issues/detail?id=323
Review URL: http://codereview.chromium.org//8773021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2001 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 23:16:43 +00:00
asiva@google.com
f556b81f0f
Refactor the gypi files to eliminate some redundancy.
...
Review URL: http://codereview.chromium.org//8772016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1999 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 23:04:22 +00:00
nweiz@google.com
c485674382
Get html-diff running again.
...
TBR
Review URL: http://codereview.chromium.org//8769021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1998 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 22:51:54 +00:00
jmesserly@google.com
f303a82f37
Frog now knows about the JS global object, and prevents name collisions with user code. I wasn't sure how to update the IDL generator scripts, so I just hand edited the frog_dom file to add the "@".
...
Fixes http://code.google.com/p/dart/issues/detail?id=637
Review URL: http://codereview.chromium.org//8775027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1994 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 22:19:45 +00:00
srdjan@google.com
2ff4d8a207
Address Regis' comments, replace AbstractType with Type where possible.
...
Review URL: http://codereview.chromium.org//8772009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1992 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 21:14:48 +00:00
turnidge@google.com
5bae9d4020
Add some checking macros:
...
CHECK_ISOLATE -- make sure that there is a current isolate.
CHECK_NO_ISOLATE -- the opposite.
CHECK_ISOLATE_SCOPE -- make sure that there is a current isolate and it has an API scope.
DARTSCOPE changes to call CHECK_ISOLATE_SCOPE. If you don't want
that, use DARTSCOPE_NOCHECKS.
Went through all of the DART_EXPORT function and made sure they all
had the appropriate checking.
Rewrite DARTSCOPE a bit to avoid evaluating the macro param multiple
times.
Review URL: http://codereview.chromium.org//8733011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1990 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 19:17:10 +00:00
turnidge@google.com
bf548c4cca
Add some ::'s to disambiguate calls for the win32 build.
...
Review URL: http://codereview.chromium.org//8773015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1989 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 18:59:23 +00:00
turnidge@google.com
7c2a96158e
Stop using void* types in the dart embedding api.
...
Review URL: http://codereview.chromium.org//8761007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1988 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 18:18:06 +00:00
srdjan@google.com
17552e9a3c
Renaming type classes as discussed:
...
Type -> AbstractType
ParameterizedType -> Type
TODO:
TypeArguments -> AbstractTypeArguments
TypeArray -> TypeArguments
Review URL: http://codereview.chromium.org//8761011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1987 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 16:54:52 +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
ager@google.com
2995930544
Allow varying case in the expected outcome (Pass, PASS).
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8775007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1981 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:18:30 +00:00
ngeoffray@google.com
8c8ffbac52
Only build 'compiler' (ie dartc) when running chromium tests.
...
Review URL: http://codereview.chromium.org//8776005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1980 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:17:53 +00:00
whesse@google.com
3eda34cb77
Split PrivateMemberTest multi-test into separate tests.
...
BUG=http://code.google.com/p/dart/issues/detail?id=353
Review URL: http://codereview.chromium.org//8585028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1978 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:13:52 +00:00
ager@google.com
d337ced66c
Fork test scripts to support special runtime checkout.
...
Deal with a couple of other issues in tests scripts also
caused by having to support a separate runtime checkout.
Review URL: http://codereview.chromium.org//8773006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1977 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:02:24 +00:00
ngeoffray@google.com
a90e28e7a1
Get rid of guessing the VM location in frog.py.
...
Review URL: http://codereview.chromium.org//8773005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1976 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 12:58:53 +00:00
whesse@google.com
0fd45f103e
tools/test.dart: Add synchronization, so the process queue knows when all multitests are done.
...
BUG=
TEST=tools/test.dart
Review URL: http://codereview.chromium.org//8773004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1974 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 12:11:40 +00:00
whesse@google.com
90237ddd0b
Dart tests: Create generated tests in build directory in test.dart.
...
BUG=
TEST=tools/test.dart
Review URL: http://codereview.chromium.org//8754001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1973 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 12:01:44 +00:00
podivilov@google.com
c692646f07
Introduce Dart_SetVMFlags API function.
...
It should be possible to set command line arguments without providing isolate init callback.
Review URL: http://codereview.chromium.org//8713012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1972 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 11:59:35 +00:00
ager@google.com
a7e26a2575
Fix HTTP sample implementation to actually wait for connections before attempting to write.
...
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8776001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1971 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 11:44:29 +00:00
ager@google.com
06a0bba5a6
Add the frog test suites to the dart test scripts.
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8747018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1969 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 10:45:28 +00:00
iposva@google.com
eb1b2880bb
- "#library warning" fixit: Add #library where it could be expected.
...
Review URL: http://codereview.chromium.org//8764019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1968 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 05:56:26 +00:00
dgrove@google.com
75eaa7d815
Add '#library' to tests that need a #import or #source.
...
Review URL: http://codereview.chromium.org//8764018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1967 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 05:54:22 +00:00
jmesserly@google.com
6e25de7297
Fix NamingTest on all Frog configurations:
...
* throw the right exception even if the missing method was call$1
* fix a nasty escape bug in replaceAll ($ is a meta-char in the second argument of String.prototype.replace, so it must be escaped as "$$"). This bug is especially meta because the code that failed was str.replaceAll("$", "$$") ... but the bug could be triggered any time the "to" argument to "replaceAll" contained "$". See this link for more info:
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace
Review URL: http://codereview.chromium.org//8763018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1966 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 03:59:17 +00:00
iposva@google.com
3117f4cbfc
- Implement a simple old-generation marker.
...
Review URL: http://codereview.chromium.org//8761006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1962 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 02:11:40 +00:00
jmesserly@google.com
e36306f19e
Update status file to make Frog green. I'll look at getting this test working on all configs. It looks like it's tripping over different exception mapping on frog/checked, and some kind of selfhost issue on frogsh/*
...
Review URL: http://codereview.chromium.org//8763012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1960 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 01:49:02 +00:00
regis@google.com
b2a50c744b
Port object tests to x64.
...
Review URL: http://codereview.chromium.org//8758012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1959 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 01:44:01 +00:00
asiva@google.com
b53c955b37
- Refactor the isolate callback mechanism to also include creation of the
...
isolate, this enables creation of isolates using a snapshot
- remove source buffers of corelib, coreimpl-lib and builtin-lib from the binary
Review URL: http://codereview.chromium.org//8673002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1958 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 00:30:25 +00:00
sra@google.com
23998581cd
Add test for Object.dynamic.
...
Currently failing on Frog.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8761009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1956 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 00:24:29 +00:00
regis@google.com
e27623a4ef
Disable x64 disassembler under win32.
...
Add x64 assembler macros.
Review URL: http://codereview.chromium.org//8760015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1955 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 23:55:30 +00:00
mattsh@google.com
41b75c295f
rpc example for directory file listing
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8536006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1954 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 23:24:20 +00:00
regis@google.com
d55fe56fcc
Disassembler for x64.
...
Review URL: http://codereview.chromium.org//8758005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1953 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 23:12:46 +00:00
srdjan@google.com
fbd0212a89
Better fix for printing (after discussing it with Ivan and Regis)
...
Review URL: http://codereview.chromium.org//8761004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1952 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 23:10:39 +00:00
regis@google.com
503896daef
Initial revision of assembler for x64.
...
Review URL: http://codereview.chromium.org//8747023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1951 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 22:02:21 +00:00
srdjan@google.com
a0371264a9
Fix breakage in printing.
...
Review URL: http://codereview.chromium.org//8761003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1950 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:55:22 +00:00
sigmund@google.com
545c4cd917
.status file change: make presubmit.py green again.
...
Review URL: http://codereview.chromium.org//8765001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1949 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:54:35 +00:00
jmesserly@google.com
254a4c0d88
Fix names with '$' to not conflict with operators or internal helpers.
...
Does two things:
* In our Dart type system, we track special names with ":" instead of "$". So ":add" and "get:foobar" "set:foobar". In "jsname" we change this back to $
* in jsname, mangle $'s from Dart identifiers into $$. It's not perfect, but should avoid conflicts with our various helpers.
http://code.google.com/p/dart/issues/detail?id=639
Review URL: http://codereview.chromium.org//8763001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1948 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:52:59 +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
srdjan@google.com
0063555050
Use ParametrizedType instead of Type where appropriate. Expand ToCString of type related classes. Do not instantiate abtract classes Type and TypeArguments (e.g., through Type::null());
...
Review URL: http://codereview.chromium.org//8742028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1941 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:14:22 +00:00
mmendez@google.com
a0aedcf9e1
Fix build break introduced by r1935.
...
Review URL: http://codereview.chromium.org//8741027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1939 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 20:21:37 +00:00
mmendez@google.com
61dd161180
Simplify named method trampolines if named parameters are not involved.
...
There is no need to declare seen and def for methods that don't have named arguments. Saves ~25k for an empty app and ~416k for Total.
Review URL: http://codereview.chromium.org//8746017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1938 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 19:49:41 +00:00
hausner@google.com
a2b19753dd
More test list changes for dartc
...
language/ToplevelCollision2/01 and /02 pass, but for the wrong reason.
The are negative tests that produce the wrong compile-time error.
Review URL: http://codereview.chromium.org//8749013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1937 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 19:25:59 +00:00
rnystrom@google.com
bbbee862dd
Add unittest entrypoint for node/frog.
...
Review URL: http://codereview.chromium.org//8742025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1936 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 19:17:15 +00:00
hausner@google.com
da69c9a79c
Update test list for dartc
...
Review URL: http://codereview.chromium.org//8748016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1935 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 19:14:01 +00:00
hausner@google.com
51bb1d4e4c
Properly detect name collisions at library level
...
Fixing issue 592
Review URL: http://codereview.chromium.org//8724015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1934 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 18:55:37 +00:00
rnystrom@google.com
f7f610fdb5
Find [references] to top-level members.
...
Review URL: http://codereview.chromium.org//8692017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1932 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 18:34:10 +00:00
rnystrom@google.com
fb075c5865
Use subscript to get match groups.
...
Review URL: http://codereview.chromium.org//8739001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1931 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 18:30:02 +00:00
hausner@google.com
84d5a83afa
Fix linux build.
...
Review URL: http://codereview.chromium.org//8749007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1929 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 17:10:56 +00:00