[VM/C-API] - Fix errors reported by MSVC tool chain.
For details see https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8873403898611684880/+/steps/build_android_profile_gen_snapshot/0/stdout
Change-Id: I47fe33cab787595dff13b68c613fb216fb434f3b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157560
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 1b04132..f190dcc 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1081,15 +1081,15 @@
Dart_FinalizableHandle object,
Dart_Handle strong_ref_to_object,
intptr_t external_allocation_size) {
- if (!Dart_IdentityEquals(strong_ref_to_object,
- HandleFromFinalizable(object))) {
+ if (!::Dart_IdentityEquals(strong_ref_to_object,
+ HandleFromFinalizable(object))) {
FATAL1(
"%s expects arguments 'object' and 'strong_ref_to_object' to point to "
"the same object.",
CURRENT_FUNC);
}
auto wph_object = reinterpret_cast<Dart_WeakPersistentHandle>(object);
- Dart_UpdateExternalSize(wph_object, external_allocation_size);
+ ::Dart_UpdateExternalSize(wph_object, external_allocation_size);
}
DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object) {
@@ -1122,8 +1122,8 @@
DART_EXPORT void Dart_DeleteFinalizableHandle(
Dart_FinalizableHandle object,
Dart_Handle strong_ref_to_object) {
- if (!Dart_IdentityEquals(strong_ref_to_object,
- HandleFromFinalizable(object))) {
+ if (!::Dart_IdentityEquals(strong_ref_to_object,
+ HandleFromFinalizable(object))) {
FATAL1(
"%s expects arguments 'object' and 'strong_ref_to_object' to point to "
"the same object.",
@@ -1132,7 +1132,7 @@
auto wph_object = reinterpret_cast<Dart_WeakPersistentHandle>(object);
- return Dart_DeleteWeakPersistentHandle(wph_object);
+ ::Dart_DeleteWeakPersistentHandle(wph_object);
}
// --- Initialization and Globals ---