Commit Graph

32308 Commits

Author SHA1 Message Date
Stephen Adams 4f06486925 js_ast test is now line-ending agnostic
TBR=herhut@google.com

Review URL: https://codereview.chromium.org//1208993006.
2015-07-01 08:26:36 -07:00
Sigmund Cherem b273d56f0d Fix pkgbuild tests after adding a pubspec on pkg/compiler (fix #23750)
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//1217353002.
2015-07-01 08:19:00 -07:00
Kevin Moore 161c40f24d ignore .packages file in runtime/observatory
TBR

Review URL: https://codereview.chromium.org//1220953002.
2015-07-01 07:50:33 -07:00
Rico Wind 76bfe2e842 Remove dart-services annotated steps script
This was never put to use

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

Review URL: https://codereview.chromium.org//1214483009.
2015-07-01 12:36:00 +02:00
Florian Schneider 65f19d9cfc Remove one fixed entry from object pool on x64 and arm64.
The CallToRuntime stub is not needed as a fixed entry anymore since
all stubs set up their own object pool.

The UpdateStoreBuffer stub is still needed because intrinsics don't set
up a normal frame. Changing that would also allow removing this entry.

BUG=
R=srdjan@google.com

Review URL: https://codereview.chromium.org//1215143002.
2015-07-01 11:07:59 +02:00
Stephan Herhut 964afc0523 dart2js: Fix regression in minified names for one shot interceptors.
R=sra@google.com
BUG= http://dartbug.com/23731

Review URL: https://codereview.chromium.org//1220793006.
2015-07-01 11:01:01 +02:00
William Hesse feade0551f Flag --with-dartium should install dartium
Although the --with-dartium flag was documented, the flag
--with-content-shell was used for installing dartium instead.

Chromium path in caveats should be version agnostic
Fixes https://github.com/dart-lang/homebrew-dart/issues/32

R=whesse@google.com

Review URL: https://codereview.chromium.org//1211743002.
2015-07-01 10:25:03 +02:00
Stephen Adams 6d1b57277a Tweak order of parts of lazy initializer list.
Keeping all the names together rather than sandwiching the function makes it less confusing to read.

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1221823002.
2015-06-30 17:32:46 -07:00
Sigmund Cherem 4ec3db6947 keep old location of libraries.dart in the generated SDK (fixes 23755)
R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1216313002.
2015-06-30 17:08:21 -07:00
Paul Berry cf790b0829 Clean up constructors for ScopedVisitor and derived classes.
Previously, the classes ScopedVisitor, ResolverVisitor,
TypeResolverVisitor, and VariableResolverVisitor each had 4
independently maintained constructors, used respectively by
LibraryResolver (and DDC), the task model, the incremental resolver,
and LibraryResolver2.  This was difficult to maintain, and it was
about to get worse with the introduction of diet resolution.

This CL merges the constructors into one, using named optional
parameters where possible to reduce the burden on callers.

A few of the old constructors are kept on a temporary basis because
they are used by DDC, but they are deprecated; these can be removed
once DDC resolution is fully integrated with analyzer.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1207383005.
2015-06-30 15:37:17 -07:00
Konstantin Shcheglov 5bcd357802 Invalidate both hints and lints on incremental resolution.
We don't have new LINTS result descriptor yet, once we have, we need
to update the new AnalysisContext implementation.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1222433003.
2015-06-30 15:31:36 -07:00
Konstantin Shcheglov 18b3ab0c58 Dispose private cache partition on AnalysisContext.dispose().
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1211993004.
2015-06-30 15:29:32 -07:00
Ryan Macnak 40fcf4a72d Handle field-invocation and method-extraction in the runtime when --lazy_dispatchers=false.
R=fschneider@google.com

Review URL: https://codereview.chromium.org//1195573006.
2015-06-30 15:14:35 -07:00
danrubel d2bd01852f performance measurement improvements
* report mean, 90th, 99th, and std-dev
* increase analysis wait time to 60 seconds
* add option for analysis server localhost diagnostics
* report running old vs new task model
* do not check if src dir exists so that scripts are more portable
* set clientRequestTime for each request
* ensure dir paths have trailing separators

BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1221893003.
2015-06-30 18:08:10 -04:00
Matthias Hausner ce917c5160 Redirection type of a redirecting factory can be deferred
BUG=23408
R=regis@google.com

Review URL: https://codereview.chromium.org//1219023002.
2015-06-30 14:57:07 -07:00
Stephen Adams 0b19fb7f26 Use 'a' as the first field name rather than 'Q'.
Miniscule extra compression plus it bothered me.

TBR=herhut@google.com

Review URL: https://codereview.chromium.org//1214853008.
2015-06-30 14:04:29 -07:00
Kevin Moore d676b3fbd1 Fix commit links for 1.11 and 1.10 in changelog
Closes https://github.com/dart-lang/sdk/issues/23715

R=jakemac@google.com

Review URL: https://codereview.chromium.org//1217603003.
2015-06-30 10:17:53 -07:00
Brian Wilkerson dd9fa13157 More GetHandler clean-up
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1221703003.
2015-06-30 07:49:32 -07:00
Paul Berry 7671bce82a Compute mixin application constructors in the ClassElement.constructors getter.
Previously we computed them during resolution, but this created a
problem: since the set of constructors for a mixin application depends
on the constructors in the superclass, and the superclass might itself
be a mixin application, it might theoretically be necessary to analyze
all files in the transitive import/export closure before it is
possible to compute the set of constructors for a class.  As a result,
in order to produce completion results after a non-incremental change
to file X, we have to re-analyze the entire transitive closure of
files importing or exporting X.  This takes prohibitively long.

This change moves the computation into the ClassElement.constructors
getter.  The computation is not cached, so now a change to file X only
requires rebuilding the element models for files directly importing X
(or directly importing files that contain X in their transitive export
closure).

Since the result of the computation is not cached, this will produce
an increase in analysis time, however since mixin applications are
used so rarely, the performance impact should be negligible.

Fixes #23732.

R=scheglov@google.com

Review URL: https://codereview.chromium.org//1215053003.
2015-06-30 07:35:26 -07:00
Lasse R.H. Nielsen ede6cb71a5 Make modInv throw Exception on incompatible operands.
Also update errors to be more descriptive accross the integer methods.

I'm still considering whether a more precise "NotCoPrimeException" would be better.

R=regis@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//1209523002.
2015-06-30 14:46:14 +02:00
William Hesse 120bff1f3b Fix build directory cleaner, to not follow links on Windows.
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//1219833003.
2015-06-30 14:08:03 +02:00
William Hesse 0368173f20 Update test status for package tests on compiler package.
BUG=https://github.com/dart-lang/sdk/issues/23750
R=ricow@google.com

Review URL: https://codereview.chromium.org//1216963003.
2015-06-30 11:40:45 +02:00
Devon Carew 969d882e6e Fixes to the service.md doc. Various minor changes discovered while
parsing the file.

BUG=
R=turnidge@google.com

Review URL: https://codereview.chromium.org//1220713008.
2015-06-29 19:57:28 -07:00
Ryan Macnak 3853a4e9b2 Add lock prefix and cmpxchg to X64 disassembler.
(Used in UpdateStoreBuffer stub.)

R=srdjan@google.com

Review URL: https://codereview.chromium.org//1221683005.
2015-06-29 17:20:26 -07:00
Todd Turnidge e8cc98c563 Do not use the bogus @Type in service.md.
BUG=23744
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1219723003.
2015-06-29 17:16:20 -07:00
Natalie Weizenbaum 6446e906bf Bring in the latest pub.
R=kevmoo@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//1215013003.
2015-06-29 16:26:45 -07:00
Gilad Bracha b11670f899 Ensure null aware ops on statics are unsurprising.
BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1218483004.
2015-06-29 15:33:06 -07:00
Jacob Richman d530da7002 Update dartium_webkit_revision to match tip of trunk dartium blink branch.
BUG=

Review URL: https://codereview.chromium.org//1212333007.
2015-06-29 14:15:14 -07:00
Brian Wilkerson e575dfe1d8 Remove dead code for an unused (old) task
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1215433008.
2015-06-29 13:23:38 -07:00
Brian Wilkerson 508e6ca49b Fix incremental resolver test
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1214853004.
2015-06-29 12:33:20 -07:00
Brian Wilkerson 0513859704 Re-implement the status page for the new task model
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1211243003.
2015-06-29 12:20:19 -07:00
Jacob Richman 5ebb4b6019 Update dartium_webkit_revision to match tip of trunk dartium blink branch.
BUG=

Review URL: https://codereview.chromium.org//1211103005.
2015-06-29 12:16:40 -07:00
Jacob Richman ae72b6a701 Enhance dart:js interop in a backwards compatible manner.
BUG=

Review URL: https://codereview.chromium.org//1213873004.
2015-06-29 11:20:11 -07:00
Konstantin Shcheglov d693006bc6 Fix for the test.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1217853003.
2015-06-29 10:46:17 -07:00
Sigmund Cherem b18c5a3e7c sdk files reorganization to make dart2js a proper package
BUG=
R=brianwilkerson@google.com, floitsch@google.com, whesse@google.com

Review URL: https://codereview.chromium.org//1212513002.
2015-06-29 10:21:14 -07:00
Paul Berry 21b65e700b Split BuildSourceClosuresTask into two tasks; remove unnecessary computation.
This splits BuildSourceClosuresTask into BuildSourceExportClosureTask,
which produces EXPORT_SOURCE_CLOSURE, and
BuildSourceImportExportClosureTask, which produces
IMPORT_EXPORT_SOURCE_CLOSURE.  IMPORT_SOURCE_CLOSURE is no longer
computed, since it was not being used.

This should reduce the amount of analysis work that needs to be rerun
before we can produce code completions, since we will no longer have
so recompute the import/export source closure (which could potentially
need recomputation for a large number of files) until just prior to
ResolveUnitReferencesTask, which in theory doesn't need to run in
order to produce code completions.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1220743004.
2015-06-29 10:13:09 -07:00
Konstantin Shcheglov 8dc7502884 Try incremental analysis before limiting invalidation.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1220633003.
2015-06-29 10:00:52 -07:00
Paul Berry 46c0a977fa Make BuildSourceClosuresTask explicitly dependent on LIBRARY_ELEMENT2.
Previously the dependency was a private implementation detail of
_SourceClosureTaskInputBuilder, which made it difficult to statically
analyze the input/output relationships between tasks in the task
model.

R=scheglov@google.com

Review URL: https://codereview.chromium.org//1216523003.
2015-06-29 09:46:23 -07:00
danrubel 13b601ffc5 watch for file system changes after context created
Closes #23671

R=paulberry@google.com

Review URL: https://codereview.chromium.org//1188663006.
2015-06-29 12:24:29 -04:00
Brian Wilkerson 09fd112781 Add parsing support for generic methods
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1216873002.
2015-06-29 08:39:15 -07:00
Johnni Winther 76f1fec4f9 Translate package URIs to resource URIs for diagnostics.
Closes #23699

BUG=http://dartbug.com/23699
R=ahe@google.com, het@google.com

Review URL: https://codereview.chromium.org//1205373002.
2015-06-29 17:13:31 +02:00
Asger Feldthaus 009cc956d1 dart2js cps: Fix a couple of minor issues.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1212663004.
2015-06-29 16:44:58 +02:00
Florian Schneider 5daa5646ef VM: Fix issue with optimizing compiler's range analysis.
Narrowing of ranges should only occur if the new range is actually
narrower than the old range. It can happen that a symbolic range
is worse than the already computed one. Ignore the new range in this
case.

BUG=dartbug.com/23693
R=vegorov@google.com

Review URL: https://codereview.chromium.org//1219623004.
2015-06-29 16:14:06 +02:00
Asger Feldthaus 4f8d7b42d2 dart2js cps: Set receiver type in type propagation.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1214643003.
2015-06-29 16:01:44 +02:00
Asger Feldthaus 34302b1320 dart2js cps: Translate synthesized mixin constructors.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1216593002.
2015-06-29 15:28:40 +02:00
Stephan Herhut 63ccf506d7 dart2js: Fix off-by-one in assert.
TBR=johnniwinther@google.com
BUG=

Review URL: https://codereview.chromium.org//1217823002.
2015-06-29 14:41:10 +02:00
Asger Feldthaus ec55d46148 dart2js cps: Fix translation of local constants.
BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1211393003.
2015-06-29 14:32:49 +02:00
Stephan Herhut d24580087d dart2js: Extract minified field naming into mixin.
R=johnniwinther@google.com
BUG=

Review URL: https://codereview.chromium.org//1209973002.
2015-06-29 14:19:59 +02:00
William Hesse 57765a8929 Ensure correct line endings for method_mirror_source tests.
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1218813002.
2015-06-29 13:43:57 +02:00
Johnni Winther 74d04a6a48 Compute constant constructors in resolution.
BUG=
R=sigurdm@google.com

Review URL: https://codereview.chromium.org//1218793002.
2015-06-29 12:56:06 +02:00