Commit graph

32596 commits

Author SHA1 Message Date
Natalie Weizenbaum 7d6a44908a Bring in the latest pub and barback.
R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1247563003 .
2015-07-20 15:29:48 -07:00
Konstantin Shcheglov d5d0017e21 Tweak for navigation for URIs.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1246833002 .
2015-07-20 15:07:00 -07:00
Ivan Posva fb4a42279b Fix build:
- Mark isolate tests with newly added parameters failing on dart2js.
- Specify files needed to be supplied to test harness for spawnUri.

BUG=

Review URL: https://codereview.chromium.org//1246823002 .
2015-07-21 00:00:20 +02:00
Brian Wilkerson b60c723807 Fix the README to point to the right Analysis Server API Specification
R=jwren@google.com

Review URL: https://codereview.chromium.org//1249443002 .
2015-07-20 13:46:04 -07:00
Brian Wilkerson f241b383a9 Implement a strong-mode option in analyzer
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//1241243003 .
2015-07-20 12:30:05 -07:00
Konstantin Shcheglov a049c5aba0 Update DAS protocol version to 1.9.0
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1241213002 .
2015-07-20 12:24:37 -07:00
Konstantin Shcheglov 55cb93b422 Add '--useAnalysisHighlight2' option to generate version 2 of semantic highlight.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//1241193002 .
2015-07-20 10:37:46 -07:00
Brian Wilkerson 15a0f755e8 Improve error messages for invalid requests
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1246573002 .
2015-07-20 10:23:01 -07:00
Ryan Macnak ba27c453ed Remove a source of flakiness from async_step_test.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1234783007 .
2015-07-20 10:21:45 -07:00
Brian Wilkerson bc265ebe28 Implement support for watching directories containing implicitly analyzed files
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1244613004 .
2015-07-20 09:04:37 -07:00
keertip 36d036ad84 update dartdoc tag in DEPS
BUG=
R=sethladd@google.com

Review URL: https://codereview.chromium.org//1242273004 .
2015-07-20 08:59:44 -07:00
Daniel Andersson 0e5026b8db full_coverage_test passes again after fixing 23848
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//1238333002 .
2015-07-20 08:39:41 -07:00
Asger Feldthaus 6e0a210da0 dart2js cps: Share interceptors by default and propagate to use later.
We now only introduce one getInterceptor call per primitive.

(The main use for GVN seemed to be cleaning up these calls, but we
might as well not introduce them in the first place).

To propagate single-used interceptors to their use, propagation of
constant-like expressions has changed.

There is a new CPS pass, let sinking, which sinks single-used pure
primitives to their use when the use is not inside a loop.

Conversely, the tree IR's assignment propagation has been made less
aggressive to compensate for things now handled by let sinking.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1238163003.
2015-07-20 16:53:27 +02:00
Ivan Posva fe03640e85 - Implement VM parts of https://codereview.chromium.org/1240743003/
- Pass additional state in the IsolateSpawnState to set
  error and exit handlers, as well as fatal errors on isolate start.

BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org//1244733002 .
2015-07-20 16:46:54 +02:00
Asger Feldthaus 4d933a2d0d dart2js cps: Streamline expressions and primitives.
SetStatic, SetField, and SetMutableVariable are now primitives instead
of interior expressions. They are valueless primitives, i.e. they are
bound by LetPrim but their value is never referenced.

This should simplify basic block traversal, since there are now fewer
types of interior expressions.

The four remaining interior expressions are: LetPrim, LetCont,
LetHandler, and LetMutable. Incidentally, these are exactly the four
expressions that can bind definitions.

GetMutableVariable and SetMutableVariable have also been renamed
to GetMutable and SetMutable to be uniform with LetMutable.

BUG=
R=karlklose@google.com

Review URL: https://codereview.chromium.org//1240263002.
2015-07-20 15:59:41 +02:00
Florian Loitsch 5b6cdbb0ca Mark test as failing for the analyzer.
Review URL: https://codereview.chromium.org//1238303002 .
2015-07-20 15:25:55 +02:00
Florian Loitsch 3c81651f2f Add failing test to illustrate issue 23857 (const Symbols are equal to unrelated symbols in dart2js).
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1229723008 .
2015-07-20 15:09:33 +02:00
Florian Loitsch fb4633a1c5 dart2js: Use JS_GET_NAME instead of magic constant for catch-all function.
R=karlklose@google.com

Review URL: https://codereview.chromium.org//1245573002 .
2015-07-20 14:53:59 +02:00
Karl Klose 0869c5ca4a dart2js cps: Update test expectations.
TBR=asgerf@google.com

Review URL: https://codereview.chromium.org//1240253002 .
2015-07-20 14:40:37 +02:00
Florian Loitsch 5cf1f59843 Accept 'null' as document.contentScript.
When running as a content script in a Chrome extension `document.contentScript` is set to `null`. We should take that value instead of trying to compute another one based on script tags (the work-around we have for IE). Since content-scripts are not part of the page, it might be that there aren't even any other scripts and the work-around mechanism simply fails (thus not starting the main function).

R=karlklose@google.com

Review URL: https://codereview.chromium.org//1224363004 .
2015-07-20 12:54:02 +02:00
Johnni Winther 6f92dfe8ff Handle deferred access as pre-step in SemanticSendVisitor.
BUG=
R=floitsch@google.com, sigurdm@google.com

Review URL: https://codereview.chromium.org//1238783003.
2015-07-20 11:18:18 +02:00
William Hesse 8c2fb6fccf Update DEPS to use new mirrors of dart-lang git repositories.
BUG=

Review URL: https://codereview.chromium.org//1236883007 .
2015-07-19 19:07:54 +02:00
Brian Wilkerson 78fb9729fa Concrete implementation of completion request (from new API)
R=danrubel@google.com

Review URL: https://codereview.chromium.org//1242223002 .
2015-07-19 08:37:47 -07:00
pq 05d4206929 Server .packages support.
R=brianwilkerson@google.com, paulberry@google.com

Review URL: https://codereview.chromium.org//1242023008 .
2015-07-18 22:18:30 -07:00
Ryan Macnak 7815590e0e Mark new tests relying on flag as failing on Dartium.
TBR=regis@google.com

Review URL: https://codereview.chromium.org//1245493003 .
2015-07-17 17:14:26 -07:00
John McCutchan 977d213344 Refactor AnalysisOptionsProvider
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1245513002 .
2015-07-17 15:17:40 -07:00
Paul Berry 30e3dfc4f1 Changelog for analyzer version 0.25.3-alpha.0
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1240713007 .
2015-07-17 14:40:35 -07:00
Brian Wilkerson c884410865 Remove reference to as-yet-uncommitted file
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1227203011 .
2015-07-17 14:38:21 -07:00
John McCutchan 87e4f68bf5 Drop try block
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1236933007 .
2015-07-17 14:18:37 -07:00
Alan Knight cd8c569632 Make sure NodeValidator uriAttributes aren't passed as attributes
WIP

BUG=
R=terry@google.com

Review URL: https://codereview.chromium.org//1236413002 .
2015-07-17 14:12:44 -07:00
John McCutchan 0300e2e9fd Make analysis_server use ignore patterns from .analysis_options file
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1234293003 .
2015-07-17 14:10:37 -07:00
Regis Crelier 7f10c1420d Make invocation namedArguments unmodifiable.
Fixes #13714

R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1241583008 .
2015-07-17 14:04:54 -07:00
John McCutchan 4bf66ce912 Add an AnalysisOptionsProvider to analyzer
BUG=
R=pquitslund@google.com

Review URL: https://codereview.chromium.org//1231633011 .
2015-07-17 13:34:03 -07:00
Daniel Andersson ee49289308 Fix crash in code coverage generation.
Separate the higher- and lower-level cleanup steps during isolate shutdown. The former (currently only code coverage and timeline) may need to allocate, but the latter should not. Add assertions.

(cc:zra, who's working on clean shutdown)

BUG=23848
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1236913006 .
2015-07-17 13:06:21 -07:00
Brian Wilkerson d37ac8d4d0 Fixed bug in implicit analysis notification and renamed tests
R=scheglov@google.com

Review URL: https://codereview.chromium.org//1236013003 .
2015-07-17 12:43:59 -07:00
John McCutchan cb5335dc4a Add a PathFilter to each context in analysis_server
BUG=
R=brianwilkerson@google.com, pquitslund@google.com

Review URL: https://codereview.chromium.org//1238173003 .
2015-07-17 12:42:57 -07:00
Alan Knight 8d0ceaad7b Another try at placating the type checking for FilteredElementList
BUG=

Review URL: https://codereview.chromium.org//1230313008 .
2015-07-17 12:41:17 -07:00
Brian Wilkerson 23f96f1916 Renames to move closer to the new API
R=danrubel@google.com

Review URL: https://codereview.chromium.org//1240433008 .
2015-07-17 12:20:02 -07:00
Regis Crelier 15de03e2d5 Allow super calls in mixins (for now behind a --supermixin flag).
As a consequence, allow a mixin application alias as a mixin, even if it does
not extend Object.
Add new tests.
Fix an existing test.
Update status files.

Fixes #23771

R=hausner@google.com

Review URL: https://codereview.chromium.org//1232613005 .
2015-07-17 11:32:23 -07:00
Alan Knight 2523c63b11 SafariMobileSim also ignores setting innerHtml on a frameset
BUG=

Review URL: https://codereview.chromium.org//1225403009 .
2015-07-17 11:18:30 -07:00
Ryan Macnak 4b5d321682 Add prints to help diagnose flaky async_step_test failure.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1234203003 .
2015-07-17 11:08:02 -07:00
Florian Loitsch 79645ebd9d dart2js: Add boilerplate strings for the startup-emitter.
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1229913003 .
2015-07-17 20:00:00 +02:00
Alan Knight de3ce04f0a Fix type problem with FilteredElementList._iterable
BUG=
R=whesse@google.com

Review URL: https://codereview.chromium.org//1236793006 .
2015-07-17 10:53:19 -07:00
Daniel Andersson 0bbf08a164 Print child process' stderr when it fails in full_coverage_test.
In general, doing this for tests that fork helps with debugging build bot failures.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1233243006 .
2015-07-17 10:33:30 -07:00
Florian Loitsch 784e244111 dart2js: add isConstantsHolder to Holder class.
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1233263003 .
2015-07-17 19:27:29 +02:00
Alan Knight e2e50d30a5 Suppress line splitter test on Chrome/FF on Windows
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1236793011 .
2015-07-17 10:16:39 -07:00
John McCutchan c9dd867c1f Add path filter
BUG=
R=pquitslund@google.com

Review URL: https://codereview.chromium.org//1232763004 .
2015-07-17 10:06:29 -07:00
keertip c2c018e44a update dartdoc tag in DEPS
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1232123008 .
2015-07-17 09:34:18 -07:00
Sigmund Cherem 4ad37a6107 dart2js: fix dependency tracking for deferred loading when types are only used
in type arguments by the main fragment. (fix #23853)

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1244513003 .
2015-07-17 08:46:00 -07:00
Lasse R.H. Nielsen 848f6c978c Do "path normalization" when creating a URI.
Path normaliztion removes '.' and '..' segments from a URI. Such relative references are only intended for URI References, and Uri References are only intended for resolving against a full URI.

We do path normalization on all URIs that have a scheme, authority or an absolute path, and partial normalization on what are really just relative paths. The partial normalization can leave ".." at the start of the path.

The URI reference resolution algorithm doesn't work as expected for a URI ending in "..". Resolving "./foo" wrt. a base of "/a/.." results in  "/a/foo" - this is avoided when the base is path normalized before it's used.

This also fixes the "normalizePath" function which currently removes leading '..' segments, contrary to its documentation. It also makes the function redundant since all URI paths are normalized automatically.

See discussion on http://dartbug.com/23688

Also fix bug in the removeDotSegments function.

R=floitsch@google.com

Review URL: https://codereview.chromium.org//1224263009.
2015-07-17 17:08:36 +02:00