Commit Graph

4835 Commits

Author SHA1 Message Date
Johnni Winther 374df045e7 Handle forwarding constructors to unnamed mixin applications
+ handle instance fields from mixins
+ change class sorting to put unnamed mixin applications last

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3005823002 .
2017-09-01 19:07:02 +02:00
Janice Collins 51cc9689b3 Remove corelib and corelib_strong and migrate last two remaining tests.
This includes a migration of linked_hash_map_from_iterable_test and
stacktrace_current_test, which were migrated without changes.

BUG=
R=rnystrom@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/3004073002 .
2017-09-01 08:11:15 -07:00
Leaf Petersen 05af4fb787 Disable fuzzy arrow hints in front_end and dart2js
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3004143002 .
2017-08-31 12:17:47 -07:00
Emily Fortuna ea038bd8e0 Pass in this as a free variable to the closure class
BUG=
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3009903002 .
2017-08-31 10:41:19 -07:00
Johnni Winther 40858f5f50 Handle switch continue
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3007783004 .
2017-08-31 12:32:01 +02:00
Harry Terkelsen b3ce4a88e6 Use the entity model for dump_info.
This changes dump_info to use the entity model and the visit methods in
ElementEnvironment. This way, once the Kernel implementation of
ElementEnvironment is fully implemented, dump_info should *just work*
with the common front end.

R=johnniwinther@google.com, sigmund@google.com

Review-Url: https://codereview.chromium.org/3008793002 .
2017-08-30 15:26:11 -07:00
Harry Terkelsen 08abc8db75 Delete dart2js_resolver and fix some typos in README
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009813002 .
2017-08-30 11:05:08 -07:00
Johnni Winther 543111261f Prepare for handling super noSuchMethod
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3007523003 .
2017-08-30 11:51:59 +02:00
Johnni Winther 8c6c2c4bfc Handle assert_test without useKernelInSsa
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009483002 .
2017-08-30 11:37:32 +02:00
Johnni Winther 3f0c2d4bb3 Handle missing break in last switch case
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3003283003 .
2017-08-30 11:32:20 +02:00
Johnni Winther ea293ae267 Use memory source files in compile_from_dill*
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3007443002 .
2017-08-30 11:01:05 +02:00
Johnni Winther 583d3c5e84 Support --use-kernel in memory_compiler
- and start using it to deprecate --use-kernel-in-ssa

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2997413002 .
2017-08-30 10:42:09 +02:00
Emily Fortuna 98e36f719e Add boxing for modified variables
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/3007743002 .
2017-08-29 16:27:28 -07:00
Stephen Adams 4449ec4f89 dart2js kernel: Handle ir.LocalInitializer
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009803003 .
2017-08-29 15:45:37 -07:00
Stephen Adams c65d94d440 Add command line options to rank_stacks
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3005683002 .
2017-08-29 12:56:09 -07:00
Johnni Winther 563282bf2c Remove use of Compiler in inferrer engines.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3004713002 .
2017-08-29 12:01:26 +02:00
Johnni Winther a92088997f Handle int/double literals in inference
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009693002 .
2017-08-29 10:41:30 +02:00
Johnni Winther d82a8fdb6b Add tests for list and async marker
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009633002 .
2017-08-29 10:18:35 +02:00
Johnni Winther 7d9dd35f1c It's alive (first kernel inference test)
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009593002 .
2017-08-29 10:12:49 +02:00
Johnni Winther 65956edb23 Use KernelTypeGraphBuilder in KernelInferrerEngine
+ parameterization of LocalsHandler and friends.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3002313002 .
2017-08-29 09:59:30 +02:00
Stephen Adams 043708d48c Avoid Element-only assertions in generateParameterStubs
TBR=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3008753002 .
2017-08-28 21:23:19 -07:00
Sigmund Cherem cf19b1e5aa Update defer loading algorithm:
On a large app this cuts the algorithm time in half.

BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2997233002 .
2017-08-28 16:44:22 -07:00
Emily Fortuna 63754bba71 Add more tests for closures and change closure indexing to be by FunctionExpression or FunctionDeclaration rather than FunctionNode.
BUG=
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3003963002 .
2017-08-28 14:24:58 -07:00
Emily Fortuna fba36729ec Revert "Revert "Reduce use of getClosureInfoForMember and cleanup closure_test""
This reverts commit e94ff86b2b.

Reapply Johnni's change with the status file updates.

BUG=

Review-Url: https://codereview.chromium.org/3008603002 .
2017-08-25 18:14:34 -07:00
Emily Fortuna e94ff86b2b Revert "Reduce use of getClosureInfoForMember and cleanup closure_test"
I tried to land  https://codereview.chromium.org/2998113002/ on behalf
of Johnni, but it wouldn't let me update the status files, and this
change modifies status files. Reverting.

This reverts commit 6b3f8665c0.

BUG=

Review-Url: https://codereview.chromium.org/3011433002 .
2017-08-25 17:57:51 -07:00
Emily Fortuna 6b3f8665c0 Reduce use of getClosureInfoForMember and cleanup closure_test
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2998113002 .
2017-08-25 17:48:14 -07:00
Emily Fortuna edd1ebfd6d Adding JRecord and boxing mechanics.
Well, this introduces a few currently unused classes, but I'm trying to break the other CL up to figure out the source of the problem.

BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/3006653003 .
2017-08-25 17:11:52 -07:00
Stephen Adams 5865a13c44 dart2js kernel: update tryInlineNativeMethod to Entities
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2998413002 .
2017-08-25 16:13:38 -07:00
Johnni Winther 0b643a69c4 Support enabling of type inference with useKernel
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3004593002 .
2017-08-25 18:57:28 +02:00
Johnni Winther 69c233d8e2 Handle labelled continue statements
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3009463002 .
2017-08-25 09:24:23 +02:00
Johnni Winther ec20927933 Remove KernelToLocalsMap.getLocalFunction
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/3000233002 .
2017-08-24 09:40:18 +02:00
Stephen Adams 2c6ae26aba update_all: remove user-dependent part of assertion file path
TBR=sigmund@google.com

Review-Url: https://codereview.chromium.org/3003273002 .
2017-08-23 16:02:55 -07:00
Stephen Adams 83ea082dd3 Redo "dart2js-kernel: implement native static methods"
BUG=

Review-Url: https://codereview.chromium.org/2995293002 .
2017-08-23 14:06:20 -07:00
Dan Rubel 69e9106ead improve fasta export directive recovery
R=ahe@google.com

Review-Url: https://codereview.chromium.org/3001993002 .
2017-08-22 16:52:23 -04:00
Dan Rubel d1385f099f support class native clause
R=ahe@google.com

Review-Url: https://codereview.chromium.org/2996163002 .
2017-08-22 07:42:56 -04:00
Johnni Winther 1658036b05 Share locals between members
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2995113002 .
2017-08-21 15:02:10 +02:00
Johnni Winther 3c8096e040 Split getClosureRepresentationInfo into MemberEntity and (ir/ast) nodes
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/3002953002 .
2017-08-19 10:36:49 +02:00
Johnni Winther 6b36ecefe7 Handle labelled breaks
Closes #30492

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3001233002 .
2017-08-19 10:10:48 +02:00
Stephen Adams bda3b1451d Revert "dart2js-kernel: implement native static methods"
This reverts commit 1206111dea.

Has analyzer warnings that I will fix after the sun comes back out.

TBR=sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/3003003002 .
2017-08-18 22:20:41 -07:00
Stephen Adams 1206111dea dart2js-kernel: implement native static methods
TBR=sigmund@google.com

Review-Url: https://codereview.chromium.org/2997253002 .
2017-08-18 19:40:51 -07:00
Stephen Adams 2fc1ca0b6c DeferredTask.isDeferredClass Element->Entity
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/2995253002 .
2017-08-18 11:00:49 -07:00
Johnni Winther 9b87beb184 Avoid crash for type variables in mixed in fields.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2994383003 .
2017-08-18 15:33:46 +02:00
Stephen Adams 8499c8f12e dart2js kernel: minimal recognition of external native methods
TBR=sigmund@google.com

BUG=

Review-Url: https://codereview.chromium.org/3000123002 .
2017-08-17 21:39:14 -07:00
Johnni Winther 7c77f2db48 Various redemptions
R=efortuna@google.com

Committed: https://github.com/dart-lang/sdk/commit/49b064da419f6eb141c980aec15296a4bb517956

Reverted: https://github.com/dart-lang/sdk/commit/a0110b32f33462be85db64cbda2024ee8912a968
Review-Url: https://codereview.chromium.org/2994333002 .
2017-08-17 15:54:37 +02:00
Johnni Winther a0110b32f3 Revert "Various redemptions"
This reverts commit 49b064da41.

Review-Url: https://codereview.chromium.org/3001823002 .
2017-08-17 10:52:38 +02:00
Johnni Winther 49b064da41 Various redemptions
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2994333002 .
2017-08-17 09:46:20 +02:00
Emily Fortuna 09b215a2fd Fix the local variable lookup in the locals handler.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2994363002 .
2017-08-16 16:08:21 -07:00
Dan Rubel aefd73b8d3 new handleInvalidTopLevelDeclaration event in fasta parser
This adds a new event for better fasta parser recovery
when the parser detects an invalid character at the top level.

R=ahe@google.com

Review-Url: https://codereview.chromium.org/2985703002 .
2017-08-16 09:36:24 -04:00
Johnni Winther 6c20635364 Implement .getCallType
+ a few more pending TODOs

R=sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/8010a919587d085a7186738e459b81ca85fa90ca

Reverted: https://github.com/dart-lang/sdk/commit/f679eb271ab8e9862965d7580010515be7fb1f8b
Review-Url: https://codereview.chromium.org/3000763002 .
2017-08-16 14:39:22 +02:00
Johnni Winther f679eb271a Revert "Implement .getCallType" and "Update status"
This reverts commits 8010a91958 and f66024f5ef.

Review-Url: https://codereview.chromium.org/2997033002 .
2017-08-16 11:40:28 +02:00