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

Unified Diff: src/api.cc

Issue 2155503004: Reland^2 "Don't compile functions in a context the caller doesn't have access to" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | « src/api.h ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 6b75ea419814fbbbe2dd70bc0d300862e3bd2fde..aa75fc366c72dd60c396674144669a8959f7f20a 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -8939,6 +8939,10 @@ void HandleScopeImplementer::IterateThis(ObjectVisitor* v) {
Object** start = reinterpret_cast<Object**>(&context_lists[i]->first());
v->VisitPointers(start, start + context_lists[i]->length());
}
+ if (microtask_context_) {
Toon Verwaest 2016/07/18 12:54:09 Do we need the null-check here?
jochen (gone - plz use gerrit) 2016/07/18 12:55:35 yeah, it's not necessarily set during GC
+ Object** start = reinterpret_cast<Object**>(&microtask_context_);
+ v->VisitPointers(start, start + 1);
+ }
}
« no previous file with comments | « src/api.h ('k') | src/builtins/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698