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

Unified Diff: runtime/vm/object.h

Issue 1709273003: Make function lookup in classes thread-safe: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: d Created 4 years, 10 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/hash_table.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index ebd93aeff9dd9da41e11b55e14ad319471552cb3..8fffdb4d3396e6c0cec6ee97746e264aec1d0317 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -314,15 +314,11 @@ class Object {
bool IsNew() const { return raw()->IsNewObject(); }
bool IsOld() const { return raw()->IsOldObject(); }
- bool InVMHeap() const {
#if defined(DEBUG)
- if (raw()->IsVMHeapObject()) {
- Heap* vm_isolate_heap = Dart::vm_isolate()->heap();
- ASSERT(vm_isolate_heap->Contains(RawObject::ToAddr(raw())));
- }
-#endif
- return raw()->IsVMHeapObject();
- }
+ bool InVMHeap() const;
+#else
+ bool InVMHeap() const { return raw()->IsVMHeapObject(); }
+#endif // DEBUG
// Print the object on stdout for debugging.
void Print() const;
« no previous file with comments | « runtime/vm/hash_table.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698