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

Unified Diff: runtime/vm/isolate.h

Issue 2379733002: Recognize and optimize a.runtimeType == b.runtimeType pattern. (Closed)
Patch Set: port to all arch, make AOT opt non-speculative Created 4 years, 2 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
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 12dd5fa2f6fdcc37fd861a2de0c6adc4eb08164f..bf5f27121dec4f68432d77afcf82745a256d37f3 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -211,6 +211,9 @@ class Isolate : public BaseIsolate {
ObjectStore* object_store() const { return object_store_; }
void set_object_store(ObjectStore* value) { object_store_ = value; }
+ static intptr_t object_store_offset() {
+ return OFFSET_OF(Isolate, object_store_);
+ }
ApiState* api_state() const { return api_state_; }
void set_api_state(ApiState* value) { api_state_ = value; }

Powered by Google App Engine
This is Rietveld 408576698