Commit graph

33342 commits

Author SHA1 Message Date
Natalie Weizenbaum 5778d87dd2 Forward stack traces through stream transformers.
R=lrn@google.com

Review URL: https://codereview.chromium.org//1302363003 .
2015-08-27 11:38:27 -07:00
John McCutchan e2d2eed004 Fix old dart2js patch reference in service extensions
BUG=

Review URL: https://codereview.chromium.org//1311133010 .
2015-08-27 11:36:59 -07:00
John McCutchan 7052bd6bed Rework service extensions to be safe
- When scheduling a service extension to be invoked, store the closure in an array held in the isolate.
- At the tail of IsolateMessageHandler::HandleMessage, invoke all pending service extension closures.

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

Review URL: https://codereview.chromium.org//1299493007 .
2015-08-27 11:23:39 -07:00
Daniel Andersson 51de0c8ff4 Refactor skipped code functions interface.
Prepares for parallel marking by encapsulating the skipped code functions set, and moving the finalization out to the GCMarker, after all marking is done.

Also changes the interface in the visitor interface to make it less coupled with the representation of the set.

BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org//1287463003 .
2015-08-27 11:19:19 -07:00
John McCutchan 021d7c0aa5 Make build incremental
- Make sure observatory's index.html is touched.
- Switch generate_snapshot_bin to have only one output (a timestamp file)

Fixes #24220

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

Review URL: https://codereview.chromium.org//1304953004 .
2015-08-27 11:14:13 -07:00
Srdjan Mitrovic 42f32322cb Change trail from GrowableObjectArray to ZoneGrowableArray.
BUG=
R=regis@google.com

Review URL: https://codereview.chromium.org//1309113004 .
2015-08-27 09:56:36 -07:00
Asger Feldthaus 7624ec59da Revert "dart2js cps: Use dummy constant in dummy receiver optimization."
This reverts commit 4d20c86fd0.

BUG=

Review URL: https://codereview.chromium.org//1314373003 .
2015-08-27 17:08:59 +02:00
William Hesse 9163181e0e Remove custom .boto file path in tools.
BUG=

TBR=ricow@google.com

Review URL: https://codereview.chromium.org//1315343002 .
2015-08-27 11:36:05 +02:00
Asger Feldthaus 4d20c86fd0 dart2js cps: Use dummy constant in dummy receiver optimization.
Also addresses some other post-commit comments from
https://codereview.chromium.org/1312393002

BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org//1317903002 .
2015-08-27 11:34:00 +02:00
Florian Schneider bad2786f6c VM: Don't depend on unoptimized code when inlining and creating deoptimization info.
This is the first of two steps of removing the requirement to have unoptimized
code when optimizing a function.  This would allow optimizing a function without
generating unoptimized code first.

The only remaining dependency is block reordering (BlockScheduler::AssignWeights) since
the edge counters are currently found in the PC descriptors array associated with
unoptimized code.

BUG=
R=asiva@google.com, iposva@google.com

Review URL: https://codereview.chromium.org//1314143002 .
2015-08-27 11:32:50 +02:00
Asger Feldthaus ca9c113313 dart2js cps: Let effective constant expressions propagate further.
Constants would typically fail to propagate into an argument of a method
call in cases where the receiver of the call might be null. Constants
can safely propagate across the unsafe method lookup.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1315333002 .
2015-08-27 11:22:49 +02:00
John McCutchan 00d96fbd03 Handle null isolate case in service tracing
BUG=

Review URL: https://codereview.chromium.org//1315243002 .
2015-08-26 17:02:17 -07:00
John McCutchan c9a4013553 More logging for pause tests
BUG=

Review URL: https://codereview.chromium.org//1310863004 .
2015-08-26 16:45:36 -07:00
Matthias Hausner 62e9d05668 Introduce per-isolate cache for compile time constants
Compile-time constant values are maintained in a cache, keyed
by script and token position. When the same code is compiled
again later, e.g. by the optimizing compiler, the value is
found in the cache and does not need to be computed again.

In this version, the key is a string concatenated from the
script url and the token position. That’s probably more overhead
than we want.

Added two compiler stat counters for number of cached constants
and number of cache hits. Running dart2js to compile a hello world
program results in about 1400 cached values and 85 cache hits.

BUG=
R=srdjan@google.com

Review URL: https://codereview.chromium.org//1308073005 .
2015-08-26 16:17:20 -07:00
Dan Rubel c0fe214c47 show all available import completion suggestions - fixes #23955
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1317023002 .
2015-08-26 17:37:01 -04:00
Dan Rubel bd95b13b90 improve keyword suggestions - fixes #24016
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1303233008 .
2015-08-26 17:34:57 -04:00
Todd Turnidge 7f0916d16e Use --trace-service to help diagnose flaky tests.
BUG=

Review URL: https://codereview.chromium.org//1318823002 .
2015-08-26 13:36:56 -07:00
Srdjan Mitrovic b5c256b85f Use zone allocated C-strings instead of String heap objects to construct signature symbols
BUG=
R=koda@google.com

Review URL: https://codereview.chromium.org//1313363005 .
2015-08-26 13:30:55 -07:00
John McCutchan bc988493fa Set paused_timestamp before notifying
BUG=

Review URL: https://codereview.chromium.org//1317653003 .
2015-08-26 11:53:39 -07:00
Ivan Posva 7ac684d461 - Fix XCode build, by making sure that we do depend on boringssl
where needed.

BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1304373008 .
2015-08-26 11:35:06 -07:00
Todd Turnidge fc9d9a495d Adding debugging output to flaky tests to help diagnose problems on the bots.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1320693002 .
2015-08-26 11:33:47 -07:00
Brian Wilkerson c3b12a65ba Add a task to partially resolve a compilation unit
R=leafp@google.com, paulberry@google.com

Review URL: https://codereview.chromium.org//1321523002 .
2015-08-26 11:22:03 -07:00
Todd Turnidge 1587f88c2d Change how instance/list/map references are displayed when expanded.
The goal is to not indent as deeply as we were doing before.  Stop
using tables.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1314763005 .
2015-08-26 11:20:08 -07:00
Ryan Macnak cc483aaa3d Update manual inspector test.
R=turnidge@google.com

Review URL: https://codereview.chromium.org//1306743004 .
2015-08-26 11:16:56 -07:00
Ryan Macnak 3fbb328065 Roll Dartium blink to r201240 "Adjust for additional parameter to Dart_Initialize."
Review URL: https://codereview.chromium.org//1318783002 .
2015-08-26 11:08:17 -07:00
Ryan Macnak c3abcd8f93 Add argument to Dart_Initialize for precompiled instructions.
R=asiva@google.com

Review URL: https://codereview.chromium.org//1311963002 .
2015-08-26 11:04:27 -07:00
Dan Rubel f61faa2fbd exclude instance suggestions in static context - fixes #22932
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1319753002 .
2015-08-26 14:00:03 -04:00
John McCutchan d0882dd363 Remember when an isolate was paused and subtly display it in Obseravatory
- Display paused time as tooltip over "paused" word.
- Send a timestamp with every ServiceEvent.
- Unit tests verifying that paused on start, exit, and breakpoint timestamps are stable.
- Remember the pause time in DebuggerEvent.
- Remember the pause time in MessageHandler.
- Updated service protocol documentation.

R=turnidge@google.com

Review URL: https://codereview.chromium.org//1311503004 .
2015-08-26 10:57:59 -07:00
William Hesse 654c573c14 Update co19 status file for Firefox 40 on windows
BUG=
TBR=kustermann@google.com

Review URL: https://codereview.chromium.org//1310073005 .
2015-08-26 19:48:33 +02:00
Brian Wilkerson 335b87c701 Integrate recent parameter override logic
R=leafp@google.com, paulberry@google.com, vsm@google.com

Review URL: https://codereview.chromium.org//1311433005 .
2015-08-26 10:35:34 -07:00
John McCutchan 1015c7f4ff Add --print-metrics vm flag for printing metrics to console
BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org//1303033005 .
2015-08-26 10:05:26 -07:00
William Hesse 891c36a8e0 Do not request a client certificate as the default for SSL.
BUG=

TBR=kustermann@google.com

Review URL: https://codereview.chromium.org//1313393003 .
2015-08-26 18:48:24 +02:00
Konstantin Shcheglov 597f189eb4 Extension point for WorkManagerFactory(s).
I'm not quite happy that internal classes get into the extension point declaration.
But I guess that because of the nature of the work WorkManager(s) are doing, we have to have significant exposure to internals.

Also, onAnalysisOptionsChanged() and onSourceFactoryChanged()... these probably are better to implement as streams in InternalAnalysisContext.
Thoughts?

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

Review URL: https://codereview.chromium.org//1311773005 .
2015-08-26 09:45:19 -07:00
keertip a6d128832c update to dartdoc 0.6.1
BUG=
R=pquitslund@google.com

Review URL: https://codereview.chromium.org//1321513002 .
2015-08-26 09:35:40 -07:00
Asger Feldthaus 82e95e3053 dart2js cps: Use a global counter to generate hash codes.
This gives almost 30x compile-time speedup on ImagingGaussianBlurOnce.

Based on profiling with Observatory, it seems to be a performance bug
in how hash codes are stored on objects. The majority of time is spent
in Object_GetHash, which does not compute a hash, but looks it up in a
weak hash table in the VM.

R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1311673009 .
2015-08-26 16:47:13 +02:00
Asger Feldthaus 0216e21efc dart2js cps: Use 'this' instead of receiver-arg when possible.
This fixes a bug in how intercepted super calls were handled,
and enables the redundant receiver optimization.

BUG=
R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1312393002 .
2015-08-26 16:06:41 +02:00
William Hesse 13bf8ff9f8 Breaking Change: merge BoringSSL branch into master
This replaces the NSS secure networking library from Mozilla
with the BoringSSL library from Google. This library, based
on OpenSSL, reads certificates from files in PEM format, rather
than storing certificates and keys in a SQLite database, the
way NSS does. There will be a blog post, changelog entries,
and other documentation of the breaking changes.

Review URL: https://codereview.chromium.org//1319703002 .
2015-08-26 14:42:12 +02:00
Karl Klose 9a3b5614de dart2js: Inline Primitives.identicalImplementation into identical patch.
This gets rid of one layer of indirection that was not necessary and implements the conditional completely in JavaScript which avoids the potential for recursion when generating the intermediate representation for boolean conversion.

R=kmillikin@google.com

Review URL: https://codereview.chromium.org//1290433002 .
2015-08-26 11:25:12 +02:00
Kevin Millikin e99fb4fc26 dart2js: Use the NoInline annotation on getInterceptor in the JS runtime.
This also requires fixing NoInline to work for the JS runtime.
Previously it was ignored.

R=karlklose@google.com
BUG=

Review URL: https://codereview.chromium.org//1315083002 .
2015-08-26 10:56:14 +02:00
William Hesse 4c8049780c Switch dartium.deps to use the googlesource.com mirror of github/dart-lang repos.
BUG=
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1308403006 .
2015-08-26 10:32:17 +02:00
Daniel Andersson cab0033667 Add safepointing to the GC
BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org//1292353004 .
2015-08-25 18:20:27 -07:00
Stephen Adams 6f197ac7ff cps_ir can't handle resource_http_test
TBR=het@google.com

Review URL: https://codereview.chromium.org//1313883005 .
2015-08-25 18:03:39 -07:00
Siva Annamalai 84a3560d0e Add '*.intermediate' to .gitignore
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1304413005 .
2015-08-25 15:58:19 -07:00
Regis Crelier a799659bcf Use correct scope to lookup saved async context variable.
Stop inserting aliases in all intermediary scopes for explicitly captured
variables.
Use proper lookup function in async code to access async completer variable.
Add asserts verifying async variables existence.

R=hausner@google.com

Review URL: https://codereview.chromium.org//1314993002 .
2015-08-25 15:46:17 -07:00
Daniel Andersson 44d4d84be8 On Windows, set current thread in TLS to NULL before deleting the thread.
This mimics the behavior of the pthreads destructor protocol:
"At thread exit, if a key value has a non-NULL destructor pointer, and the thread has a non-NULL value associated with that key, the value of the key is set to NULL, and then the function pointed to is called with the previously associated value as its sole argument."

BUG=
R=iposva@google.com

Review URL: https://codereview.chromium.org//1309563004 .
2015-08-25 15:34:52 -07:00
Regis Crelier e9614a6308 Add missing support in disassembler for recently introduced new variable
decriptor kind.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1316813002 .
2015-08-25 14:57:55 -07:00
Srdjan Mitrovic 5985718945 Clean up default parameter computation in parser
BUG=
R=hausner@google.com

Review URL: https://codereview.chromium.org//1316763002 .
2015-08-25 14:54:48 -07:00
Siva Annamalai 810823f8d5 Use the zone in ApiNativeScope for allocating objects in the ApiMessageReader instead of passing in an allocator.
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1319583003 .
2015-08-25 14:48:41 -07:00
Harry Terkelsen 1bdd43c233 Disable resource_http_test in Dartium and DRT
TBR=iposva@google.com

Review URL: https://codereview.chromium.org//1315643003 .
2015-08-25 14:39:49 -07:00
Paul Berry 9d6898104e Fix warning in element_handle.dart.
Commit 4bd6b4b048 added the abstract
method appendToWithoutDelimiters() to ParameterElement, which is
implemented in ParameterElementMixin.  However, one derived class was
not updated to make use of the new mixin: ParameterElementHandle.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org//1308713004 .
2015-08-25 13:27:25 -07:00