dart-sdk/runtime
Alexander Markov 922c2bfbb0 [vm/bytecode] Include source info and asserts into platform with bytecode
* Include source positions, source text (if provided by front-end, which is
  controlled by a separate option) and assertions into platform with bytecode.
  Also use environment defines if provided.

* Omit bytecode for synthetic static fields '_redirecting#' injected
  by front-end, as they contain invalid AST nodes (taking tear-off of
  a constructor). This is needed to avoid emitting bytecode which cannot be
  loaded.

* Correctly merge source information such as source text and line numbers
  in bytecode generator if the script was originally created for an
  anonymous mixin application without such information.

* Always include import URIs into source information, even if other information is
  excluded (for members in anonymous mixin applications / noSuchMethod forwarders /
  forwarding stubs).

* Set native resolvers for vm/cc/PrintJSON test, as printing all objects to JSON
  involves collecting token positions, which may read bytecode from platform and
  need native resolvers to process native method entries.

Change-Id: I971e880c25439c0ec69db3a231a0085ccd5d15ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113780
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2019-08-21 01:08:24 +00:00
..
bin Revert "[vm/ffi] Dispatch native callbacks through trampolines if we can't ensure callbacks will always be executable." 2019-08-20 16:27:32 +00:00
docs [vm/doc] Add documentation describing AOT code size analysis 2019-08-12 12:08:35 +00:00
include [vm/ffi] Call natives through stubs if write-protection is enabled without dual-mapping. 2019-08-07 11:37:20 +00:00
lib Revert "[vm/ffi] Dispatch native callbacks through trampolines if we can't ensure callbacks will always be executable." 2019-08-20 16:27:32 +00:00
llvm_codegen [llvm] Fix bit target definition on Windows - it needs .exe extension 2019-07-31 17:33:09 +00:00
observatory [observatory] Remove stale asserts from heap snapshot processing. 2019-08-20 17:08:10 +00:00
platform Use MAP_JIT when doing an mmap for executable pages (needed for macOS Catalina). 2019-08-14 16:51:49 +00:00
tests/vm [ VM / Service ] Use the name of the a function's defining mixin instead of the 2019-08-15 21:10:47 +00:00
third_party Mass format python with yapf 2019-08-05 20:34:31 +00:00
tools [vm/fuzzer] Disable stacktrace option on FFI runs 2019-08-21 00:42:44 +00:00
vm [vm/bytecode] Include source info and asserts into platform with bytecode 2019-08-21 01:08:24 +00:00
.gitignore
BUILD.gn [vm/bytecode] Bootstrapping VM from bytecode 2019-06-26 18:25:26 +00:00
codereview.settings
configs.gni [vm, fuchsia] Fix deps and stop suppressing -fvisibility=hidden. 2019-04-29 23:31:27 +00:00
CPPLINT.cfg
PRESUBMIT.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
runtime_args.gni [vm/bytecode] Enable building of kernel service snapshot 2019-04-05 22:31:58 +00:00