Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index cc411f0b98bff837fb9ea22456fa8f43382846e6..ff7559d814285d7c403efbb91ae9280bd4ac0363 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -372,4 +372,10 @@ bool Dart::IsReadOnlyHandle(uword address) { |
return predefined_handles_->handles_.IsValidScopedHandle(address); |
} |
+ |
+bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
+ ASSERT(predefined_handles_ != NULL); |
+ return predefined_handles_->api_handles_.IsValidHandle(handle); |
+} |
+ |
} // namespace dart |