Commit Graph

121 Commits

Author SHA1 Message Date
Jacob Richman 33717e010a Run dartfmt on dart2js codebase.
BUG=
R=sra@google.com

Review-Url: https://codereview.chromium.org/2746333008 .
2017-03-15 20:38:18 -07:00
Johnni Winther 4b9297caad Create ResolutionEnqueuer after library loading.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2735763002 .
2017-03-15 13:46:48 +01:00
danrubel 42f6586f36 rename fasta.Token.value --> lexeme
This renames the fasta.Token.value field to .lexeme so that
it will not collide with an already existing analyzer.Token accessor.

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

Review-Url: https://codereview.chromium.org/2738313002 .
2017-03-12 13:16:14 -04:00
Johnni Winther 9420ab5f3c Move main and isolate handling to enqueuer listeners.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/2716713003 .
2017-03-11 11:26:06 +01:00
Peter von der Ahé b6ad994d61 Update perf.dart to new API.
R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2668253002 .
2017-02-01 15:39:05 +01:00
Sigmund Cherem 313190029a Fix perf.dart test.
These tests didn't cover much, but I still managed to break them...
TBR=paulberry@google.com

Review-Url: https://codereview.chromium.org/2613113002 .
2017-01-05 12:17:06 -08:00
Sigmund Cherem cc3682f134 fe: minor change to benchmarks to match what the runners expect and some minor refactoring.
I'm happy to split the style/refactorings as separate CLs if you prefer. Here is a summary of the changes:
  - update the reported strings to match the names expected by our benchmark runners ("unlinked summaize + parse" => "unlinked_summarize")
  - invert the benchmark results (like Paul did in 2551533003)
  - stop counting input-size while scanning, count that separately once
  - combine the multiple summarization steps into a single function
  - clean up the logic that dispatches into each benchmark

R=paulberry@google.com

Review-Url: https://codereview.chromium.org/2602003002 .
2017-01-05 11:31:35 -08:00
Johnni Winther 417d4d7a50 Further encapsulate Enqueuer
R=het@google.com

Review URL: https://codereview.chromium.org/2527403002 .
2016-11-29 09:14:09 +01:00
Johnni Winther c102d3f72a Remove direct access to enqueuer through use of WorldImpact
R=het@google.com

Review URL: https://codereview.chromium.org/2527973002 .
2016-11-29 09:05:53 +01:00
Erik Ernst 7809d25b92 Remove the ability in dart2js to turn off syntax-only generic methods.
This CL removes all the checks for 'enableGenericMethodSyntax' in the
implementation, which takes away the ability to turn this feature off
and simplifies the code.

As a result, `ParserOptions` is now empty; we may want to remove it,
but this CL does not do that.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/2521073003 .
2016-11-23 12:16:30 +01:00
Johnni Winther 99cd985a40 Refactor enqueuers
- limit use of globalDepencies
- remove mirrorDependencies
- compute native class through WorldImpact
- decouple reflectable elements analysis from enqueuers
- prepare for creating multiple enqueuers for closed world tests

R=het@google.com

Review URL: https://codereview.chromium.org/2494093002 .
2016-11-14 10:08:11 +01:00
Harry Terkelsen a9d4575788 add missing semicolon in profile_many script
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2482773003 .
2016-11-07 13:17:43 -08:00
Emily Fortuna de2697f41c Code cleanup: moving compiler perf tests to compiler/tool
Task as described in https://docs.google.com/spreadsheets/d/1zebkSp_VjVFC_vd2JufrOkrT5O1XVu6iyoCmusE_UEk/edit#gid=0&vpid=A1

R=sigmund@google.com

Review URL: https://codereview.chromium.org/2473553005 .
2016-11-03 15:28:58 -07:00
Sigmund Cherem 02a14cd937 Add kernel generation to the compiler/perf script
R=het@google.com

Review URL: https://codereview.chromium.org/2436333002 .
2016-10-21 10:02:13 -07:00
Sigmund Cherem 1324220ede Create entrypoint to measure performance of the dart2js frontend
BUG=
R=het@google.com

Review URL: https://codereview.chromium.org/2385893002 .
2016-10-10 14:47:29 -07:00
Harry Terkelsen 29cf477139 dartfmt pkg/compiler
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1859343004 .
2016-04-07 10:00:53 -07:00
Sigmund Cherem 66db8a7f0e add tool to track memory watermark
R=sra@google.com

Review URL: https://codereview.chromium.org/1384833002 .
2015-10-05 10:20:36 -07:00
Sigmund Cherem 8896ccd385 dart2js: switch to use dart2js_info/info.dart
R=het@google.com

Review URL: https://codereview.chromium.org//1298553002 .
2015-08-18 15:44:38 -07:00
Sigmund Cherem e3fbf44643 dart2js: add function coverage tracking in dart2js output, dumpinfo, and
coverage recording server

R=sra@google.com

Review URL: https://codereview.chromium.org//1288593002 .
2015-08-13 16:47:58 -07:00
Sigmund Cherem f95dd37d1a dart2js: add simple script to compute dependency queries. Currently only
one query is supported "some_path", which gives you a way to determine how a
function is included in the program. For example, running:

  dart code_deps.dart angular2_hello.js.info.json some_path main Compiler

would produce this output:

  source: examples.src.hello_world.index...main
  target: angular2.src.core.compiler.compiler...Compiler.Compiler
  result:
    0. examples.src.hello_world.index...main
    1. examples.src.gestures.index.ng_deps.dart...initReflector
    2. angular2.bootstrap_static.ng_deps.dart...initReflector
    3. angular2.application_static.ng_deps.dart...initReflector
    4. angular2.src.core.application_common.ng_deps.dart...initReflector
    5. angular2.src.core.compiler.compiler.ng_deps.dart...initReflector
    6. angular2.src.core.compiler.compiler...Compiler.Compiler

The tool accepts regular expressions to match the name of the elements.
The graph and util library will be used for other scripts as well.

R=het@google.com

Review URL: https://codereview.chromium.org//1284843002 .
2015-08-11 17:12:45 -07:00
Sigmund Cherem 571c1d5b6e dart2js: add an example script that shows the distribution of code among
libraries.

For example, running this on the dump-info of angular2 'hello
world' would produce:

  path             8807   1.21%
  stack_trace     11501   1.59%
  intl            14135   1.95%
  Loose files    142311  19.62%
  angular2       224171  30.90%
  Core libs      225120  31.03%
  All packages   258614  35.65%
  TOTAL          626045  86.30%

Note that the grouping of libraries, say by package, and summary information is
configurable.

R=het@google.com

Review URL: https://codereview.chromium.org//1287543002 .
2015-08-11 14:59:59 -07:00