Commit Graph

13143 Commits

Author SHA1 Message Date
hausner@google.com 09b97fefd4 Address Ivan's review comments.
Review URL: https://chromiumcodereview.appspot.com//9696048

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5438 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 21:07:42 +00:00
hausner@google.com cd6e29a898 Deoptimize functions before setting breakpoints
Does not yet handle cases where the functions have active frames
on the stack.
Review URL: https://chromiumcodereview.appspot.com//9696020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5436 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 20:37:49 +00:00
turnidge@google.com 4547323b63 Fix unused vars warning.
Review URL: https://chromiumcodereview.appspot.com//9692061

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5435 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 20:36:56 +00:00
turnidge@google.com 3d363b570f Add Dart_Invoke, which will replace Dart_InvokeDynamic and Dart_InvokeStatic.
Fixed Dart_SetField to allow us to set a field to null.
Review URL: https://chromiumcodereview.appspot.com//9608024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5433 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 19:49:48 +00:00
srdjan@google.com 41f23549c3 Fix another unused variable issue. Tested and built on Linux.
Review URL: https://chromiumcodereview.appspot.com//9689070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5424 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 18:17:11 +00:00
srdjan@google.com 01b27d8f6f Fix build.
Review URL: https://chromiumcodereview.appspot.com//9689068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5421 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 17:51:02 +00:00
srdjan@google.com aca2d7ffe0 Optional arguments in new compiler.
Includes Issue 9664062: Support allocating and calling closures in the new non-optimizing compiler (with fixes)
Review URL: https://chromiumcodereview.appspot.com//9693020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5419 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 17:35:05 +00:00
regis@google.com d74c2008be Fix type check to perform a subtype test at top level instead of an
assignability test. This only makes a difference when assigning an instance of
a function type.
Fix a bad language test.
Disable a bad co19 test (issue 99 filed).
Change error message for dynamic type error.
Review URL: https://chromiumcodereview.appspot.com//9664029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5413 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-13 16:16:12 +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 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 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
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
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
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
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
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
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
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 67b02b441d - Proper URI resolution when loading scripts from the standalone binary.
Review URL: https://chromiumcodereview.appspot.com//9614006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5135 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 22:57:57 +00:00
turnidge@google.com 5a23b7814b Remove unused variable in my last CL.
Review URL: https://chromiumcodereview.appspot.com//9624020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5126 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:28:14 +00:00
turnidge@google.com d70bc0e65f Adds new apis Dart_GetField/Dart_SetField.
These are intended to replace Dart_{Get,Set}{Static,Instance}Field.

---

Mess with Library::PrivateName.

Add field/function lookup to Library.
Review URL: https://chromiumcodereview.appspot.com//9616044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5124 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:15:58 +00:00
srdjan@google.com 25b3c2feeb Implement '==', '!=' and instanceof (without code generation).
Review URL: https://chromiumcodereview.appspot.com//9615025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5123 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 21:12:29 +00:00
cshapiro@google.com 0b6ca9919c Implement a garbage collection prologue and epilogue callback mechanism.
Review URL: https://chromiumcodereview.appspot.com//9605033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5112 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 19:38:51 +00:00
cshapiro@google.com 4aa45f32da Address two review comments from 9531001.
Review URL: https://chromiumcodereview.appspot.com//9546042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5111 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 19:29:32 +00:00
asiva@google.com e4d024664e Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots were we use GrowableArray first and then copy the contents into an Array object.
Next step is to use this type in growable_array.dart
Review URL: https://chromiumcodereview.appspot.com//9594028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5109 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 19:14:02 +00:00
floitsch@google.com cacd793d1a Handle Bigint.toCString when remainder equals 0.
Review URL: https://chromiumcodereview.appspot.com//9620002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5081 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 12:51:45 +00:00
kmillikin@google.com 01695137f8 Turn CopyTemp and SetTemp into instructions.
These were always used and assumed to be in a stylized form (CopyTemp in
Bind and SetTemp in Do).  Make this required by the IL.  This change allows
eliminating the relative indexing in favor of temporary names, without
restructuring the compiler at all.

R=srdjan@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5072 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 10:24:01 +00:00
floitsch@google.com 2d94a8c288 Make pow call unambiguous.
Review URL: https://chromiumcodereview.appspot.com//9600078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5069 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-07 09:39:22 +00:00