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

Side by Side Diff: src/d8.h

Issue 1255563002: [d8 Workers] Fix bug creating Worker during main thread termination (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 void ExecuteInThread(); 278 void ExecuteInThread();
279 static void PostMessageOut(const v8::FunctionCallbackInfo<v8::Value>& args); 279 static void PostMessageOut(const v8::FunctionCallbackInfo<v8::Value>& args);
280 280
281 base::Semaphore in_semaphore_; 281 base::Semaphore in_semaphore_;
282 base::Semaphore out_semaphore_; 282 base::Semaphore out_semaphore_;
283 SerializationDataQueue in_queue_; 283 SerializationDataQueue in_queue_;
284 SerializationDataQueue out_queue_; 284 SerializationDataQueue out_queue_;
285 base::Thread* thread_; 285 base::Thread* thread_;
286 char* script_; 286 char* script_;
287 base::Atomic32 state_; 287 State state_;
288 base::Atomic32 join_called_;
289 }; 288 };
290 #endif // !V8_SHARED 289 #endif // !V8_SHARED
291 290
292 291
293 class ShellOptions { 292 class ShellOptions {
294 public: 293 public:
295 ShellOptions() 294 ShellOptions()
296 : script_executed(false), 295 : script_executed(false),
297 last_run(true), 296 last_run(true),
298 send_idle_notification(false), 297 send_idle_notification(false),
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 static void RunShell(Isolate* isolate); 495 static void RunShell(Isolate* isolate);
497 static bool SetOptions(int argc, char* argv[]); 496 static bool SetOptions(int argc, char* argv[]);
498 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 497 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
499 }; 498 };
500 499
501 500
502 } // namespace v8 501 } // namespace v8
503 502
504 503
505 #endif // V8_D8_H_ 504 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698