Commit Graph

3740 Commits

Author SHA1 Message Date
Ryan Macnak 6d69da223d Don't ignore result of EnsureIsFinalized in Precompiler; update helper scripts to use dart_precompiled.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/1464933002 .
2015-11-23 09:33:06 -08:00
Siva Annamalai 5c02b3d916 Update DEPS file.
Review URL: https://codereview.chromium.org/1464043002 .
2015-11-20 16:38:39 -08:00
Florian Schneider 64e71a0b2e VM: Make more globals constant where easily possible.
Remove -fdata-section again from the Linux build configuration: It prevented
some optimizations in gcc and clang - fewer things were recognized as constants.

Add const to pointers/arrays in some places to help compilers with determining
what is a constant.  A common pattern is strlen of a string literal const char*,
or an array of function pointers.

Tested with gcc 4.8.4 / clang 3.4 and improves code qualtiy + reduces binary size.

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

Review URL: https://codereview.chromium.org/1462953002 .
2015-11-20 10:52:07 +01:00
pq 9ae1265ff5 analyzer_cli move to SDK.
Tracking bug: https://github.com/dart-lang/sdk/issues/24731

Note, dartium build changes are in a separate CL: https://codereview.chromium.org/1453413006/

Some tests had to be disabled for want of mockito in the SDK; tracking their reimplementation is here: https://github.com/dart-lang/sdk/issues/24994

BUG=24731
R=whesse@google.com

Review URL: https://codereview.chromium.org/1459683003 .
2015-11-19 14:52:54 -08:00
Florian Schneider f0a35b3260 VM: Add dart_precompiled build target, a standalone VM without the JIT compiler.
This removes most of the compiler-related code from dart_precompiled:
x64 stripped binary size 13M -> 9.1M
ARM stripped binary size 12M -> 8.3M

The precompiled build defines the DART_PRECOMPILED macro. This
stubs out the public interface to the compiler/parser with empty
function bodies.

Use gcc options -ffunction-sections and --gc-sections to make the linker remove
unused functions/symbols.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1459443002 .
2015-11-19 10:13:16 +01:00
William Hesse f0242f10cd Start working on version 1.14 of Dart, now that 1.13 is released.
BUG=

Review URL: https://codereview.chromium.org/1459643003 .
2015-11-18 17:27:32 -08:00
Florian Loitsch 31c73aef7c Fix ambigous typos.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1443723004 .
2015-11-16 22:06:44 +01:00
Sam Rawlins 931ceef9b2 Fixing dart:html links _not_ found in docs.json
BUG= https://github.com/dart-lang/sdk/issues/23601
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1448963002 .
2015-11-16 10:18:23 -08:00
Sam Rawlins 974b461235 Update 145 DOM doc links to use proper Markdown; fix 56 broken links
BUG= https://github.com/dart-lang/sdk/issues/23601

Tested with dartdoc package at HEAD with new markdown package 0.9. Looks great.

R=alanknight@google.com

Review URL: https://codereview.chromium.org/1440183003 .
2015-11-13 14:43:49 -05:00
Alan Knight d3abcbaae0 Make GlobalEventHandlers not inherit from EventTarget
BUG=

Committed: https://github.com/dart-lang/sdk/commit/4d2191990e45240e9d9cb5cb31257c3b93f252a4

Review URL: https://codereview.chromium.org/1437033002 .
2015-11-13 10:19:23 -08:00
Alan Knight 65dfa74dd4 Revert "Make GlobalEventHandlers not inherit from EventTarget"
This reverts commit 4d2191990e.

BUG=

Review URL: https://codereview.chromium.org/1442463005 .
2015-11-12 15:29:46 -08:00
Harry Terkelsen 9a56c7ee56 dart2js: report output unit imports to dump-info
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1434103004 .
2015-11-12 14:10:49 -08:00
Alan Knight 4d2191990e Make GlobalEventHandlers not inherit from EventTarget
BUG=

Review URL: https://codereview.chromium.org/1437033002 .
2015-11-12 13:35:30 -08:00
Lasse R.H. Nielsen ed0b187d58 Add data-URI support class to dart:core (next to Uri).
R=floitsch@google.com, fschneider@google.com

Committed: https://github.com/dart-lang/sdk/commit/bbc66c2c41e61d82d6b85fdd16e2b0f1204c2a33

Review URL: https://codereview.chromium.org/1381033002 .
2015-11-12 13:02:20 +01:00
William Hesse d524cf4076 Update co19 test suite to commit Oct 1 2015 1d96fbbf94c534c9076f90bd4ebce6226169da48
Update co19-co19.status

Update co19 to tot.

Rename co19 language tests in status files, and roll co19 version.

BUG=
R=ricow@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org/1390533003 .
2015-11-11 10:47:46 +01:00
Harry Terkelsen da40ef9749 Update Angular to 64bd9639a14afd83bf3f03ffe82825be2c8e940c
R=sra@google.com

Review URL: https://codereview.chromium.org/1418453016 .
2015-11-10 16:47:25 -08:00
Jacob Richman 9340e83fcf DEPS AutoUpdate: webkit to 202699 (2015-11-06 10:33:30 -0800) jacobr@google.com
Hacks to make Dart List objects indistinguishable from Array even in the presence of multiple DOM isolates.
http://src.chromium.org/viewvc/blink?view=rev&revision=202699
2015-11-09 09:51:33 -08:00
Harry Terkelsen 5a0e4a5bb7 Update Angular to 63e853dcd7b6924c0ec6b363e3bf5e73f7be81b9
R=sra@google.com

Review URL: https://codereview.chromium.org/1428383003 .
2015-11-06 13:44:36 -08:00
Harry Terkelsen 5309ea506d Update Angular to 2d0c8f1b0e1aa3386a7c4b374db6f3f0f2f6a603
R=sra@google.com

Review URL: https://codereview.chromium.org/1409143012 .
2015-11-06 12:27:19 -08:00
Alan Knight 42b9d7b702 Serialize the data argument to History's state-related APIs.
BUG=

Review URL: https://codereview.chromium.org/1414903007 .
2015-11-05 16:23:44 -08:00
Terry Lucas 1492a5dedd Return the real error during custom element created failure
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1405963015 .
2015-11-05 13:49:47 -08:00
Alan Knight 73442c7cce Update Dartium DEPS for https://codereview.chromium.org/1428333002
BUG=

Review URL: https://codereview.chromium.org/1410203004 .
2015-11-05 11:31:03 -08:00
Terry Lucas 839ed4fbdd Updated DEPS to point to change in WebKit
TBR=whesse@google.com

Review URL: https://codereview.chromium.org/1432753002 .
2015-11-05 07:04:36 -08:00
Florian Loitsch be025b8412 Revert "Remove deprecated dart:profiler library"
This reverts commit 535a9715ac.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1415843008 .
2015-11-04 01:59:53 +01:00
Alan Knight a98388886a Wrap DomStringList, but don't wrap DomString[] as return types
BUG=

Review URL: https://codereview.chromium.org/1410853005 .
2015-11-03 11:22:37 -08:00
Alan Knight 53b506b1bf Fix indexed access for DataTransferItemList
BUG=

Review URL: https://codereview.chromium.org/1431543004 .
2015-11-03 09:35:22 -08:00
Kevin Moore 156bc53866 Hide implementation members in dart:html, dart:js and related libraries
Closes https://github.com/dart-lang/sdk/issues/24602

R=alanknight@google.com, jacobr@google.com, terry@google.com

Review URL: https://codereview.chromium.org/1416043008 .
2015-11-02 13:23:22 -05:00
Sigurd Meldgaard c0d5f73bd0 Introduce "platform configurations" to replace categories and libraries.dart.
A small writeup of the thoughts behind this concept can be found at:
https://docs.google.com/a/google.com/document/d/1WkqJVPphuThH8h2jDqBOb6h1iMkrkQIO7PF638-qlso/edit?usp=sharing

BUG=
R=floitsch@google.com, johnniwinther@google.com, whesse@google.com

Review URL: https://codereview.chromium.org/1408253006 .
2015-11-02 13:02:25 +01:00
Ryan Macnak 37dd876bf1 VM: Service isolate under precompilation.
- Include the embedder's portion of the service isolate's Dart code in precompiled snapshots. Swap it in as the root library when running precompiled instead of loading from source.
- Make linter happy with gen_snapshot.
- Fix profiler to consider Instructions in the VM isolate may have their corresponding Code in the regular isolate.
- Make non-functional service RPCs fail cleanly instead of crashing.

BUG=http://dartbug.com/24651
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1418833004 .
2015-10-29 15:15:46 -07:00
Jacob Richman 4dcc4a603a DEPS AutoUpdate: webkit to 202692 (2015-10-29 11:31:18 -0700) jacobr@google.com
Fix crash in devtools when the prototype of a polymer element is incorrectly considered a dart:html object instead of a JsObject.
http://src.chromium.org/viewvc/blink?view=rev&revision=202692
2015-10-29 11:36:54 -07:00
Jacob Richman 9075efbb43 Fix broken console evaluation in devtools when stopped at an async frame.
It appears that the Dart VM is now adding a local with invalid dart name :async_op
in some cases when the call stack is async.
This change filters out those variables from the list of locals.

BUG=
R=alanknight@google.com

Review URL: https://codereview.chromium.org/1424133002 .
2015-10-28 15:00:34 -07:00
Harry Terkelsen 2c9af2a562 roll dart2js_info
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1415413011 .
2015-10-28 14:20:39 -07:00
Jacob Richman 0a341e9790 DEPS AutoUpdate: webkit to 202691 (2015-10-27 08:11:15 -0700) johnmccutchan@chromium.org
Fix Dartium build
http://src.chromium.org/viewvc/blink?view=rev&revision=202691
2015-10-27 15:27:04 -07:00
Alan Knight 8831fb876e Deprecate new internal Dartium/JsInterop APIs that are public
BUG=

Review URL: https://codereview.chromium.org/1428593002 .
2015-10-27 10:55:12 -07:00
Jacob Richman 314785869e DEPS AutoUpdate: webkit to 202690 (2015-10-26 11:05:57 -0700) johnmccutchan@chromium.org
Fix Dartium to provide Observatory frontend resources on demand
http://src.chromium.org/viewvc/blink?view=rev&revision=202690
2015-10-26 11:11:46 -07:00
Terry L. Lucas d796048fcc Fixed improper construction of custom elements.
Was a too aggressive on upgrading a custom element.  If a JS object is a custom element never construct using the actual custom class in wrap_jso only allocate the TemplateElement or HtmlElement and let the upgrader or createdCallback do the upgrading.  This was causing timing issues with nested custom elements that were data bound.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1417363003 .
2015-10-22 16:35:46 -07:00
Ryan Macnak f59cac524d Also explicitly pass architecture for android bot.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1412423002 .
2015-10-20 10:53:45 -07:00
Alan Knight a9362610ee Hide internal methods like wrap_jso from the dart:html public interface
Issue https://github.com/dart-lang/sdk/issues/24602

R=terry@google.com

Review URL: https://codereview.chromium.org/1409743003 .
2015-10-19 11:28:53 -07:00
Ryan Macnak 14b7f9872f dart2js-dump-info: Explicitly pass architecture to test script like already done for build script.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/1412823002 .
2015-10-16 13:42:05 -07:00
Ryan Macnak 783ed2470b Change default build and test architecture to x64.
Precompilation isn't supported on IA32 so local testing misses it.

R=srdjan@google.com

Review URL: https://codereview.chromium.org/1408783005 .
2015-10-16 10:59:08 -07:00
Harry Terkelsen b84ac4c3b6 dart2js: use AllInfoJsonCodec to write dump info file
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1407133002 .
2015-10-15 17:25:18 -07:00
William Hesse 6c8a1a7f87 Increase timeout for analysis_server tests in debug mode.
BUG=https://github.com/dart-lang/sdk/issues/24596
BUG=https://github.com/dart-lang/sdk/issues/24597
R=ricow@google.com

Review URL: https://codereview.chromium.org/1399243006 .
2015-10-15 15:08:40 +02:00
Alan Knight 1a1820bbe3 Move make_dart_rectangle to html_common
BUG=

Review URL: https://codereview.chromium.org/1402233002 .
2015-10-14 14:06:24 -07:00
Ryan Macnak 5532a354c3 Add a test configuration for noopt so we can add status file entries for it.
R=srdjan@google.com

Review URL: https://codereview.chromium.org/1409543004 .
2015-10-14 12:36:39 -07:00
Terry L. Lucas e562934def More tests now pass and fixed custom elements to only work in default html and svg namespace
TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1392063003 .
2015-10-14 11:44:01 -07:00
Terry L. Lucas 4653701a76 Fixed native element extension, custom events, _VMUpgrader, and data binding.
Enabled tests that exercise this areas.

TBR=alanknight@google.com

Review URL: https://codereview.chromium.org/1391143006 .
2015-10-14 10:03:56 -07:00
Jacob Richman 0beba7576f DEPS AutoUpdate: webkit to 202689 (2015-10-13 17:38:07 -0700) jacobr@google.com
Make Dart objects passed to JavaScript expose the Dart toString method.
http://src.chromium.org/viewvc/blink?view=rev&revision=202689
2015-10-14 09:33:00 -07:00
Jacob Richman f6a90eca00 DEPS AutoUpdate: webkit to 202688 (2015-10-13 17:15:45 -0700) jacobr@google.com
Prevent creation of cross frame dart:html objects for classes other than Window.
http://src.chromium.org/viewvc/blink?view=rev&revision=202688
2015-10-13 17:41:31 -07:00
Harry Terkelsen 79134a74fa include entrypoint in dump_info
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1403073002 .
2015-10-13 17:08:13 -07:00
John McCutchan bb3060aa59 Bump observatory_pub_packages revision for Dartium too
BUG=

Review URL: https://codereview.chromium.org/1400233004 .
2015-10-13 12:36:17 -07:00