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

Unified Diff: src/bootstrapper.cc

Issue 14075012: Expose the GC under a name that is less collision prone than window.gc. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: --expose-gc-as Created 7 years, 8 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 | « no previous file | src/extensions/gc-extension.h » ('j') | src/extensions/gc-extension.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 12f0cdac6b7faef80bc5f2d8299560696f315a47..1e14e5328781d868af3b19e58097bcef5452298f 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -2183,7 +2183,8 @@ bool Genesis::InstallExtensions(Handle<Context> native_context,
current = current->next();
}
- if (FLAG_expose_gc) InstallExtension(isolate, "v8/gc", &extension_states);
+ if (FLAG_expose_gc || FLAG_expose_gc_as)
+ InstallExtension(isolate, "v8/gc", &extension_states);
if (FLAG_expose_externalize_string) {
InstallExtension(isolate, "v8/externalize", &extension_states);
}
« no previous file with comments | « no previous file | src/extensions/gc-extension.h » ('j') | src/extensions/gc-extension.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698