4985165e76
Includes the following changes: - Disable type checking in the service isolate when strong mode is turned on. We don't yet have strong mode clean vmservice Kernel binary available (Issue #31203); - Introduce new Dart VM API to allow creating List<T> (T in {String, int}). Current API only allows to create List<dynamic> and in strong mode List<dynamic> is not assignable to List<T>. For now we limit this API to a fixed number of core types for performance considerations (type arguments can be canonicalized and cache ahead of time). We will extend the API allowing creation of arbitrary List<T> if we will discover the need for it later; - Use this new API to fix CreateRuntimeOptions to create List<String> and not List<dynamic>; - Likewise fix OneByteString_splitWithCharCode to return List<String> and not List<dynamic>; Additionally this CL refactors how getters and setters are created in object_store.h removing 500 lines of largely boilerplate code. Bug: https://github.com/dart-lang/sdk/issues/31052 Change-Id: I3fdcd2d54ff3f307db0913c67a7c2f009ea9d7a7 Reviewed-on: https://dart-review.googlesource.com/15884 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>