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

Unified Diff: src/isolate.cc

Issue 2562623003: Revert of Store OSR'd optimized code on the native context. (patchset #8 id:140001 of https://coder… (Closed)
Patch Set: 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
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 2cd04f66c72aa5c54013ea914d35660008115195..14b9df7b10832feabe95bb2cc10a3dfcd470ef91 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2822,26 +2822,6 @@ bool Isolate::IsArrayOrObjectPrototype(Object* object) {
return false;
}
-void Isolate::ClearOSROptimizedCode() {
- DisallowHeapAllocation no_gc;
- Object* context = heap()->native_contexts_list();
- while (!context->IsUndefined(this)) {
- Context* current_context = Context::cast(context);
- current_context->ClearOptimizedCodeMap();
- context = current_context->next_context_link();
- }
-}
-
-void Isolate::EvictOSROptimizedCode(Code* code, const char* reason) {
- DisallowHeapAllocation no_gc;
- Object* context = heap()->native_contexts_list();
- while (!context->IsUndefined(this)) {
- Context* current_context = Context::cast(context);
- current_context->EvictFromOptimizedCodeMap(code, reason);
- context = current_context->next_context_link();
- }
-}
-
bool Isolate::IsInAnyContext(Object* object, uint32_t index) {
DisallowHeapAllocation no_gc;
Object* context = heap()->native_contexts_list();
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698