asiva
ee6351a147
[VM] Set up package config value when invoking the front end for compilation,
...
this should fix issue 32950 "(Isolate.spawnUri() ignores packageConfig
argument in Dart 2 mode.'
Bug:32950
Change-Id: I1247c87c171ac44d3da6e2a93212adba20c42e54
Reviewed-on: https://dart-review.googlesource.com/52986
Reviewed-by: Alexander Aprelev <aam@google.com >
2018-05-01 22:57:35 +00:00
Martin Kustermann
0bc46de838
[VM] Support spawning isolates when the main isolate was spawned from a Kernel IR file
...
Issue https://github.com/dart-lang/sdk/issues/31698
Change-Id: Ifc6662a3fd56245c10f5d924f771ef85ed9b222c
Reviewed-on: https://dart-review.googlesource.com/34742
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
2018-01-15 17:51:54 +00:00
Siva Annamalai
4ba69c4df5
Fixes for some strong mode issues in the isolate tests. Not able to turn
...
these tests on by default yet because of an issue in the stacktrace
package (see issue 31764)
Change-Id: Ifeb5dc4fc85e7d83b3011948133ce6d2a1998248
Reviewed-on: https://dart-review.googlesource.com/29480
Commit-Queue: Siva Annamalai <asiva@google.com >
Reviewed-by: Régis Crelier <regis@google.com >
2018-01-05 06:19:33 +00:00
Zachary Anderson
130f3be297
[dart:io] Move _getUriBaseClosure to dart:io
...
In a forthcoming change, this will allow Uri.base to be aware of
the isolate's current namespace.
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2998373002 .
2017-08-24 20:06:52 -07:00
Florian Loitsch
ee46026671
Don't use LinkedList in the core libraries anymore.
...
R=lrn@google.com
Committed: https://github.com/dart-lang/sdk/commit/fe17b5b2bc24454dd2f596d8ce6e2e7661e87f10
Reverted: https://github.com/dart-lang/sdk/commit/5d4a786f4466ebcb06c36ed44f262c9e120a7273
Review-Url: https://codereview.chromium.org/2975443002 .
2017-07-28 21:14:11 +02:00
Siva Annamalai
8b7af73daa
1. Dynamically compute the main closure that needs to be run by the main isolate
...
2. Get rid of _getMainClosure()
3. Adjust the AOT compiler to ensure it retains the function associated with
the main closure without having to include '_getMainClosure()' in the list
of embedder specified entry points
4. Get rid of the hack in kernel reader to do a delayed patch of
'_getMainClosure()' in the builtin library.
BUG=
R=aam@google.com , rmacnak@google.com
Review-Url: https://codereview.chromium.org/2933603002 .
2017-06-15 10:40:45 -07:00
Jacob Richman
4360e99d18
Revert "Fix observatory tests broken by running dartfmt."
...
This reverts commit b1f7e6d94673b098c93c187fe3efc45c15f27edc.
BUG=
Committed: https://github.com/dart-lang/sdk/commit/62be0eacfbb36bdc92a05c7c35bb4506621b6a3a
Review-Url: https://codereview.chromium.org/2767533002 .
2017-03-21 10:07:26 -07:00
Jacob Richman
62be0eacfb
Revert "Fix observatory tests broken by running dartfmt."
...
This reverts commit b1f7e6d94673b098c93c187fe3efc45c15f27edc.
BUG=
Review-Url: https://codereview.chromium.org/2767533002 .
2017-03-20 22:19:22 -07:00
Jacob Richman
88f8aacd5f
Re-apply rolled back CL to apply dartfmt to runtime.
...
Fix observatory tests broken by running dartfmt due to line and column changes.
Temporarily reverted formatting for evaluate_activation_test.dart as dartfmt doesn't yet handle multitests.
BUG=
R=johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2759973004 .
2017-03-20 21:44:59 -07:00
Ryan Macnak
ea4744a06f
Revert "Run dartfmt on all files under runtime."
...
This reverts commit 15f393f189 .
The change caused many service test failures due to changed line numbers.
TBR=jacobr@google.com
Review-Url: https://codereview.chromium.org/2762583003 .
2017-03-20 13:42:55 -07:00
Jacob Richman
15f393f189
Run dartfmt on all files under runtime.
...
I've omitted files where the formatter output is significantly uglier
than the original code and I'll send those files in a separate CL
with options for how to make the code look reasonable while still
taking advantage of the formatter.
BUG=
R=johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2751423005 .
2017-03-20 13:13:50 -07:00
Peter von der Ahé
00bed94e0c
Fix various nits in VM patch files.
...
R=vegorov@google.com
Review-Url: https://codereview.chromium.org/2705593002 .
2017-02-17 16:28:57 +01:00
Vyacheslav Egorov
eb8c24e133
Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."
...
R=zra@google.com
BUG=
Review URL: https://codereview.chromium.org/2451623006 .
2016-10-27 10:09:22 +02:00
Vyacheslav Egorov
12968edb9c
Revert "Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork.""
...
This reverts commit 4e7a31262e .
Windows bots are broken now.
R=zra@google.com
BUG=
Review URL: https://codereview.chromium.org/2451893004 .
2016-10-26 17:07:18 +02:00
Vyacheslav Egorov
4e7a31262e
Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."
...
This relands commit 2fed1c3905 with fixes to ensure that analyzer summaries are correctly created and XARM build does not try to use target binaries on the host.
R=zra@google.com
BUG=
Review URL: https://codereview.chromium.org/2453773002 .
2016-10-26 16:48:28 +02:00
Vyacheslav Egorov
cf7ff42e60
Revert "Merge more Kernel infrastructure from kernel_sdk SDK fork."
...
This reverts commit 2fed1c3905 .
SDK builds are failing
TBR=zra@google.com
Review URL: https://codereview.chromium.org/2455593002 .
2016-10-26 13:06:27 +02:00
Vyacheslav Egorov
2fed1c3905
Merge more Kernel infrastructure from kernel_sdk SDK fork.
...
- bring patched SDK generation scripts and VM patch tweaks that allow VM patch files to be parsed by analyzer front-end;
Patched SDK is an SDK with all VM patches spliced into it. Kernel compiler is based on the analyzer front-end which does
not have any patch files support/model so for it to produce Kernel files that match VM we need to generate a such patched SDKs.
- bring test script modifications that allow to test Kernel pipeline
BUG=
R=asiva@google.com , kmillikin@google.com , whesse@google.com , zra@google.com
Review URL: https://codereview.chromium.org/2434123003 .
2016-10-26 13:02:54 +02:00
Todd Turnidge
ac5175d47a
More fixes.
...
BUG=
Review URL: https://codereview.chromium.org/2196593003 .
2016-07-29 12:52:31 -07:00
Siva Annamalai
9bb73c8906
Remove dead code _resolveUri in builtin.dart is not used anymore.
...
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2111763002 .
2016-06-30 09:05:53 -07:00
John McCutchan
6fd8fd7987
Rework standalone to use a synchronous loader that does not invoke Dart code
...
- [x] The first caller of the tag handler blocks, recursive callers queue work and exit.
- [x] Use a NativeMessageHandler to receive I/O results from the service isolate.
- [x] Preserve load error message format.
- [x] Move packages map into service isolate.
- [x] Wire up Todd's native URI code.
R=turnidge@google.com
Review URL: https://codereview.chromium.org/1998963003 .
2016-06-06 14:15:01 -07:00
Lasse R.H. Nielsen
c7e601c90d
Revert "Add package-config tests where test is running in Isolate.spawn-isolates."
...
This reverts commit f3f6d1e00d .
Running a new process doesn't correctly pass empty command line parameters on Windows.
Committed: https://github.com/dart-lang/sdk/commit/151d1b67961d3be2a7dc8f5f76948ccbfe045fcb
R=floitsch@google.com
Committed: https://github.com/dart-lang/sdk/commit/2d8e63e9859a388cd1a3847ef5d20a32ace52c6c
Review URL: https://codereview.chromium.org/2038033002 .
2016-06-06 08:46:58 +02:00
John McCutchan
d47866964c
Fix canonicalization of --url_mapping URIs in gen_snapshot
...
When gen_snapshot encounters a url that has been remapped with the --url_mapping command line argument it rewrites the library's url to be the mapped url before canonicalization. The new C++ API only does canonicalization with respect to the library's url (as returned by Dart_LibraryUrl) which is insufficient for gen_snapshot. The correct long-term fix is to alter the new C++ API to allow for the base url to be passed in directly rather than indirectly via Dart_LibraryUrl.
This CL just restores some deleted code and has gen_snapshot work like it did before. The standalone embedder still uses the C++ API during loading.
Review URL: https://codereview.chromium.org/2031103002 .
2016-06-02 14:52:42 -07:00
Todd Turnidge
a7d46eb5a6
Canonicalize uris in C++ instead of Dart for the standalone embedder.
...
Adds Dart_DefaultCanonicalizeUrl() to the dart embedding api.
Motivation:
As we try to get source reloading working for the standalone embedder, things get simpler if an isolate doesn't run Dart code while it is loading Dart code. We intend to solve this by moving the embedder tag handler calls to the service isolate. But making a blocking rpc into the service isolate whenever a url needs to be canonicalized during parsing seems like it would slow things down and make things complicated. By moving canonicalization into C++, we avoid this.
R=ahe@google.com , fschneider@google.com , johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2011543002 .
2016-06-02 12:29:57 -07:00
Todd Turnidge
b3a1066c8e
Simplify the canonicalization of dart-ext uris.
...
We used to stuff the path of the canonicalizing library into the uri
so that we could retrieve it later. That isn't necessary, as the
library is still available when we import later.
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2004933002 .
2016-05-23 10:25:25 -07:00
Ivan Posva
3884fd4e4b
- Allow for loading dart:html and friends into the standalone
...
dart_bootstrap binary to evaluate startup and compilation
performance.
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org/1916793003 .
2016-05-03 20:33:14 -07:00
Zachary Anderson
1336e6149f
Search for a native extension for the host architecture
...
R=iposva@google.com
Review URL: https://codereview.chromium.org/1896203002 .
2016-04-20 08:02:16 -07:00
Ivan Posva
3b2a695d71
- Properly return null if an unknown package is resolved.
...
- Allow short form package:foo imports.
R=asiva@google.com
Review URL: https://codereview.chromium.org/1822863002 .
2016-03-22 09:02:04 -07:00
Todd Turnidge
250773cb65
Improve the error message when an import fails.
...
BUG=
R=iposva@google.com
Review URL: https://codereview.chromium.org/1641383003 .
2016-01-29 16:30:08 -08:00
Ivan Posva
6d066c7e53
Add package config support to dart:isolate
...
- Add "static Future<Uri> get packageRoot;",
"static Future<Uri> get packageConfig;" and
"static Future<Uri> resolvePackageUri(Uri packageUri)" to Isolate class.
- Added "Uri packageRoot, Uri packageConfig, bool automaticPackageResolution: false" parameters to spawnUri.
BUG=
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1553233002 .
2016-01-12 18:19:04 -08:00
Ivan Posva
b6781b656a
- Implement Platform.packageRoot and Platform.packageConfig based
...
on the new specification.
BUG=
R=lrn@google.com
Review URL: https://codereview.chromium.org/1529063006 .
2015-12-17 07:48:41 -08:00
Ryan Macnak
4d9a399f53
Standalone: Null out _packagesPort after close.
...
Fixes crash in precompilation attempting to serialize a receive port.
BUG=http://dartbug.com/25075
R=iposva@google.com
Review URL: https://codereview.chromium.org/1505193003 .
2015-12-08 10:53:21 -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
df5ef1b136
Revert "Add data-URI support class to dart:core (next to Uri)."
...
This reverts commit bbc66c2c41 .
BUG=
R=ricow@google.com
Review URL: https://codereview.chromium.org/1432203002 .
2015-11-11 11:42:04 +01:00
Lasse R.H. Nielsen
bbc66c2c41
Add data-URI support class to dart:core (next to Uri).
...
R=floitsch@google.com
Review URL: https://codereview.chromium.org/1381033002 .
2015-11-11 10:27:08 +01:00
Ivan Posva
60eab65aa0
- Implement package map parameter when spawning isolate.
...
BUG=
R=lrn@google.com
Review URL: https://codereview.chromium.org/1403693002 .
2015-10-12 09:05:37 -07:00
Ivan Posva
ba6c0ace3e
- Add getters for the current packageRoot or packageMap to the Isolate class.
...
- Simplify loading in builtin.dart.
BUG=
R=asiva@google.com , lrn@google.com
Review URL: https://codereview.chromium.org//1334353002 .
2015-10-03 06:53:13 -07:00
Ivan Posva
ee9c0cbb2c
- Make sure to close the port if a packages file was passed on the
...
command line without actually loading packages.
BUG=23991
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//1278623002 .
2015-08-05 16:34:50 -07:00
Ivan Posva
337931709a
- Implement loading of .packages files from http.
...
- Fix bad type annotation in builtin.dart when getting an async
load error.
Review URL: https://codereview.chromium.org//1268313002 .
2015-08-05 00:13:39 -07:00
Ivan Posva
f63db4960c
- Implement resource loading via the Resource class.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//1264413002 .
2015-08-04 15:39:14 -07:00
Ivan Posva
b07a9ddbca
- Implement .packages specification.
...
Limitation: Currently only works for file: based .package files. If a script is loaded from http: then the VM currently assumes a co-located packages/ directory.
R=asiva@google.com
Review URL: https://codereview.chromium.org//1232593003 .
2015-07-29 11:30:33 -07:00
Ivan Posva
0358f722ba
- Include original, loaded URI in error message.
...
- Update error string comparison in pub.
BUG=
Review URL: https://codereview.chromium.org//1156983003
2015-05-28 00:14:39 -07:00
Ivan Posva
42257ab482
- Avoid trying to write to final fields.
...
BUG=
Review URL: https://codereview.chromium.org//1154213006
2015-05-27 17:44:41 -07:00
Ivan Posva
2abc21a1bf
- Avoid using a streamed receive port for single messages.
...
- Only open a single receive port for a set of load requests.
- Store information about load requests in a map, which will be able to hold
other relevant information about the request.
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org//1154173006
2015-05-27 16:59:43 -07:00
iposva@google.com
d0763f97f3
- Add --trace-loading to trace resolution and loading.
...
- Remove unused --print-script option.
R=asiva@google.com
Review URL: https://codereview.chromium.org//1138083003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45720 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-11 22:58:32 +00:00
iposva@google.com
f469f59b60
Reland r45669:
...
- Refactor builtin.dart before any further work in this file.
Change to original submission is to not doubly sanitize the
Windows path when setting the working directory.
R=asiva@google.com
Review URL: https://codereview.chromium.org//1127343004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45703 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-11 18:23:20 +00:00
iposva@google.com
16a29667dd
- Revert r45669 to address Windows issues.
...
R=vegorov@google.com
Review URL: https://codereview.chromium.org//1130003004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45672 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-09 00:59:00 +00:00
iposva@google.com
7f5cdff385
- Refactor builtin.dart before any further work in this file.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//1137853002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45669 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-08 23:58:01 +00:00
johnmccutchan@google.com
6f40403682
Remove embedder-package scheme
...
- Soon mojo embedder private packages will be imported with a 'dart:_' prefixes.
- Add an explicit test of transitive private library access. This ensures that imports of 'dart:embedder_private_packages' cannot access anything imported within it.
R=zra@google.com
Review URL: https://codereview.chromium.org//1066613004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45169 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-15 15:49:50 +00:00
johnmccutchan@google.com
198120555f
Allow for 'embedder-package' URI scheme in builtin.dart
...
- Will be used by Mojo embedder.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org//1074893003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45031 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 20:23:39 +00:00
johnmccutchan@google.com
d2f5d87c96
Shutdown the service isolate when shutting down the VM
...
- Add a service control message to initiate service isolate shutdown.
- Provide a callback for the embedder to do any service isolate cleanup.
- Dart_Cleanup will now block until the service isolate shuts down.
R=zra@google.com
Review URL: https://codereview.chromium.org//1030013002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44685 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-25 15:50:19 +00:00