Commit Graph

2805 Commits

Author SHA1 Message Date
Stephen Adams 1ae1ec7df4 Remove HRuntimeType implementation
Use the legacy RTI format, which should be replaced with something that lets types and tests be cached and amortized.

R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2722753002 .
2017-02-28 09:33:32 -08:00
Asger Feldthaus 3a7529a363 Remove status file sections for the CPS IR.
BUG=
R=kmillikin@google.com

Committed: https://github.com/dart-lang/sdk/commit/2d6c90a6b3d6d1be5095e12a0a633305e1d5db2a
Review-Url: https://codereview.chromium.org/2720513006 .
2017-02-28 17:11:19 +01:00
Asger Feldthaus e7b9672b3e Revert "Remove status file sections for the CPS IR."
This reverts commit 2d6c90a6b3.

BUG=

Review-Url: https://codereview.chromium.org/2720283002 .
2017-02-28 17:08:04 +01:00
Asger Feldthaus 2d6c90a6b3 Remove status file sections for the CPS IR.
BUG=
R=kmillikin@google.com

Review-Url: https://codereview.chromium.org/2720513006 .
2017-02-28 14:40:06 +01:00
Florian Loitsch 979183decf Add support for the new function-type syntax.
Fixes #27967
BUG= http://dartbug.com/27967
R=ahe@google.com, johnniwinther@google.com, paulberry@google.com, sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/85227ba8a60332a18ae92cb1b87bf15d52a909bd
Reverted: https://github.com/dart-lang/sdk/commit/f5fc210f4f79f7e6b7ccefc24e7565e810e9dc7d
Committed: https://github.com/dart-lang/sdk/commit/e4999a631093690febb2eb90cbdbe1f9d5183455
Reverted: https://github.com/dart-lang/sdk/commit/c64c35153905fc2bf8a74c02297220385cfcbc87
Committed: https://github.com/dart-lang/sdk/commit/c289af39c36d9a5f7130a3e69b7891052652a64e
Reverted: https://github.com/dart-lang/sdk/commit/c66479f40767744d0bdd027c004583d6e32fe50f
Review-Url: https://codereview.chromium.org/2567133002 .
2017-02-23 13:36:28 +01:00
Florian Loitsch c66479f407 Revert "Add support for the new function-type syntax."
This reverts commit c289af39c3.

BUG=

Review-Url: https://codereview.chromium.org/2710973002 .
2017-02-22 17:19:35 +01:00
Florian Loitsch c289af39c3 Add support for the new function-type syntax.
Fixes #27967
BUG= http://dartbug.com/27967
R=ahe@google.com, johnniwinther@google.com, sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/85227ba8a60332a18ae92cb1b87bf15d52a909bd

Reverted: https://github.com/dart-lang/sdk/commit/f5fc210f4f79f7e6b7ccefc24e7565e810e9dc7d

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

Reverted: https://github.com/dart-lang/sdk/commit/c64c35153905fc2bf8a74c02297220385cfcbc87
Review-Url: https://codereview.chromium.org/2567133002 .
2017-02-22 16:53:49 +01:00
Johnni Winther 9a1ceea706 Split backend implementation of EnqueuerListener
- into a EnqueuerListenerBase with subclasses ResolutionEnqueuerListener and CodegenEnqueuerListener

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2693163002 .
2017-02-20 12:49:09 +01:00
Johnni Winther 8ffeb45db5 Move global dependencies to BackendUsage
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2696483005 .
2017-02-20 12:16:28 +01:00
Johnni Winther 4ada4dbb99 Introduce EnqueuerListener
- to abstract the JavaScriptBackend coupling to Enqueuer

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2693893003 .
2017-02-20 11:53:39 +01:00
Johnni Winther ebaff3dc66 Extract BackendUsage, MirrorsData, and CheckedModeHelpers from Backend.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2688413003 .
2017-02-20 11:44:14 +01:00
Johnni Winther c94162a20f Add MultiSourceInformationStrategy
- generate sourcemap for both engines using --use-multi-source-info

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2690083002 .
2017-02-20 11:36:15 +01:00
Johnni Winther a6b1c31b9e Mark output_type_test as Slow, Pass
Review-Url: https://codereview.chromium.org/2706033002 .
2017-02-20 11:32:15 +01:00
Johnni Winther 0f25d7da94 Refactor CompilerOutput
- replace EventSink by OutputSink
- add OutputType instead of uses magic values in [extension].

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2690063002 .
2017-02-20 10:34:15 +01:00
Johnni Winther fd918a2725 Add output_type_test
- in preparation for refactoring of CompilerOutput

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2696513003 .
2017-02-20 10:03:53 +01:00
Lasse R.H. Nielsen e64cbd9a86 Update method count in mirrors_used_test.
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2700943002 .
2017-02-17 13:48:27 +01:00
Emily Fortuna 063e60ae29 Add deferred loading to Kernel.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2691753002 .
2017-02-14 17:51:51 -08:00
Sigmund Cherem 91796be231 Add mode to test.dart to run dart2js with kernel, and include initial set of
failures in status files

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

Review-Url: https://codereview.chromium.org/2688413004 .
2017-02-14 14:37:23 -08:00
Johnni Winther 69e97a27f3 Handler the last native annotations
- we now handle `kernel/impact_test.dart --full`.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2686243004 .
2017-02-12 10:58:36 +01:00
Johnni Winther 39946b0468 Handle equivalence for generic mixins.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2683403002 .
2017-02-12 10:46:04 +01:00
Johnni Winther 2b77a7e6b8 Support mixin application equivalence in impact_test.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2681783005 .
2017-02-10 10:55:06 +01:00
Johnni Winther 1567a4c21b Handle Native("...") annotations in KernelBehaviorBuilder.
Closes #28157

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2681123004 .
2017-02-10 10:49:19 +01:00
Johnni Winther cc60ef19f5 Handle Creates and Returns annotations in KernelBehaviorBuilder
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2685673004 .
2017-02-10 10:43:39 +01:00
Johnni Winther 68b1c1a827 Add KernelNativeBehaviorComputer
- to support NativeBehavior computation from KernelWorldBuilder.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2679913006 .
2017-02-10 10:36:35 +01:00
Johnni Winther a2b0a1bc1b Refactor ConstantSystem
- to prepare for kernel based implementation

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2684783003 .
2017-02-10 10:30:16 +01:00
Johnni Winther eb411556e6 Add NoSourceLocationMarker in old source-info engine.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2682813005 .
2017-02-10 10:03:45 +01:00
Johnni Winther 1498e533e0 Remove LibraryEntity.libraryName
- use libraryName for LibraryElement.name if available.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2632643002 .
2017-02-08 11:37:01 +01:00
Johnni Winther 52efadefc2 Replace Backend with JavaScriptBackend.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2685573002 .
2017-02-08 10:50:55 +01:00
Johnni Winther 85826aad35 Mark unittest tests as slow
Closes #28581

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2680773002 .
2017-02-08 10:20:40 +01:00
Sigmund Cherem 6aed1bd760 Fix tests broken by ac6bf5926f
BUG=

Review-Url: https://codereview.chromium.org/2684793002 .
2017-02-07 15:45:23 -08:00
Emily Fortuna f8f60f1ec4 Fix the loops break label test with Kernel.
BUG=https://github.com/dart-lang/sdk/issues/28670
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2682823002 .
2017-02-07 14:49:29 -08:00
Sigmund Cherem ac6bf5926f Temporarily allow to import dart:io in client apps.
Disclaimer: I am not in favor of this approach, but it appears to be the least
worst option at the time.

Reach out to kevmoo@ or dgrove@ for details.

R=lrn@google.com, sra@google.com, dgrove@google.com, kevmoo@google.com

Review-Url: https://codereview.chromium.org/2675023002 .
2017-02-07 14:02:04 -08:00
Emily Fortuna e6cc14ec4e "Fix" kernel loop break to label test break to make tree green while investigating better fix.
BUG=https://github.com/dart-lang/sdk/issues/28670

Review-Url: https://codereview.chromium.org/2686573004 .
2017-02-07 12:36:21 -08:00
Johnni Winther fe702abc55 Refactor BackendHelpers to be reusageable with KernelWorldBuilder
- introduces ElementEnvironment and uses it to implement most of CommonElements and BackendHelpers

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2675103003 .
2017-02-07 10:29:16 +01:00
Emily Fortuna f5cc947dd7 Implement SuperPropertySet and SuperNoSuchMethod.
BUG=https://github.com/dart-lang/sdk/issues/27394
R=sra@google.com

Review-Url: https://codereview.chromium.org/2672063003 .
2017-02-03 14:17:53 -08:00
Stephen Adams 49c97bc13f Use for-in loop variable name if possible
BUG=
R=efortuna@google.com

Review-Url: https://codereview.chromium.org/2667003005 .
2017-02-03 13:51:30 -08:00
Johnni Winther b789a27f05 Refactor ConstantExpression/ConstantConstructor to use entities.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2669703003 .
2017-02-02 10:12:24 +01:00
Johnni Winther a78e2e9806 Remove code supporting incremental compilation in dart2js
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2668233002 .
2017-02-02 09:48:19 +01:00
Peter von der Ahé ce742a1697 Port parser and scanner fixes from rasta branch.
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2664593002 .
2017-02-01 13:59:11 +01:00
Peter von der Ahé d0d27c1c38 Use parser and scanner from package:front_end.
Originally reviewed as:

    Review-Url: https://codereview.chromium.org/2650413002 .
    Review-Url: https://codereview.chromium.org/2652203002 .
    Review-Url: https://codereview.chromium.org/2655843002 .
    Review-Url: https://codereview.chromium.org/2654433009 .
    Review-Url: https://codereview.chromium.org/2647343003 .
    Review-Url: https://codereview.chromium.org/2652663005 .
    Review-Url: https://codereview.chromium.org/2650813002 .
    Review-Url: https://codereview.chromium.org/2650803002 .
    Review-Url: https://codereview.chromium.org/2651843004 .
    Review-Url: https://codereview.chromium.org/2649923002 .
    Review-Url: https://codereview.chromium.org/2651563003 .
    Review-Url: https://codereview.chromium.org/2649123002 .
    Review-Url: https://codereview.chromium.org/2644843006 .
    Review-Url: https://codereview.chromium.org/2647043002 .
    Review-Url: https://codereview.chromium.org/2642903003 .
    Review-Url: https://codereview.chromium.org/2645513002 .
    Review-Url: https://codereview.chromium.org/2642663003 .
    Review-Url: https://codereview.chromium.org/2642713002 .
    Review-Url: https://codereview.chromium.org/2635473002 .
    Review-Url: https://codereview.chromium.org/2624373003 .
    Review-Url: https://codereview.chromium.org/2627723006 .
    Review-Url: https://codereview.chromium.org/2627093007 .
    Review-Url: https://codereview.chromium.org/2629543008 .
    Review-Url: https://codereview.chromium.org/2629543007 .
    Review-Url: https://codereview.chromium.org/2631503002 .
    Review-Url: https://codereview.chromium.org/2621153006 .
2017-02-01 10:29:25 +01:00
Johnni Winther 1511bb8647 Handle JS-calls in impact_test.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2668723002 .
2017-02-01 10:22:24 +01:00
Johnni Winther 7060fa7209 Handle private dynamic access in impact_test.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2662253002 .
2017-02-01 10:15:39 +01:00
Johnni Winther 3dfcafe5be Check equivalence on impact computed with KernelWorldBuilder.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2668623003 .
2017-02-01 10:10:13 +01:00
Johnni Winther 26f8509fee Prepare equivalence strategies for testing entities.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2663033004 .
2017-02-01 10:05:02 +01:00
Johnni Winther 4358efc0ca Add test for expected source mappings
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2667983002 .
2017-02-01 10:00:17 +01:00
Regis Crelier ca14f632c8 Gardening: disable timing out tests.
Review-Url: https://codereview.chromium.org/2661123004 .
2017-01-31 10:21:45 -08:00
Peter von der Ahé 35d4cccd05 Remove dart2js_incremental.
Review-Url: https://codereview.chromium.org/2667793003 .
2017-01-31 16:32:06 +01:00
Johnni Winther 1672873f45 Add KernelWorldBuilder and KElement model.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2666553002 .
2017-01-31 10:33:35 +01:00
Johnni Winther 4927afc21f Move Entity and Local to entities.dart
- and use entities in Name, MapLiteralUse and ListLiteralUse.

R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2667473003 .
2017-01-31 10:02:18 +01:00
Johnni Winther cb6d6c449e Use entities in BackendClasses
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2659883002 .
2017-01-30 10:28:46 +01:00