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

Unified Diff: src/bootstrapper.cc

Issue 6520017: mimic the jsc shell function run() for latest sunspider (Closed)
Patch Set: Add run() as an extension Created 9 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 | « src/SConscript ('k') | src/extensions/run-extension.h » ('j') | no next file with comments »
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 a30ffc015ccc53b0b9ac5ba83f3c95df93bc1acb..6c72726931d668768e7ea6cc44e1cde5c3c280f1 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -40,6 +40,7 @@
#include "snapshot.h"
#include "extensions/externalize-string-extension.h"
#include "extensions/gc-extension.h"
+#include "extensions/run-extension.h"
namespace v8 {
namespace internal {
@@ -97,6 +98,7 @@ void Bootstrapper::Initialize(bool create_heap_objects) {
extensions_cache_.Initialize(create_heap_objects);
GCExtension::Register();
ExternalizeStringExtension::Register();
+ RunExtension::Register();
}
@@ -1796,6 +1798,7 @@ bool Genesis::InstallExtensions(Handle<Context> global_context,
if (FLAG_expose_gc) InstallExtension("v8/gc");
if (FLAG_expose_externalize_string) InstallExtension("v8/externalize");
+ if (FLAG_expose_run) InstallExtension("v8/run");
if (extensions == NULL) return true;
// Install required extensions
« no previous file with comments | « src/SConscript ('k') | src/extensions/run-extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698