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

Unified Diff: src/d8.h

Issue 1252623003: [d8] Fix tsan bugs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove options atomics Created 5 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 | « no previous file | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.h
diff --git a/src/d8.h b/src/d8.h
index 39c3b749316544f7056ea0556f3d6f83c40e2634..4641d0aeea1bb2962d102c4789b8fbf6dffe5665 100644
--- a/src/d8.h
+++ b/src/d8.h
@@ -119,6 +119,7 @@ class SourceGroup {
#ifndef V8_SHARED
void StartExecuteInThread();
void WaitForThread();
+ void JoinThread();
private:
class IsolateThread : public base::Thread {
@@ -274,12 +275,12 @@ class ShellOptions {
public:
ShellOptions()
: script_executed(false),
- last_run(true),
send_idle_notification(false),
invoke_weak_callbacks(false),
omit_quit(false),
stress_opt(false),
stress_deopt(false),
+ stress_runs(1),
interactive_shell(false),
test_shell(false),
dump_heap_constants(false),
@@ -301,12 +302,12 @@ class ShellOptions {
}
bool script_executed;
- bool last_run;
bool send_idle_notification;
bool invoke_weak_callbacks;
bool omit_quit;
bool stress_opt;
bool stress_deopt;
+ int stress_runs;
bool interactive_shell;
bool test_shell;
bool dump_heap_constants;
@@ -341,7 +342,7 @@ class Shell : public i::AllStatic {
static void ReportException(Isolate* isolate, TryCatch* try_catch);
static Local<String> ReadFile(Isolate* isolate, const char* name);
static Local<Context> CreateEvaluationContext(Isolate* isolate);
- static int RunMain(Isolate* isolate, int argc, char* argv[]);
+ static int RunMain(Isolate* isolate, int argc, char* argv[], bool last_run);
static int Main(int argc, char* argv[]);
static void Exit(int exit_code);
static void OnExit(Isolate* isolate);
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698