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

Unified Diff: src/contexts-inl.h

Issue 2549753002: Store OSR'd optimized code on the native context. (Closed)
Patch Set: Improvements. Created 4 years 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: src/contexts-inl.h
diff --git a/src/contexts-inl.h b/src/contexts-inl.h
index ce2c97be753f774d04bfa22cbd47707d6ded1b60..f2eb5462ac950d0e0485f629eb8e3d47bcbcd14c 100644
--- a/src/contexts-inl.h
+++ b/src/contexts-inl.h
@@ -124,6 +124,9 @@ bool Context::IsScriptContext() {
return map == map->GetHeap()->script_context_map();
}
+bool Context::OptimizedCodeMapIsCleared() {
+ return osrd_function_table() == GetHeap()->empty_fixed_array();
+}
bool Context::HasSameSecurityTokenAs(Context* that) {
return this->native_context()->security_token() ==

Powered by Google App Engine
This is Rietveld 408576698