| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |