Commit Graph

79322 Commits

Author SHA1 Message Date
jimhug@google.com 927d3a6ec5 adds array bounds checking
also adds a --unchecked flag to optionally disable this bounds checking so that we can monitor the performance impact - currently the impact seems to be from zero to about 4x slower depending on the specific benchmark

Review URL: https://chromiumcodereview.appspot.com//9129023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3555 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 15:54:58 +00:00
ager@google.com c46939aa66 Comment and white-space cleanup in IO libraries.
- use dart doc comment for interface comments.
- use '//' style comments for non-doc comments.
- remove some whitespace.

R=whesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9285017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3554 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 15:39:58 +00:00
ager@google.com e6994683ad Another round of minor fixes in the IO libraries.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9129020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3546 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 13:33:23 +00:00
ahe@google.com 38147a1c16 Diagnose unterminated "grouping" characters.
Review URL: https://chromiumcodereview.appspot.com//9129015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3545 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 13:33:12 +00:00
ngeoffray@google.com 49938db26e Implement field parameter for generative constructors.
Review URL: https://chromiumcodereview.appspot.com//9283014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3543 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 12:46:37 +00:00
ager@google.com b1c88f1d23 Fix a couple of minor issues in IO libraries.
- Wrong type in createTempHandler callback.
- Missing implementation of errorHandler setter on StringInputStreams.

R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9117029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3541 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 12:30:12 +00:00
ngeoffray@google.com 6ab71e4c6d Add the arity to calls, and support noSuchMethodException.
Review URL: https://chromiumcodereview.appspot.com//9193016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3540 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 12:12:08 +00:00
ager@google.com 0f9fdc51d3 Add extra debug information when failing to deliver an interrupt message.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9212041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3539 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 09:52:53 +00:00
ager@google.com 4efd1f98fa Split dart:builtin into dart:builtin and dart:io.
- dart:builtin is implicitly imported.
- dart:io has to be explicitly imported.

I will update the macos and windows stable test binaries when we
are happy with the solution.

R=iposva@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9254026

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3537 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 07:36:59 +00:00
sra@google.com 82aa19a9e4 Frog dart:dom using interfaces and native implementation classes.
This is a step towards using one set of interfaces for all versions of dart:dom.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9233028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3533 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 02:55:48 +00:00
nweiz@google.com 406d186685 Fix a type declaration for makeElList.
TBR

Review URL: https://chromiumcodereview.appspot.com//9284006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3531 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 02:06:31 +00:00
nweiz@google.com 2cbfd0ffe8 Make ElementList return ElementLists.
TBR

Review URL: https://chromiumcodereview.appspot.com//9270054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3529 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 00:23:10 +00:00
sra@google.com 89aeae95d5 Refresh WebKit.
Parse 'any[]' and convert to Dart 'List'.
Typed array 'set' method is 'setElements' in Dart.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9117013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3528 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-24 00:18:45 +00:00
efortuna@google.com 5a5677b37c Missed file in previous checkin.
TBR=sigmund@google.com
Review URL: https://chromiumcodereview.appspot.com//9160013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3523 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 23:39:04 +00:00
efortuna@google.com c8e620d663 Fix frogsh + Windows + test.dart take 2
Review URL: https://chromiumcodereview.appspot.com//9117010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3522 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 23:34:13 +00:00
nweiz@google.com 3f854d42d8 Don't use _toList on FrozenElementList.
TBR

Review URL: https://chromiumcodereview.appspot.com//9283003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3518 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 22:27:28 +00:00
scheglov@google.com 43de601434 Fix build for BadNamedParametersTest
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3517 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 22:08:06 +00:00
mmendez@google.com 64085a0adf Remove RTT.derivedTypes and all generated initializations thereof.
This code is not currently used by the RTT system and was actually incomplete.  If we need it for mirrors at some future point, then we can add it back.

Review URL: https://chromiumcodereview.appspot.com//9117008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3516 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 22:00:12 +00:00
rnystrom@google.com 420b355357 Include subtype information in generated docs.
With this change, dartdoc does a more comprehensive job of letting users
navigate the web of types. For each class, this will show its chain of
superclasses, interfaces it implements, and its immediate subclasses.

For interfaces, it shows superinterfaces, subinterfaces, implementing classes,
and a default class if it has one.

Review URL: https://chromiumcodereview.appspot.com//9271020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3515 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 21:51:53 +00:00
scheglov@google.com c0a3f43ce6 Issue 932. Checks for various named arguments cases.
http://code.google.com/p/dart/issues/detail?id=932

1. Clean up List<? extends Type>;

2. Generate compile time warnings/errors.

3. Generate run time errors.

4. Fix corresponding tests according to spec.

R=zundel@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9270016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3511 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 20:01:31 +00:00
sigmund@google.com 036f2cdbd3 Revert "Make changes to test.dart and frogsh for Windows."
Review URL: https://chromiumcodereview.appspot.com//9193021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3510 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 19:59:06 +00:00
regis@google.com ed9d7a399f Optimize parsing of qualified identifiers.
Review URL: https://chromiumcodereview.appspot.com//9271023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3509 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 19:56:35 +00:00
nweiz@google.com 984852f222 Make NodeList methods return NodeLists rather than List<Node>.
Review URL: https://chromiumcodereview.appspot.com//9271019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3508 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 19:32:22 +00:00
efortuna@google.com 9bd7f7722f Make changes to test.dart and frogsh for Windows.
This should enable frogsh to build correctly and function properly on Windows. 
test.dart is waiting on a fix in the VM before it will be fully ready.
Review URL: https://chromiumcodereview.appspot.com//9233015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3506 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 19:09:32 +00:00
jimhug@google.com 85e0542126 fix break in r3504
Review URL: https://chromiumcodereview.appspot.com//9222015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3505 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 18:44:00 +00:00
jimhug@google.com 6f9aa02d6e Lots of frog cleanup
Review URL: https://chromiumcodereview.appspot.com//9270048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3504 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 18:17:50 +00:00
whesse@google.com f4ab2c43f8 Enable test.dart on Mac OS test runners for VM component.
BUG=
TEST=tools/test.dart

Review URL: https://chromiumcodereview.appspot.com//9222011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3502 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 15:40:16 +00:00
ager@google.com 0e53275c79 Save and restore errno in signal handler.
Having a signal handler that clobbers errno can lead to spurious
behavior in other code that relies on errno. One example of this
is pthread_cond_wait.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9193014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3499 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 15:07:09 +00:00
ngeoffray@google.com 3976d083be Forgot status change in last commit.
Review URL: https://chromiumcodereview.appspot.com//9222007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3492 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 13:40:28 +00:00
whesse@google.com c12acd8826 Generate stub-generator tests in the build directory, and do not commit them to repository.
BUG=dart:260
TEST=stub-generator/MintMakerFullyIsolatedTest

Review URL: https://chromiumcodereview.appspot.com//9195017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3491 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 13:38:41 +00:00
whesse@google.com b02ed08af1 Add script attribute to Options class, providing the name of the running script.
BUG=dart:409
TEST=standalone/OptionsTest

Review URL: https://chromiumcodereview.appspot.com//9159013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3485 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 12:15:26 +00:00
sgjesse@google.com 76a9abf164 Fix Mac OS build
TBR=ager@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9270039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3484 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 09:53:28 +00:00
sgjesse@google.com c1d041500f Use hash map for event handler file descriptor map
Instead of using an array indexed using the file descriptor for
looking up data associated with a socket (SocketData objects) this is
now stored in a hash map using the file descriptor as key.

Added hash map implementation like the one used in the V8 project.

R=ager@google.com, whesse@google.com

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9186035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3483 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-23 09:10:51 +00:00
vsm@google.com 331a3ad401 New dart.js bootstrap script for apps
The primary new add is the dart.js script.  All sample html files now point to it, and were tested with Dartium, Chrome, and FireFox.

I've checked in compiled JS so the samples 'just work'.  They were compiled via frog:

frog/minfrog --compile-only --out=client/samples/sunflower/Sunflower.dart.js client/samples/sunflower/Sunflower.dart

If you guys prefer, I can take these out.

Review URL: https://chromiumcodereview.appspot.com//9226025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3480 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-22 23:34:35 +00:00
vsm@google.com 5a2b88e6dc Revert "Handle defered handling of exceptions (where the exception is thrown before the"
This reverts commit 3477 to fix the build.

TBR=dcarlson

Review URL: https://chromiumcodereview.appspot.com//9272005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3479 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-22 05:00:40 +00:00
efortuna@google.com f3a51018d0 Update browser testing readme.
TBR=sigmund@google.com,
Review URL: https://chromiumcodereview.appspot.com//9272003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3478 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-22 01:05:25 +00:00
dcarlson@google.com 35e119bb8e Handle defered handling of exceptions (where the exception is thrown before the
handler is registered). Also, don't throw the exception on calls to then(),
to avoid enforcing an ordering to the then() and handleException() calls.

BUG=1115
TEST=

Review URL: https://chromiumcodereview.appspot.com//9155017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3477 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-21 18:39:37 +00:00
jimhug@google.com 42c584b7c4 Revert "Example showing alternate async measurement solution"
This reverts r3473 which was causing several buildbots to go red due to
breaks in swarm tests.

The issue appears to be minor - but the buildbots have been red for too long.

Review URL: https://chromiumcodereview.appspot.com//9145004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3474 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-21 13:53:40 +00:00
jacobr@google.com c463460ff5 Example showing alternate async measurement solution
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9148015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3473 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-21 03:01:15 +00:00
hausner@google.com 595cb76374 Implement deletion of breakpoints
- deletion of breakpoints
- better cleanup of debugger resources
Review URL: https://chromiumcodereview.appspot.com//9271008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3470 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 22:10:59 +00:00
nweiz@google.com 1d99d1b265 Fix the dartc tests, which were broken by r3464.
TBR

Review URL: https://chromiumcodereview.appspot.com//9226028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3467 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 21:36:56 +00:00
sra@google.com 9c03c69434 Explicit getters and setters will allow for custom implementations and are needed for interfaces to be added.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9221006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3465 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 21:15:39 +00:00
nweiz@google.com 54277fd459 Fix up and test FrozenElementList.
TBR

Review URL: https://chromiumcodereview.appspot.com//9270022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3464 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 21:07:41 +00:00
zundel@google.com 4e9e3f014f More setting of symbols on identifiers
Konstantin was right in http://codereview.chromium.org/9150044/
I should have included a unit test.  This change includes a
hand written unit test for identifiers being set properly on class/interface
definition variants, and fixes to the ResolverAuditVisitor (it was not
catching many problems in just those cases).

Review URL: https://chromiumcodereview.appspot.com//9138023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3459 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 18:19:49 +00:00
codefu@google.com 40edd9ce12 Issue 1233: Parser does not handle position stack correctly in string interpolation
https://code.google.com/p/dart/issues/detail?id=1233
Missing done()
R=messick@google.com
BUG=1233
TEST=

Review URL: https://chromiumcodereview.appspot.com//9254044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3456 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 14:55:45 +00:00
karlklose@google.com 31b864a012 Implement named constructors and resolving of redirecting constructors and super-initializers.
Review URL: https://chromiumcodereview.appspot.com//9243011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3455 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 14:19:46 +00:00
podivilov@google.com 06369ff05a Several fixes needed to reuse JS DOM interfaces in dartium.
- make generator output dir configurable
- templates dir should be relative to dartdomgenerator.py rather then current directory
- "operator" is keyword and could not be an attribute name

R=sra@google.com,vsm@google.com

Review URL: https://chromiumcodereview.appspot.com//9231021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3454 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 11:14:58 +00:00
asiva@google.com bf1b2bbeb9 Improve compile times for swarm application startup
- Avoid creation of getter/setter symbol when all we need to do is a lookup
- Add LookupGetterFunction/LookupSetterFunction to avoid having to create the getter name/setter name before doing a lookup
Review URL: https://chromiumcodereview.appspot.com//9265021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3453 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 00:55:39 +00:00
cshapiro@google.com 234bd5d62d Accommodate git repositories when re-rooting the cpplint invocation.
Review URL: https://chromiumcodereview.appspot.com//9213019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3451 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-20 00:08:49 +00:00
zundel@google.com c9e4011585 Record the elements on identifiers in the AST referring to types.
When dartc resolved a type, in the past it did not set the elements for the type
on the AST ( you had to go through the type).  This is a bit tedious in the IDE,
so we are going to try to fill in more of the symbols in the AST.

Review URL: https://chromiumcodereview.appspot.com//9150044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3449 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-19 21:50:14 +00:00