Commit graph

36931 commits

Author SHA1 Message Date
John McCutchan ecaf2c99b8 Add Changelog entry for CL 1710593002
BUG=

Review URL: https://codereview.chromium.org/1759053003 .
2016-03-03 07:12:13 -08:00
Terry Lucas 439b59b1fc Fixed dart2js compilation and udpate obsolete analyzer for co19
TBR=alanknight@google.com,jacobr@google.com

Review URL: https://codereview.chromium.org/1757293002 .
2016-03-03 06:23:31 -08:00
Terry Lucas 8d12df1e77 Changes to tests and status file for the 45 roll w/ regenderated sdk/libs
TBR=alanknight@google.com,jacobr@google.com

Review URL: https://codereview.chromium.org/1746623002 .
2016-03-03 05:33:46 -08:00
Asger Feldthaus 8c1475f186 dart2js cps: Bugfix in insert refinement pass.
The insert refinements pass would refine the interceptor instead of the
Dart receiver, when the interceptor is the "this" parameter.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org/1754253002 .
2016-03-03 13:49:16 +01:00
Søren Gjesse 9431f0b32c Fix Mac OS check for terminal input
Closes #25862
BUG= https://github.com/dart-lang/sdk/issues/25862

TBR=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1760033003 .
2016-03-03 10:40:12 +01:00
Srdjan Mitrovic 27a44122d9 Disable background compilation .. again.
BUG=
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1762543002 .
2016-03-02 18:04:00 -08:00
Srdjan Mitrovic 5d4b7b69bb Turn on background compilation
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1760763002 .
2016-03-02 17:32:27 -08:00
Kevin Moore 9f74470493 readme and pubspec tweaks
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1755913005 .
2016-03-02 17:10:50 -08:00
Kevin Moore 0ed4df8155 import cleanup
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1759483004 .
2016-03-02 17:10:01 -08:00
Srdjan Mitrovic b3405d5ebc Add --no-background-compilation to tests that expect to run code in optimized form
BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/1759973002 .
2016-03-02 16:30:58 -08:00
Matthias Hausner 095038829c Fix co19 status
TBR

Review URL: https://codereview.chromium.org/1758113002 .
2016-03-02 15:57:58 -08:00
Regis Crelier af43180fb6 Triage co19 failures in vm and reference newly filed (or existing) issues.
R=hausner@google.com

Review URL: https://codereview.chromium.org/1756733004 .
2016-03-02 15:22:47 -08:00
Leaf Petersen 7d2976c7d5 Add instantiate method on ParameterizedType and InterfaceType,
and deprecate the old substitute4 in favor of instantiate.

BUG=
R=brianwilkerson@google.com, jmesserly@google.com

Review URL: https://codereview.chromium.org/1758913002 .
2016-03-02 15:06:38 -08:00
John McCutchan cd6485d380 Fix precompiler
BUG=
R=srdjan@google.com

Review URL: https://codereview.chromium.org/1755353002 .
2016-03-02 14:01:42 -08:00
Konstantin Shcheglov c9e82c7e67 Fill the new index in Analysis Server.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1749333004 .
2016-03-02 14:00:17 -08:00
Florian Schneider 48b0183926 Make precompiler work with product mode.
For now, change compilation-related flags to be regular
command line options. They won't affect the size of the
precompiled runtime anyway since the compiler is not included
there.

Also introduce a separate switch for precompiled runtime. This can be
 used instead of the macro since it is a compile-time constant in the
 precompiled runtime.

BUG=

Review URL: https://codereview.chromium.org/1759913002 .
2016-03-02 13:59:54 -08:00
Terry Lucas d094857c12 Fixed createImageData and added RequestAnimationFrameCallback for compat
TBR=jacobr@google.com

Committed: b524161f8f

Review URL: https://codereview.chromium.org/1753813005 .
2016-03-02 13:23:22 -08:00
Leaf Petersen ce806bf307 Instantiate interface types to bounds.
Refactors some common code into TypeSystem, and makes strong mode
interface types instantiate to bounds when no type arguments are
passed.

Fixes https://github.com/dart-lang/sdk/issues/25877 .

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1756673002 .
2016-03-02 13:18:15 -08:00
Konstantin Shcheglov faf59757c8 Optimize ElementId search, rename the test file.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1755313002 .
2016-03-02 13:02:52 -08:00
Paul Berry 457df30acf Fix handling of task model circularities.
When a circularity is found during task model evaluation, we need to
continue evaluating task inputs (skipping the inputs that contribute
to the circularity) in order to find the largest possible strongly
connected component that contributes to the circularity.  Previously,
the skipping logic was implemented by comparing WorkItem.target and
WorkItem.spawningResult.  However, since WorkItems are equality
compared using WorkItem.target and WorkItem.descriptor, it was
possible that a WorkItem might not have been skipped when it should
be.

This CL updates the skipping logic so that it uses WorkItem.target and
WorkItem.descriptor to decide which WorkItems to skip.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1748933005 .
2016-03-02 12:27:32 -08:00
Srdjan Mitrovic 4128c31916 Add thread safe constant canonicalization.
BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/1754813004 .
2016-03-02 12:12:48 -08:00
Konstantin Shcheglov 6d1bf8b0fa Initial new index implementation.
Only getRelations() is implemented, and maybe not the most performant
implementation yet.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1755263002 .
2016-03-02 12:05:05 -08:00
John McCutchan 58e0ef13fa Add source position information to profile
- Fix bug in inlined call token positios.
- Add ProfileFunctionSourcePosition for tracking source positions within functions.
- Keep a list of ProfileFunctionSourcePosition in each function.
- Add unit test helper functions.
- Add unoptimized unit tests that verify source positions in function profiles.
- Add optimized/inlined unit tests that verify source positions in function profiles.

R=srdjan@google.com

Review URL: https://codereview.chromium.org/1758653003 .
2016-03-02 12:02:28 -08:00
Matthias Hausner 5a0a097188 Fix issues in name resolution
Looking up a name x in the library scope or in a prefix can also return
the setter name x=. There were several situations that were not handled
right.

- a getter x and a setter x= should not result in a duplicate name
  error (and thus a resolution error at runtime).

- when looking for an untangled name x but a setter x= is found first,
  keep looking for x.

BUG=25625
R=regis@google.com

Review URL: https://codereview.chromium.org/1752203002 .
2016-03-02 10:44:28 -08:00
Paul Berry f24c3609f0 Bump analyzer version in preparation for publishing an alpha release.
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1753353002 .
2016-03-02 10:37:29 -08:00
Todd Turnidge 45ec466ce5 Make getSourceReport public.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1753903003 .
2016-03-02 10:26:27 -08:00
Siva Annamalai e091d17fd9 Fix windows build break.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1760673002 .
2016-03-02 10:20:55 -08:00
John McCutchan 59873fa42a Support for running service tests against sky_shell
BUG=
R=turnidge@google.com

Review URL: https://codereview.chromium.org/1752523002 .
2016-03-02 10:15:28 -08:00
Todd Turnidge 2284cfe839 Simplify pause_idle_isolate_test and add more debugging output.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1761503002 .
2016-03-02 10:02:36 -08:00
Ryan Macnak 48af897a3e When a catch is unreachable, use the canonical empty array instead of null as its type array.
R=iposva@google.com

Review URL: https://codereview.chromium.org/1753053003 .
2016-03-02 09:46:21 -08:00
pq e88cfa267d DEPS bump to pull in latest linter.
BUG=

Review URL: https://codereview.chromium.org/1761493002 .
2016-03-02 09:39:16 -08:00
Siva Annamalai 3067a27a8c Make the lock/unlock and Enter/Exit methods in Mutex and Monitor private so taht we always use the locker objects for operating on mutexes/monitors.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1758503002 .
2016-03-02 09:20:40 -08:00
Brian Wilkerson 06774c315f Remove invalid URI in an attempt to fix a windows bug.
Review URL: https://codereview.chromium.org/1750773002 .
2016-03-02 08:31:21 -08:00
Terry Lucas e1a33e9981 Moved ChromiumSubscribeUniform to web_gl
Fixed to return null if dictionary returned form blink is null
Cleanup up logging/error reporting

TBR=alanknight@google.com,jacobr@google.com

Committed: 01f6e4ed0f

Review URL: https://codereview.chromium.org/1752983003 .
2016-03-02 08:15:45 -08:00
Terry Lucas f22c1f6e83 Revert "test of dart2js w/ regen'd sdk/libs"
This reverts commit 083280b171.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1747283005 .
2016-03-02 04:34:19 -08:00
Terry Lucas 083280b171 test of dart2js w/ regen'd sdk/libs
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1756653003 .
2016-03-02 03:39:14 -08:00
Johnni Winther 0a3de942ee Add --use-new-source-info option
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1750393002 .
2016-03-02 10:19:04 +01:00
Zachary Anderson a28bfa9879 Fixes error handling, leaks in secure sockets.
- Peer certificate was leaked, cert passed to bad cert callback could
  could become stale.
  - Added finalizer.
- Failing to call Destroy would leak various things.
  - Added finalizer.
- ThrowIfError in initialization would fail to deallocate various
  things on an error.
  - Replaced with explicit checks, and deallocation where needed.

R=iposva@google.com, whesse@google.com

Review URL: https://codereview.chromium.org/1746363002 .
2016-03-01 22:12:20 -08:00
Konstantin Shcheglov 089e1ba737 Add codeOffset/codeLength properties to ElementImpl.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/1753963003 .
2016-03-01 21:04:17 -08:00
John Messerly 02f888711c fix ResolutionCopier to copy staticInvokeType/propagatedInvokeType
(these will be needed for DDC generic methods)

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1754873002 .
2016-03-01 17:30:09 -08:00
John Messerly 1226c387b7 fix ResolutionCopier.visitAdjacentStrings
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1749423002 .
2016-03-01 17:28:16 -08:00
Ryan Macnak f12b2edf3d Don't automatically exclude closure functions from potential removal of the stack overflow check.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1757643002 .
2016-03-01 17:18:23 -08:00
pq 9ea17184ad Add @overrides to (a lot of) analyzer.
This gets us roughly half+ way there.  We should defintely consider automating this to speed up the rest.  (Even with the quick-fix it's VERY tedious and slow going.)

Once we've done this in bulk, I'd like to add the  `annotate_overrides` lint to analyzer and server `.analysis_options`.

BUG=
R=brianwilkerson@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org/1749143003 .
2016-03-01 16:33:20 -08:00
Terry Lucas d9e426ea0d Used python bad syntax
TBR=jacobr@google.com

Committed: c1b9e36999

Review URL: https://codereview.chromium.org/1748123004 .
2016-03-01 16:25:49 -08:00
Terry Lucas 6aff6fb1ba Fixed Dictionary emitted as interface and dictionary conversion with a null map
TBR=alanknight@google.com,jacobr@google.com

Committed: a61bd2f7b2

Review URL: https://codereview.chromium.org/1752153002 .
2016-03-01 15:55:13 -08:00
Ryan Macnak 6917ae7409 Address static warning in precompiler compiler configuration.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1751253002 .
2016-03-01 15:51:35 -08:00
Ryan Macnak 3fd5ffdbd4 Make tools/build.py -cprecompiler -rdart_precompiled green:
- Create a separate compilation output directory for each VMOptions varient so they can run in parallel.
- Run both the snapshotter and assembler from the test harness instead of a wrapper script so crashes in the snapshotter are correctly identified by the test harness.
- Delete the assembly source for the precompiled shared library as we go to limit space required to run the test suite (now 61GB for X64 release).
- Remove the VMOption --optimization-counter-threshold in when running precompilation tests.
- Don't look at a library prefix's import list during load(), it was removed by tree-shaking.
- Trace types of TypeParameters.
- Trace types of a Function's owner and parent.
- Update status file for remaining 4 failures under http://dartbug.com/25892.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/1732323005 .
2016-03-01 15:19:11 -08:00
Srdjan Mitrovic 3deae0d887 Allow regexp functions to be optimized in background
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1751173002 .
2016-03-01 14:37:49 -08:00
Siva Annamalai 1ba14b5b1d Check for Thread::Current being non NULL as in some situations (shutdown) it could be NULL.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1751913003 .
2016-03-01 14:06:26 -08:00
Paul Berry ff6a744f38 Implement forwards compatibility for summary enums.
If an attempt is made to read an unrecognized enum value, then rather
than crashing, we will read the default (first) value of the enum type.

This facilitates forwards compatibility by ensuring that if a new enum
value is added in the future, older code will still be able to read the
resulting summary files without crashing.

R=scheglov@google.com

Review URL: https://codereview.chromium.org/1747413002 .
2016-03-01 13:28:10 -08:00