| 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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
| 6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 void IsolateInForegroundNotification(); | 1243 void IsolateInForegroundNotification(); |
| 1244 | 1244 |
| 1245 void IsolateInBackgroundNotification(); | 1245 void IsolateInBackgroundNotification(); |
| 1246 | 1246 |
| 1247 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1247 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
| 1248 | 1248 |
| 1249 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); | 1249 PRINTF_FORMAT(2, 3) void PrintWithTimestamp(const char* format, ...); |
| 1250 | 1250 |
| 1251 #ifdef USE_SIMULATOR | 1251 #ifdef USE_SIMULATOR |
| 1252 base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; } | 1252 base::Mutex* simulator_i_cache_mutex() { return &simulator_i_cache_mutex_; } |
| 1253 base::Mutex* simulator_redirection_mutex() { |
| 1254 return &simulator_redirection_mutex_; |
| 1255 } |
| 1253 #endif | 1256 #endif |
| 1254 | 1257 |
| 1255 void set_allow_atomics_wait(bool set) { allow_atomics_wait_ = set; } | 1258 void set_allow_atomics_wait(bool set) { allow_atomics_wait_ = set; } |
| 1256 bool allow_atomics_wait() { return allow_atomics_wait_; } | 1259 bool allow_atomics_wait() { return allow_atomics_wait_; } |
| 1257 | 1260 |
| 1258 // List of native heap values allocated by the runtime as part of its | 1261 // List of native heap values allocated by the runtime as part of its |
| 1259 // implementation that must be freed at isolate deinit. | 1262 // implementation that must be freed at isolate deinit. |
| 1260 class ManagedObjectFinalizer final { | 1263 class ManagedObjectFinalizer final { |
| 1261 public: | 1264 public: |
| 1262 typedef void (*Deleter)(void*); | 1265 typedef void (*Deleter)(void*); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 | 1566 |
| 1564 CancelableTaskManager* cancelable_task_manager_; | 1567 CancelableTaskManager* cancelable_task_manager_; |
| 1565 | 1568 |
| 1566 debug::ConsoleDelegate* console_delegate_ = nullptr; | 1569 debug::ConsoleDelegate* console_delegate_ = nullptr; |
| 1567 | 1570 |
| 1568 v8::Isolate::AbortOnUncaughtExceptionCallback | 1571 v8::Isolate::AbortOnUncaughtExceptionCallback |
| 1569 abort_on_uncaught_exception_callback_; | 1572 abort_on_uncaught_exception_callback_; |
| 1570 | 1573 |
| 1571 #ifdef USE_SIMULATOR | 1574 #ifdef USE_SIMULATOR |
| 1572 base::Mutex simulator_i_cache_mutex_; | 1575 base::Mutex simulator_i_cache_mutex_; |
| 1576 base::Mutex simulator_redirection_mutex_; |
| 1573 #endif | 1577 #endif |
| 1574 | 1578 |
| 1575 bool allow_atomics_wait_; | 1579 bool allow_atomics_wait_; |
| 1576 | 1580 |
| 1577 ManagedObjectFinalizer managed_object_finalizers_list_; | 1581 ManagedObjectFinalizer managed_object_finalizers_list_; |
| 1578 | 1582 |
| 1579 size_t total_regexp_code_generated_; | 1583 size_t total_regexp_code_generated_; |
| 1580 | 1584 |
| 1581 int wait_count_ = 0; | 1585 int wait_count_ = 0; |
| 1582 | 1586 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 | 1814 |
| 1811 EmbeddedVector<char, 128> filename_; | 1815 EmbeddedVector<char, 128> filename_; |
| 1812 FILE* file_; | 1816 FILE* file_; |
| 1813 int scope_depth_; | 1817 int scope_depth_; |
| 1814 }; | 1818 }; |
| 1815 | 1819 |
| 1816 } // namespace internal | 1820 } // namespace internal |
| 1817 } // namespace v8 | 1821 } // namespace v8 |
| 1818 | 1822 |
| 1819 #endif // V8_ISOLATE_H_ | 1823 #endif // V8_ISOLATE_H_ |
| OLD | NEW |