Commit graph

41352 commits

Author SHA1 Message Date
Lasse R.H. Nielsen 64e863a5cf Mark new tests using deferred imports as crashing with hot reload.
Review URL: https://codereview.chromium.org/2335933004 .
2016-09-13 11:41:43 +02:00
Lasse R.H. Nielsen bcdf0a1f12 Make dart2js not consider dart:io there if the library is unsupported.
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2321973002 .
2016-09-13 09:21:54 +02:00
Stephen Adams 8495283e25 Reuse expensive string in js_rti
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2326943003 .
2016-09-12 17:22:27 -07:00
Matthias Hausner 3829c00e10 Improve compile time constant evaluation
Eliminate the need to invoke an execute-once function to compute
type literals and implicit closures. This reduces the number of
execute-once invocations from 6000 to 60 when compiling all of
the greentea sources, about 1MB of generated code. Sadly, no
significant runtime gain was observed.

Also simplify the caching of computed compile-time constants.

Reinstate the compiler stat counter for number of constants cached.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2338463003 .
2016-09-12 16:23:00 -07:00
Konstantin Shcheglov 4e95a1b8b6 Remove LibraryElement.isUpToDate().
It is not used anywhere.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2335843003 .
2016-09-12 15:03:58 -07:00
Adam Barth 22010919e9 Update to use mx_process_self()
The map and unmap calls now need mx_process_self() instead of zero as the
process handle.
2016-09-12 14:06:33 -07:00
Konstantin Shcheglov 1a60db3278 Tweaks for Scope comments.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2333873002 .
2016-09-12 14:02:49 -07:00
Brian Wilkerson a5ee525e14 Add support for accessing field formal parameters in the initializer list of constructors
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2335693002 .
2016-09-12 09:48:34 -07:00
William Hesse b5462caf64 Update co19 status for jsshell.
BUG=
R=eernst@google.com

Review URL: https://codereview.chromium.org/2330083002 .
2016-09-12 17:58:51 +02:00
William Hesse 87ff346d2b Update co19 status for chrome and firefox.
BUG=
R=eernst@google.com

Review URL: https://codereview.chromium.org/2332823002 .
2016-09-12 17:20:21 +02:00
Florian Loitsch 899891e5c5 Update tests.
Tests were testing the output of the async/await transformation which got a fix in 0683f81979 (https://codereview.chromium.org/2322323002 ),not passing an unnecessary additional argument.

Fixes #27295.

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

Review URL: https://codereview.chromium.org/2335583003 .
2016-09-12 15:09:52 +02:00
William Hesse 4090e4ad90 Update co19 status for dart2js d8 and jsshell.
BUG=
R=floitsch@google.com

Review URL: https://codereview.chromium.org/2333683002 .
2016-09-12 13:27:00 +02:00
Konstantin Shcheglov 9494b2e394 Remove Scope.errorListener.
There are no references to ".errorListener" internally.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2329313002 .
2016-09-11 20:18:39 -07:00
Vijay Menon ab47c33f3d Bump pub version
We seem to be hitting an error on travis:

https://travis-ci.org/dart-lang/sdk/jobs/159136296

  The pubspec for analyzer 0.28.2-alpha.0 from path has version 0.29.0-alpha.0.
  The command "pub get" failed and exited with 65 during .

Looks like the analyzer version bumped forward and was incompatible
with the pubspec.lock entry?  Is there a way to avoid this?

TBR=rnystrom@google.com,jmesserly@google.com

Review URL: https://codereview.chromium.org/2336443002 .
2016-09-11 20:06:36 -07:00
Konstantin Shcheglov 663a3e810c Reapply abc5051854: Remove 'Element.docRange'.
I also marked the corresponding information in summaries as @deprecated
and made a small tweak to the generator so that it knows that the ids
of deprecated fields are still used.

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

Review URL: https://codereview.chromium.org/2330813002 .
2016-09-11 09:41:53 -07:00
Konstantin Shcheglov e832ab5248 Remove deprecated ChangeSet.deletedSources.
It is not used internally.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2331753002 .
2016-09-11 09:37:07 -07:00
Konstantin Shcheglov f658a7de42 Remove IncrementalScanner and IncrementalParser.
This code has never been used AFAIK.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2330803002 .
2016-09-11 09:32:13 -07:00
Brian Wilkerson fa1b80fd82 Remove references to deprecated code
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2331743002 .
2016-09-10 11:28:43 -07:00
Brian Wilkerson 6c448b6938 Move exception support to its own library
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2328043002 .
2016-09-10 11:04:19 -07:00
Florian Loitsch 0683f81979 Async-helper only takes 3 arguments.
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2322323002 .
2016-09-10 13:10:36 +02:00
Harry Terkelsen 62ec3cf5aa fix other files in kernel after roll
Review URL: https://codereview.chromium.org/2323373003 .
2016-09-09 16:58:56 -07:00
Harry Terkelsen e4f1526449 roll kernel to latest
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2329123002 .
2016-09-09 16:35:31 -07:00
Ryan Macnak fcda790b9c Fix bad origin check.
localhost.malicious.com is not localhost.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2298943004 .
2016-09-09 16:34:03 -07:00
Harry Terkelsen 53870d1914 build kernel for the entire program after resolution
Rasta needs to have access to elements that aren't resolved by normal
dart2js. We need to let it add elements to the resolution queue so
it can get all the information it needs.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/2324213003 .
2016-09-09 16:06:22 -07:00
Vijay Menon 4942dcce50 Fix pkgbuild path for dev_compiler
TBR=whesse@google.com

Review URL: https://codereview.chromium.org/2330603002 .
2016-09-09 15:16:44 -07:00
Florian Schneider 60e6faa7c3 VM: Zero-cost try-finally with an empty finally-block.
Consider code like

try {
    something();
} finally {
    assert(expr);
}

The compiler de-sugars this into

try {
  something();
} catch (_) {
  rethrow;
} finally {
  assert(expr);
}

In unchecked mode this leaves an empty finally-block, but we would still
have the overhead of the try-catch. This CL avoids this unnecessary overhead
by making try-finally with an empty finally zero-cost.

BUG=#27274
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2322853003 .
2016-09-09 14:00:47 -07:00
Alan Knight 42f8ab2d6a Fix dataTransferItemList indexing
BUG=

Review URL: https://codereview.chromium.org/2326113002 .
2016-09-09 12:28:59 -07:00
Konstantin Shcheglov 7fd0aa00de Keep only InterfaceType(s) in resynthesized lists of interfaces and mixins.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2329483003 .
2016-09-09 11:45:10 -07:00
Konstantin Shcheglov 6bee780067 Remove PrintWriter and PrintStringWriter from java_core.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2314403008 .
2016-09-09 11:32:43 -07:00
Konstantin Shcheglov 0e95d9266f Remove JavaString from java_core.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2328993002 .
2016-09-09 10:03:30 -07:00
Carlo Bernaschina 1b4afdab2d Restored SVGs in Observatory script-inset element
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2328943003 .
2016-09-09 09:58:07 -07:00
Ryan Macnak ebc0c261a5 Minor UI tweaks.
R=cbernaschina@google.com

Review URL: https://codereview.chromium.org/2324833005 .
2016-09-09 09:55:50 -07:00
Zachary Anderson dbcd602b18 Adds InitialRSS benchmark
Measuring memory footprint of the VM after initialization.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2329003002 .
2016-09-09 09:47:56 -07:00
Ryan Macnak 3a63f4890c Fix some errors from UBSan.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2325863002 .
2016-09-09 09:28:27 -07:00
Brian Wilkerson 6abd185f93 Remove unused instance field
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2329463003 .
2016-09-09 09:17:19 -07:00
Brian Wilkerson 5bd4de469e Clean up warnings and hints
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2324463006 .
2016-09-09 09:09:59 -07:00
Konstantin Shcheglov f5144faed8 Remove JavaArrays from java_core.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2329483002 .
2016-09-09 09:03:25 -07:00
Vijay Menon e52613f151 Fix error message
R=jacobr@google.com

Review URL: https://codereview.chromium.org/2329493002 .
2016-09-09 09:02:50 -07:00
Konstantin Shcheglov 8c11f5ec0b Remove JavaPatternMatcher from java_core.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2329463002 .
2016-09-09 08:59:48 -07:00
Konstantin Shcheglov 9cf47ce04c Remove parseUriWithException() and URISyntaxException.
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2321263003 .
2016-09-09 08:30:01 -07:00
Brian Wilkerson fe02411930 Remove several references to JavaFile
R=scheglov@google.com

Review URL: https://codereview.chromium.org/2323173002 .
2016-09-09 07:45:40 -07:00
William Hesse 9aec21c3cc Update homebrew updater script to use 64-bit dartium
BUG=
R=lrn@google.com

Review URL: https://codereview.chromium.org/2321393002 .
2016-09-09 13:45:33 +02:00
William Hesse 023edb6806 Revert "Update co19 to revision d4767b4caea3c5828ad8e053cd051d44a59061af"
This reverts commit d08c2b967b.

BUG=
R=eernst@google.com

Review URL: https://codereview.chromium.org/2300543004 .
2016-09-09 12:46:20 +02:00
Johnni Winther 8bdf7ab425 Compute ResolutionImpact directly from kernel, part 1 of ?
R=het@google.com

Review URL: https://codereview.chromium.org/2323733002 .
2016-09-09 09:24:47 +02:00
Konstantin Shcheglov 991afce3bc Remove JavaSystem from java_core.
It is not used internally at all.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2324893003 .
2016-09-08 17:44:33 -07:00
Konstantin Shcheglov cfb75bfbbd Replace try/fail/catch for EvaluationException with expect(throws).
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2324023002 .
2016-09-08 17:42:27 -07:00
Bob Nystrom 33ff9a3d4f Fix type errors in sort().
If a comparer isn't provided, it was silently assuming the element type
implements Comparable, even though that isn't required. Fixed to add a
manual cast at each comparison.

A stricter faster approach might be to check that the type argument
itself is a type that implements Comparable, but I don't know if that's
too pessimistic, or even possible to do.

R=vsm@google.com

Review URL: https://codereview.chromium.org/2311513002 .
2016-09-08 17:14:36 -07:00
Bob Nystrom 8c7dd5cd04 Cast InternalMap to Map.
It's a tag interface that doesn't declare that it implements Map but all
classes that implement it also implement Map, so just do a cast.

R=vsm@google.com

Review URL: https://codereview.chromium.org/2304323002 .
2016-09-08 16:23:45 -07:00
Konstantin Shcheglov e976e692be Replace and remove JavaException(s).
R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org/2326813002 .
2016-09-08 15:56:33 -07:00
Ryan Macnak 6137d020b9 AOT: Use a cid range check when possible to implement type tests.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2314133003 .
2016-09-08 15:25:08 -07:00