Commit graph

4819 commits

Author SHA1 Message Date
iposva@google.com 6a5ef0e692 - Add an isolate field to visitors.
Review URL: https://chromiumcodereview.appspot.com//10502004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8337 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:47:17 +00:00
vegorov@google.com a4711ef435 Eliminate RawObject::class_ field entirely.
Removed initializations of class_ field done in runtime and generated code on ia32/x64.

Changed forwarding address encoding used by scavenger: kFreeBit is now used to distinguish evacuated objects from not evacuated because scavenger will never encounter real FreeListElement.

Changed FreeListElement layout to match RawObject layout.

R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8336 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:22:52 +00:00
kasperl@google.com ec13d6a97c Mark benchmark smoke test as failing on IE.
TBR

R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8335 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:22:19 +00:00
kasperl@google.com 9b510ecbf8 Adjust status files after r8332.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8334 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:05:54 +00:00
kasperl@google.com 783c440af8 Fix checked mode.
R=floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8333 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 13:48:22 +00:00
kasperl@google.com bdf0163e18 Simplify generated code for string interpolation by delaying the constant folding.
Try to fix http://dartbug.com/3389 and http://dartbug.com/3240 by
using getTypeNameOf to improve browser compatibility.

R=lrn@google.com,floitsch@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8332 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 13:31:52 +00:00
lrn@google.com 745cb6085f Implement constant switch as JS switch.
This introduces a block-structure for constant switches.
Non-constant switches still use the old if-else-if implementation.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8331 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 13:14:59 +00:00
ngeoffray@google.com 931f116dfe Missed these files in last commit.
Review URL: https://chromiumcodereview.appspot.com//10544030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8328 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 12:42:01 +00:00
ngeoffray@google.com ec794c987c Remove the 'element' field on a HParameterValue to use the 'sourceElement' of HInstruction. Also, we should keep a type guard when we want a type that is a supertype of the declared type (eg we want num, the declared type is int).
Review URL: https://chromiumcodereview.appspot.com//10533003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8326 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 12:29:15 +00:00
ngeoffray@google.com f758fe81ab Avoid creating new HThis at each closure access.
Review URL: https://chromiumcodereview.appspot.com//10544027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8325 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 12:18:01 +00:00
karlklose@google.com ded9562802 Add a TypeResolver to resolve type annotations.
Review URL: https://chromiumcodereview.appspot.com//10386088

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8324 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 11:42:29 +00:00
ngeoffray@google.com a915afc74f Pass in the expected number of arguments to a bailout method.
Review URL: https://chromiumcodereview.appspot.com//10502016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8323 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 11:20:44 +00:00
fschneider@google.com 84027c4457 Add flow graph printing into a .cfg file with flag --print-flow-graph-file.
This CL adds a flag --print-flow-graph-file which produces one
.cfg-file per isolate when enabled. Currently it prints the final
flow graph before code generation.

I also added SuccessorAt and SuccessorCount to allow easy iteration
over the successors of a basic block.
Review URL: https://chromiumcodereview.appspot.com//10446116

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8322 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 11:09:02 +00:00
ajohnsen@google.com 83bcc58918 Close stdin in Process.run.
This fixes an open pipe issue.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8321 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 10:46:30 +00:00
podivilov@google.com c7106faf0c Map operator [] directly to native implementation.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8319 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:37:24 +00:00
lrn@google.com a457781045 Make HBreak and HContinue not extend HGoto. They now extend HJump which is independent of HGoto. Too many errors have occured due to HGoto having sub-classes, so checking if something is HGoto isn't enough.
Review URL: https://chromiumcodereview.appspot.com//10511007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8318 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:27:44 +00:00
antonm@google.com a7af2bd048 Add a draft of traversing visitor which will analyse function.
For now all interesting methods are stubbed out.

R=ahe@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8317 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:26:25 +00:00
antonm@google.com d50b2bfb24 Refactor common logic of SsaBuilder.visitSend.
lib/compiler/implementation/dart_backend.dart

R=ahe@google.com,smok@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8316 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:19:47 +00:00
whesse@google.com dff5549f93 Eliminate standalone timeout_test, pass_test, and fail_test.
These are now built into standalone/io/test_runner_test.

BUG=dart:3216
TEST=tools/test.py standalone/io/test_runner_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8315 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:18:37 +00:00
antonm@google.com fe7c58b3a5 Properly parse [].
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8314 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 09:05:46 +00:00
ahe@google.com 649df0048f Support overriding fields with fields.
Review URL: https://chromiumcodereview.appspot.com//10511008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8312 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 06:57:08 +00:00
scheglov@google.com 7fcfa5151e Issue 3221. Use upper bound type of then/else expressions for conditional
http://code.google.com/p/dart/issues/detail?id=3221

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8311 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 03:41:22 +00:00
scheglov@google.com de64c0ce0f Issue 3224. Incorrect return type of negate operator should cause a static warning
http://code.google.com/p/dart/issues/detail?id=3224

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8310 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 23:33:57 +00:00
efortuna@google.com 4bd7052a8b Get performance tests running without frog in the SDK.
Review URL: https://chromiumcodereview.appspot.com//10510010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8309 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 22:38:54 +00:00
pquitslund@google.com ffbfc2ce17 RefinableTypesFinder bootstrap.
First cut at an AST visitor that collects refinable types (with a fix to the type analyzer to flag inferred type nodes).
Review URL: https://chromiumcodereview.appspot.com//10512012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8307 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 20:47:17 +00:00
scheglov@google.com b2b07392f8 Issue 3264. Use field type is formal initializer has to declared type
http://code.google.com/p/dart/issues/detail?id=3264

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8304 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 19:40:41 +00:00
jmesserly@google.com 3f81d4f899 Adds a callback to Future that is invoked upon completion, whether success or failure.
I'm not totally happy with the method name (in an ideal world, I'd like to call this
method then(), and have onSuccess and onFailure). But this should be backwards-compatible.

Review URL: https://chromiumcodereview.appspot.com//10517006
Patch from Sam McCall <sam.mccall@gmail.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8303 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 18:41:13 +00:00
zundel@google.com 3c93d993e7 Eliminate internal compiler error when invoking a function type alias by mistake
See http://code.google.com/p/dart/issues/detail?id=1393

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8302 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 18:40:46 +00:00
antonm@google.com 6848ef33b3 Suppress transferables_test for FF.
TBR=sra@google.com
BUG=3392

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8300 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 18:10:51 +00:00
antonm@google.com 95042b599d Add a test to check ArrayBuffer passing.
R=podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8295 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 17:15:56 +00:00
srdjan@google.com 0f9c3f91cc Move inlined type checking code to new compiler ia32. Sharing more and more code between ia32/x64 (ongoing process), refactored x64 code slightly.
Review URL: https://chromiumcodereview.appspot.com//10477020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8292 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 16:37:38 +00:00
scheglov@google.com 7b1a2ee020 Issue 3266. Produce a warning when trying to call an inaccessible method
http://code.google.com/p/dart/issues/detail?id=3266

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8291 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 16:11:51 +00:00
scheglov@google.com b5142cdb20 Issue 3268. Support for replacing 'assert' statement with 'assert' function
http://code.google.com/p/dart/issues/detail?id=3268

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8290 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 16:08:09 +00:00
scheglov@google.com 740b67a0d1 Issue 3271. Top-level function 'main' should not have parameters
http://code.google.com/p/dart/issues/detail?id=3271

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8289 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 16:00:37 +00:00
scheglov@google.com 9b54a763d4 Issue 3269. Warning when 'case' is not type compatible with 'switch' expression
http://code.google.com/p/dart/issues/detail?id=3269

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8288 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 15:55:46 +00:00
podivilov@google.com ace450aa8a indexeddb_3_test now passes in dart2js-drt.
TBR=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8286 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:58:47 +00:00
brianwilkerson@google.com c8cb519a31 Fix for issues 2380 and 2381
Review URL: https://chromiumcodereview.appspot.com//10515012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8283 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:41:52 +00:00
podivilov@google.com b6b6b5f81e Revert recent changes to indexeddb_4_test.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8282 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:40:41 +00:00
podivilov@google.com 005cdb4959 Fix NodeSelector interface.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8281 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:24:59 +00:00
podivilov@google.com 5e36594d03 Fix indexeddb_3_test.
R=antonm@google.com,sra@google.com
BUG=3311

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8280 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:12:44 +00:00
podivilov@google.com 16391d794c Implement v8-like overload resolving.
This is needed to fix indexeddb_3_test and several bugs related to overload dispatching.

R=antonm@google.com
BUG=3353
TEST=indexeddb_3_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8278 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 13:08:16 +00:00
podivilov@google.com d699e26bae Move splitting operations with optional arguments to generator.
To generate v8-like overload resolver we need original list of overloads.
It is much easier to slit operations in generator where needed than to split
them in databasebuilder and then combine again in generator.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8277 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 12:02:53 +00:00
podivilov@google.com 6416f7816a Use WebKit IDL syntax for declaring optional parameters in dart.idl.
Using the same syntax everywhere makes generator simpler.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8276 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 12:01:29 +00:00
scheglov@google.com 22d82585d5 Issue 3272. Void can be assigned to Dynamic
http://code.google.com/p/dart/issues/detail?id=3272

R=brianwilkerson@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8274 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 03:23:41 +00:00
efortuna@google.com e797853f1c Fix status file.
TBR.
Review URL: https://chromiumcodereview.appspot.com//10509014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8273 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 02:07:13 +00:00
efortuna@google.com 0956abbfbc Polish Date formatting API.
Review URL: https://chromiumcodereview.appspot.com//10505005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8272 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 01:45:41 +00:00
hausner@google.com 96b9348764 co19 triage
Add co19 issue number.

TBR=srdjan
Review URL: https://chromiumcodereview.appspot.com//10519018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8270 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 23:16:08 +00:00
hausner@google.com ba8c73df3a Fix handling of long JSON messages
Fix Debugger wire protocol for long messages.
Add a stress mode in the protocol handler to break messages
into small pieces.
Review URL: https://chromiumcodereview.appspot.com//10515015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8269 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 22:27:50 +00:00
vsm@google.com ec6c2fcfe1 Roll IDL to multivm@576
TBR=sra

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8266 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 20:42:06 +00:00
jmesserly@google.com 8901459479 dartdoc: --omit-generation-time flag to exclude generation time from output
BUG= http://dartbug.com/3374
TEST=run dartdoc with the new flag '--omit-generation-time' and notice the lack of timestamp in the output

Review URL: https://chromiumcodereview.appspot.com//10513007
Patch from Kevin Moore <kevmoo@j832.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8265 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 19:19:06 +00:00