sgjesse@google.com
84836f8c56
Error reporting on File in dart:io
...
This implements consistent error reporting on all methods on File in dart:io. The async onError method is called with an exception argument which is the same exception as would have been thrown from the corresponding sync method.
The one method on Directory which already did this has been updated as well.
R=ager@google.com
BUG=none
TEST=tests/standalone/src/io/FileTest.dart, tests/standalone/src/io/FileInvalidArgumentsTest.dart
Review URL: https://chromiumcodereview.appspot.com//9630012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5396 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 13:00:47 +00:00
kmillikin@google.com
b05d117185
Support allocating and calling closures in the new non-optimizing compiler.
...
As part of this change, variable allocation is split out from the backend
code generator.
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9664062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5392 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 12:31:45 +00:00
iposva@google.com
a6dd90f000
- Make RawICData a subclass of RawObject and not RawInstance.
...
Review URL: https://chromiumcodereview.appspot.com//9691024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5379 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 01:26:39 +00:00
iposva@google.com
9e93428d9e
- Allow string interpolation in constant strings.
...
- Add test for constant adjacent strings with and without interpolation.
- Update status files.
Review URL: https://chromiumcodereview.appspot.com//9694024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5377 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 00:59:17 +00:00
turnidge@google.com
4b56c3d773
Disable flaky test. Bug filed.
...
Review URL: https://chromiumcodereview.appspot.com//9692029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5376 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 00:54:16 +00:00
turnidge@google.com
abaf2b35c3
Remove unused variable.
...
Review URL: https://chromiumcodereview.appspot.com//9691020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5371 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 23:59:53 +00:00
turnidge@google.com
ff26341fd6
Heartbeat implementation of dart:mirrors.
...
Add the skeleton for the dart:mirrors library in all the appropriate
places. The only thing we can do right now is ask an Isolate for its
debugName. Add a few tests.
Review URL: https://chromiumcodereview.appspot.com//9420038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5370 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 23:51:03 +00:00
turnidge@google.com
62b835b822
Tiny fix in Dart_CreateIsolate to allow errors to print correctly.
...
Review URL: https://chromiumcodereview.appspot.com//9689023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5369 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 22:56:24 +00:00
sigmund@google.com
2b5952ac6c
SendPort + ReceivePort changes:
...
- document what are valid messages in SendPort.send
- change SendPort.call to return a future of the reply
- remove ReceivePort.singleShot
Review URL: https://chromiumcodereview.appspot.com//9652001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5368 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 22:52:36 +00:00
srdjan@google.com
eddf1bcee9
Fox issue 2108: throw illegal argument exception for RegExp natives. Continue throwin NPE where expected.
...
Review URL: https://chromiumcodereview.appspot.com//9669054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5343 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 19:00:54 +00:00
iposva@google.com
993cd03e41
- Fix build by rolling back r5324, r5325.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5333 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 16:31:12 +00:00
srdjan@google.com
8d524a5a23
Implement factory call.
...
Review URL: https://chromiumcodereview.appspot.com//9664023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5331 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 16:22:50 +00:00
srdjan@google.com
295d7260b1
Generate code for instance of: copy from CodeGenerator. More code needed for the instantiator "thing"
...
Review URL: https://chromiumcodereview.appspot.com//9665029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5329 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 16:12:04 +00:00
iposva@google.com
8ca5ba4d15
- Fix use of String operator + in corelib and standalone libraries.
...
Review URL: https://chromiumcodereview.appspot.com//9690003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5325 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 15:26:55 +00:00
hausner@google.com
8021d5ce2b
Fix linux build.
...
I knew this would happen ;)
Review URL: https://chromiumcodereview.appspot.com//9667019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5275 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 00:48:35 +00:00
hausner@google.com
de3cf9e2bd
Teach debugger to ignore breakpoints
...
Reentrant debugger calls to fetch values may execute dart code as a
side effect. Teach the debugger to ignore any breakpoints it might
hit while doing so.
Review URL: https://chromiumcodereview.appspot.com//9668036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5274 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 00:43:08 +00:00
iposva@google.com
a19795688b
- Support "no_" as well as "no-" prefix on boolean flags.
...
Review URL: https://chromiumcodereview.appspot.com//9669016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5270 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-10 00:12:55 +00:00
iposva@google.com
8e5b5a02e2
Fix issue 1950:
...
- enable-checked-mode forces --enable_type_checks and --enable_asserts.
Review URL: https://chromiumcodereview.appspot.com//9668034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5269 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 23:21:09 +00:00
srdjan@google.com
34b338e1d2
Fix linux build, wliminate unused variable.
...
Review URL: https://chromiumcodereview.appspot.com//9666027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5267 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 23:18:09 +00:00
iposva@google.com
4a71dc9de3
- Fix trailing white space.
...
Review URL: https://chromiumcodereview.appspot.com//9668033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5266 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 23:12:03 +00:00
srdjan@google.com
be77f7a015
Implementing ConstructorCall: part I.
...
Review URL: https://chromiumcodereview.appspot.com//9646008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5264 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 22:40:37 +00:00
srdjan@google.com
c333da7111
Implement logical AND/OR.
...
Review URL: https://chromiumcodereview.appspot.com//9649012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5253 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:34:58 +00:00
regis@google.com
33bd965e2a
Generate a dynamic type error when creating an instance with a bound error.
...
Review URL: https://chromiumcodereview.appspot.com//9665013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5250 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 21:15:11 +00:00
regis@google.com
e05a6a04ba
Fix type checks that wrongly ignored malformed types.
...
Fix corresponding test.
Fix comment in gypi file.
Fix undeclared type in stream_util.dart.
Review URL: https://chromiumcodereview.appspot.com//9649010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5243 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 18:14:02 +00:00
iposva@google.com
92cddd5ba8
- The dart:io library uses Uri from dart:uri.
...
- Fix the library tag handler to proper import libraries
when generating snapshots.
Review URL: https://chromiumcodereview.appspot.com//9655015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5238 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 16:45:57 +00:00
whesse@google.com
3c6d3843fc
Add native extensions for the Dart shell to the Windows platform and the Mac OS X platform.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9465004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5235 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 14:34:57 +00:00
sgjesse@google.com
4f1ac7c8c6
Prevent creation of additional FileMode and Encoding objects
...
R=ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9662002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5234 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 14:02:58 +00:00
sgjesse@google.com
4491ea144d
Add writeString method to OutputStream
...
All output streams now supports writeString which takes the encoding
to be used when transforming the string into a sequence of bytes.
This change also introduces an Encoding interface and Encodings class
as a repository for the supported encodings. Currently this is only
UTF-8, ISO-8859-1 and ASCII. All methods in dart:io which previously
used a String to represent the encoding now uses objects implementing
Encoding.
In this change dart:io is still using the internal UTF-8 encoder used
by the HTTP implementation. I will look into using the one in dart:utf
in a separate change.
R=ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9653026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5231 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 13:49:20 +00:00
kmillikin@google.com
147527a2d0
Implement increment of locals.
...
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9634009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5228 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 11:41:22 +00:00
kmillikin@google.com
33d36027b1
Implement compilation of conditional expressions.
...
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9639010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5227 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 11:22:33 +00:00
kmillikin@google.com
0a08aa5c22
Support compilation of ArrayNode.
...
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9635016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5223 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:39:29 +00:00
kmillikin@google.com
ecee314841
Support compilation of for loops.
...
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9635014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5219 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-09 09:02:20 +00:00
asiva@google.com
ec89c1a13d
Fix from() to point to the correct value in RawGrowableObjectArray.
...
Review URL: https://chromiumcodereview.appspot.com//9652015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5203 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 23:52:26 +00:00
iposva@google.com
6225763fad
- Fix Windows build: use the global name for the API entry.
...
Review URL: https://chromiumcodereview.appspot.com//9648015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5201 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 23:38:29 +00:00
iposva@google.com
85a9a64cdf
- Move finalization until after the classes in dart:builtin have been loaded.
...
Review URL: https://chromiumcodereview.appspot.com//9652016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5199 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 23:29:45 +00:00
turnidge@google.com
99edc5e69c
Spot fix for linux-only source file. Cross fingers.
...
Review URL: https://chromiumcodereview.appspot.com//9651010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5198 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 23:10:24 +00:00
turnidge@google.com
48de07fb60
Start using Dart_PropagateError in the runtime/bin directory.
...
Review URL: https://chromiumcodereview.appspot.com//9657001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5197 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 23:06:44 +00:00
iposva@google.com
8e5891cb96
- Fix the dart_no_snapshot binary.
...
Review URL: https://chromiumcodereview.appspot.com//9639018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5195 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 22:25:29 +00:00
asiva@google.com
588aaf6530
Use GrowableObjectArray in ic-data.
...
Review URL: https://chromiumcodereview.appspot.com//9630003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5189 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 19:23:24 +00:00
turnidge@google.com
c143d26700
Start using Dart_SetField and Dart_GetField in the vm.
...
Review URL: https://chromiumcodereview.appspot.com//9642003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5185 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 18:36:56 +00:00
srdjan@google.com
15d1961630
Implement strict comparison and native calls in flow graph compiler x64.
...
Review URL: https://chromiumcodereview.appspot.com//9624025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5179 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 17:15:35 +00:00
dgrove@google.com
98302c85df
Unify most of our utf8 implementations. This takes the implementation
...
from utils/string_encoding and moves it to utils/utf . utils/utf8
goes away.
Review URL: https://chromiumcodereview.appspot.com//9462001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5169 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 13:28:40 +00:00
kmillikin@google.com
0aa83907a7
Handle instance field and indexed increment operations.
...
Handle pre- and post-increment (decrement) in effect and non-effect
contexts.
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9622002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5160 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 11:06:02 +00:00
kmillikin@google.com
1c06eed2b6
Implement branching control flow in the non-optimizing graph compiler.
...
Bind a label on block entry, implement branching.
R=srdjan@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9623005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5159 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 10:00:26 +00:00
sgjesse@google.com
300f3fe802
Add support for using an URL for establishing HTTP connections
...
As the URI library is now part of the standalone VM it makes sense to
have the option of using a URL for opening a HTTP connection
R=ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9625008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5153 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 08:44:59 +00:00
asiva@google.com
d595dc2fae
Use GrowableObjectArray in the debugger instance/static field lists.
...
Review URL: https://chromiumcodereview.appspot.com//9634002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5148 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 01:24:34 +00:00
iposva@google.com
988862e0ef
- Pass Dart_Null() instead of an empty array for unused import maps.
...
Review URL: https://chromiumcodereview.appspot.com//9630004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5145 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 00:53:56 +00:00
iposva@google.com
69eafdd3cf
- Win: Disable logging output during script URI resolution.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5143 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 00:19:39 +00:00
floitsch@google.com
950400d7a0
Fix bit-or and bit-xor for two negative bigints.
...
Fixes issue 2049.
Review URL: https://chromiumcodereview.appspot.com//9625027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5142 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 00:09:54 +00:00
iposva@google.com
8c3715be59
- Win: Remove leading / from file path.
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5141 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-08 00:08:21 +00:00