floitsch@google.com
a8543e8bb8
Integrate double-conversion into build-process.
...
Review URL: http://codereview.chromium.org//8725003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1872 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 19:04:33 +00:00
floitsch@google.com
326417a3ba
double-conversion drop.
...
Not yet integrated into build process.
Review URL: http://codereview.chromium.org//8632010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1870 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 18:38:38 +00:00
srdjan@google.com
799b1c5c72
Add flag --use_slow_path to test slow paths. Started with implementation for implicit closure allocation.
...
Review URL: http://codereview.chromium.org//8713015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1866 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 17:08:38 +00:00
srdjan@google.com
35faa6aaa9
Move more nodes to the optimizing code generator.
...
Review URL: http://codereview.chromium.org//8678033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1829 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-24 01:14:15 +00:00
iposva@google.com
d2069f9ff2
- Remove the redundant dart_bin executable.
...
Review URL: http://codereview.chromium.org//8682031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1828 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-24 01:03:21 +00:00
regis@google.com
5382e56f05
Optimize type checks of list and map literals.
...
Introduce an ast node for explicit 'assignable to' type checks.
Remove Instance::Is() helper.
Review URL: http://codereview.chromium.org//8678031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1827 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-24 00:26:18 +00:00
hausner@google.com
45fff0023d
Undo some of the initializing formal change 1755
...
I didn't undo those initializing formas that are initializing a private field.
Review URL: http://codereview.chromium.org//8677027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1824 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 23:44:14 +00:00
turnidge@google.com
901f5d693c
Print the failing command if we run into trouble while creating snapshot.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1823 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 23:41:35 +00:00
hausner@google.com
ac4b099912
Fix even more builds
...
My code is apparently breaking everywhere except on the Mac...
Review URL: http://codereview.chromium.org//8680031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1822 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 22:39:22 +00:00
hausner@google.com
0b3cc43b89
Fix Windows build
...
Write once, fix everywhere...
Review URL: http://codereview.chromium.org//8680029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1820 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 22:34:14 +00:00
hausner@google.com
0ef3609ec0
Allow optional initializing formals again
...
After removing optional initializing formal parameters from the VM
yesterday, the language team decided that they should be allowed
and made usable.
- The name of an optional initializing formal is the name of
the field it initializes.
- The parameter is only visible at the call site of the constructor,
to name the parameter.
- The parameter is NOT visible in the constructor's initializer list
and body.
class A {
A([this.x = 10]);
A.bad([this.x = 10]) : y = x; // Error: parameter x not in scope
A.ok([this.x = 10]) { print(x); } // Refers to field x, not parameter x.
var x, y;
}
o = new A(x: 50); // o.x == 50.
o = new A(); // o.x == 10.
Review URL: http://codereview.chromium.org//8682025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1819 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 22:31:09 +00:00
srdjan@google.com
88878148ac
Fix crashes when going to natives. Throw an exception instead.
...
Review URL: http://codereview.chromium.org//8678025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1817 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 22:03:51 +00:00
regis@google.com
6191ea8088
Fix build breakage.
...
Check type of list and map literals in checked mode only, and with an
"assignable to" test rather than a "instance of" test.
Review URL: http://codereview.chromium.org//8677019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1814 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 20:14:27 +00:00
srdjan@google.com
1d21a8fa7d
Do not type checks at returns of implicit getter.
...
Review URL: http://codereview.chromium.org//8678020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1813 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 20:09:11 +00:00
srdjan@google.com
4c267997cd
Fix bug 557: Disallow user side allocation of ImmutableArray. Also added "instantiation-checks" for some other VM-internal classes.
...
Review URL: http://codereview.chromium.org//8648003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1811 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 19:48:25 +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
ager@google.com
fed5e6d99c
Add truncate operation to File API.
...
R=whesse@google.com
BUG=264
TEST=
Review URL: http://codereview.chromium.org//8679005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1800 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 15:42:20 +00:00
sgjesse@google.com
d7c8c1f1e4
Fix a number of issues with the process handling
...
1. Ignore the signal SIGPIPE on Linux and Mac OS
When reading from or writing to a closed pipe the signal SIGPIPE
is raised. The default handling of this is to terminate the
program. When signal SIGPIPE is ignored the read and write
returns EPIPE.
2. Wrong return type for stdio getter
3. When there is an error on a socket mark it as closed
4. Mark the pipe used for process exit status as a one way pipe
5. Add tests to test stdin, stdout and stderr in Dart scripts
R=ager@google.com
BUG=dart:536, dart:454
TEST=
Review URL: http://codereview.chromium.org//8662006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1793 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 14:49:18 +00:00
ager@google.com
5d7ee32c6e
Update test scripts to deal with current VM behavior on optional constructor arguments.
...
Find binaries in tests based on the platform we are running on.
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8662004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1779 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 10:22:48 +00:00
whesse@google.com
a24a40da90
Fix excess memory usage problem in StringInputStream.
...
BUG=dart:555
TEST=
Review URL: http://codereview.chromium.org//8639004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1777 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 09:10:38 +00:00
srdjan@google.com
b7612781f5
Fix crash reported by Florian.
...
Review URL: http://codereview.chromium.org//8665008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1774 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:37:18 +00:00
srdjan@google.com
230a6d1392
Factor out code part for instanceof, and hardwire "is bool" check.
...
Review URL: http://codereview.chromium.org//8592008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1770 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 00:36:36 +00:00
regis@google.com
a2bb53c7af
Implement type checking of map literals (issue 221).
...
Support proper syntax for map literals (at most one type argument is allowed)
and give a warning when legacy syntax is used.
Add tests.
Fix tests.
Review URL: http://codereview.chromium.org//8637018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1764 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 21:42:07 +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
turnidge@google.com
beebe26bf8
Reorder the functions in dart_api_impl.cc to match dart_api.h.
...
Review URL: http://codereview.chromium.org//8636021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1759 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:42:38 +00:00
hausner@google.com
b9cf297c15
Initializing formals can't be optional parameters
...
Add new error message to VM compiler.
Remove all optional initializing formals from library
and tests.
Review URL: http://codereview.chromium.org//8619008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1755 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 19:09:54 +00:00
whesse@google.com
f40da67d2b
Add Directory.createTemp() to asynchronously create a temporary directory.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8588029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1741 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 13:06:39 +00:00
ager@google.com
53ab9b1cfb
Undo change to generate_projects file used by Golem.
...
Golem really should be updated to use gclient instead but
doing this to get the builder going again.
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8633009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1736 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 11:34:23 +00:00
ager@google.com
53de4bd129
Use relative path to cygwin on Windows for the runtime
...
build.
The DEPTH variable is apparently not stable across a
full checkout or a checkout with only the runtime.
Review URL: http://codereview.chromium.org//8636006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1730 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 08:34:16 +00:00
asiva@google.com
245a288c29
Check for presence of native resolver in library for classes which have native fields only in regular run mode not while generating snapshots.
...
While generating snapshots the native resolver is not set and would trigger this error.
Review URL: http://codereview.chromium.org//8618011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1728 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 01:22:07 +00:00
asiva@google.com
caa37a2581
Fix issue-545 IsObjectStoreTypeId was not updated correctly after new types (StringInterface and ListInterface) were added.
...
Review URL: http://codereview.chromium.org//8623003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1723 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 23:16:32 +00:00
asiva@google.com
ce606eda7b
Library prefix should be an identifier
...
(we don't yet check that it is not a reserved keyword, that can be done only
after we are able to store the keyword table as a singleton in the vm isolate)
Review URL: http://codereview.chromium.org//8500006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1720 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 22:17:41 +00:00
asiva@google.com
4aacd28754
Make the implicit constructor private for zone, handlescope and nohandlescope classes.
...
Review URL: http://codereview.chromium.org//8562008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1718 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 21:07:40 +00:00
asiva@google.com
777bbbf277
Fix signature for external string API methods.
...
Review URL: http://codereview.chromium.org//8527027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1716 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:47:32 +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
iposva@google.com
0727d9731a
- Remove bad define.
...
Review URL: http://codereview.chromium.org//8584007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1714 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:28:49 +00:00
turnidge@google.com
a31b5a59f7
Start using UNWRAP_NONNULL to check inputs to dart api functions.
...
Improve a few error messages.
Lots of testing.
Review URL: http://codereview.chromium.org//8528018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1712 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 19:09:51 +00:00
regis@google.com
c0a9b76a67
Add missing argument to HANDLESCOPE().
...
Siva is investigating why this is only failing now and only on Win32.
Review URL: http://codereview.chromium.org//8547013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1711 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 17:47:49 +00:00
regis@google.com
314a89e16c
Update comments in core lib showing proper factory syntax.
...
Improve error messages reported from class finalizer.
Fix parser error reporting to be thread safe.
Reformat type error and failed assertion messages to be consistent.
Add one more new factory syntax test.
Review URL: http://codereview.chromium.org//8549033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1708 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 17:06:52 +00:00
ager@google.com
8b047a6544
Fix gclient runhooks on Windows for a full checkout.
...
The problem was incorrect setting of and use of the DEPTH gyp
variable.
R=whesse@google.com
BUG=496
TEST=
Review URL: http://codereview.chromium.org//8472007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1706 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 15:47:21 +00:00
ager@google.com
8580aca8f1
Actually add the VM test configuration file.
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8461014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1704 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 15:45:42 +00:00
iposva@google.com
deb49138ef
- Build libdart as a static library. First step towards
...
removing dart_bin.
Review URL: http://codereview.chromium.org//8610004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1692 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 05:56:00 +00:00
cshapiro@google.com
1cff31c3d0
Implement external strings.
...
External strings refer to character data in memory located outside of
the managed heap. This memory is considered to be owned by the
embedding application. To help with the management of external
memory, the virtual machine allows the embedding application to
register for a "death notice" when an external string object is
garbage collected. A death notice takes the form of a callback
invoked by the garbage collector with the address of the external
memory. Death notices will be implemented in the garbage collector by
future commit.
Review URL: http://codereview.chromium.org//8383029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1679 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-19 00:33:23 +00:00
srdjan@google.com
abbe12ab38
Print uninstantiated type with --trace_type_checks for instanceof (easier to identify what caused calls to runtime).
...
Review URL: http://codereview.chromium.org//8598023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1676 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 22:49:52 +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
asiva@google.com
0ce8298541
Refactor the library tag handler to share code between standalone dart and the snapshot generator.
...
Review URL: http://codereview.chromium.org//8549009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1665 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 18:24:04 +00:00
hausner@google.com
8a6a9e645d
Better error handling when scanning library tags
...
Fixes Issue 516
http://code.google.com/p/dart/issues/detail?id=516
#!/dart_bin
##library("foo");
void main() {
print("goodbye");
}
Errors encountered while loading script: '/private/tmp/t.dart': Error: line 2 pos 2: Unrecognized library tag
##library("foo");
^
Review URL: http://codereview.chromium.org//8586052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1664 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 17:50:32 +00:00
regis@google.com
a5dc8b60d1
Fix code generation issue with new factory syntax.
...
Convert VM core library to new factory syntax.
Review URL: http://codereview.chromium.org//8602004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1662 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 17:47:12 +00:00
ager@google.com
eb2ed9e25f
Implement delete on File objects.
...
R=whesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8598011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1652 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 12:27:56 +00:00
asiva@google.com
5e6441a5cd
Change loaded_ flag in RawLibrary to load_state_ in order to register different
...
states of the load process.
This state can then be used to ensure we report errors on duplicate loads.
Review URL: http://codereview.chromium.org//8520030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1643 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 00:09:13 +00:00