Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: runtime/vm/dart.cc

Issue 1173293007: Fix --verify_handles mode by properly checking for the static API handles. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698