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

Unified Diff: src/d8.cc

Issue 2840543002: [d8] implement console for d8. (Closed)
Patch Set: no stress Created 3 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 | « BUILD.gn ('k') | src/d8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index f8828251dc132c51e796515d6d6f03e3d2c3fa8f..a8541aaf67ee235d8083d4e78eb242c66b8704f9 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -17,6 +17,7 @@
#include "src/third_party/vtune/v8-vtune.h"
#endif
+#include "src/d8-console.h"
#include "src/d8.h"
#include "src/ostreams.h"
@@ -2261,6 +2262,8 @@ void SourceGroup::ExecuteInThread() {
create_params.host_import_module_dynamically_callback_ =
Shell::HostImportModuleDynamically;
Isolate* isolate = Isolate::New(create_params);
+ D8Console console(isolate);
+ debug::SetConsoleDelegate(isolate, &console);
for (int i = 0; i < Shell::options.stress_runs; ++i) {
next_semaphore_.Wait();
{
@@ -2401,6 +2404,8 @@ void Worker::ExecuteInThread() {
create_params.host_import_module_dynamically_callback_ =
Shell::HostImportModuleDynamically;
Isolate* isolate = Isolate::New(create_params);
+ D8Console console(isolate);
+ debug::SetConsoleDelegate(isolate, &console);
{
Isolate::Scope iscope(isolate);
{
@@ -3017,10 +3022,12 @@ int Shell::Main(int argc, char* argv[]) {
}
Isolate* isolate = Isolate::New(create_params);
+ D8Console console(isolate);
{
Isolate::Scope scope(isolate);
Initialize(isolate);
PerIsolateData data(isolate);
+ debug::SetConsoleDelegate(isolate, &console);
if (options.trace_enabled) {
platform::tracing::TraceConfig* trace_config;
« no previous file with comments | « BUILD.gn ('k') | src/d8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698