dart-sdk/runtime
Ryan Macnak 7b9fb893d2 [vm] Add a service method for 'invoke' as the dual to 'eval'.
Refactor the implementation of 'invoke' for sharing between the embedding API, mirrors, and the VM service. The fixes various issues in the embedding API:
 - Dart_Invoke, Dart_GetField and Dart_SetField now generate the same NoSuchMethodErrors as dart:mirrors and ordinary Dart code.
 - Dart_GetField and Dart_SetField now accept a null receiver.
 - Dart_GetField now handles closurization.
 - Dart_Invoke now handles calls through function-typed getters.
In mirrors, it also changes:
 - LibraryMirror.invoke/getField/setField now see members in the export namespace, not just local declarations. I.e., invocation with a LibraryMirror behaves the same ways as invocation against a library prefix in ordinary Dart code.

Bug: https://github.com/dart-lang/sdk/issues/11870
Bug: https://github.com/dart-lang/sdk/issues/13643
Bug: https://github.com/dart-lang/sdk/issues/29893
Bug: https://github.com/dart-lang/sdk/issues/33417
Bug: https://github.com/dart-lang/sdk/issues/34006
Change-Id: I913e8eef16943a3e86eda55c8d122819e41ad7cc
Reviewed-on: https://dart-review.googlesource.com/67302
Reviewed-by: Siva Annamalai <asiva@google.com>
2018-08-09 18:16:03 +00:00
..
bin [vm] Add a service method for 'invoke' as the dual to 'eval'. 2018-08-09 18:16:03 +00:00
include [vm] Add a service method for 'invoke' as the dual to 'eval'. 2018-08-09 18:16:03 +00:00
lib [vm] Add a service method for 'invoke' as the dual to 'eval'. 2018-08-09 18:16:03 +00:00
observatory [vm] Add a service method for 'invoke' as the dual to 'eval'. 2018-08-09 18:16:03 +00:00
platform [vm/compiler] Rework how logical expressions are compiled to IL. 2018-08-02 10:51:53 +00:00
tests/vm [vm/precomp] Update status files for Dart 1 AOT. 2018-08-08 12:22:43 +00:00
third_party [gn] Split target arch/os defines from dart_config 2017-10-31 17:33:13 +00:00
tools [vm] Fix bin_to_coff.py so it produces 8-byte wide kKernelServiceDillSize on 64-bit build. 2018-07-25 04:32:43 +00:00
vm [vm] Add a service method for 'invoke' as the dual to 'eval'. 2018-08-09 18:16:03 +00:00
.gitignore
BUILD.gn [build] Move dart2js run for Observatory from python to GN 2018-07-03 22:50:16 +00:00
codereview.settings
configs.gni Check whether variables is set before using GN not_needed 2018-06-23 23:59:59 +00:00
CPPLINT.cfg
PRESUBMIT.py
runtime_args.gni Revert "Reland "[VM/SDK]"" 2018-07-23 18:07:29 +00:00