| 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 <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 MessageLocation* location); | 737 MessageLocation* location); |
| 738 | 738 |
| 739 // Out of resource exception helpers. | 739 // Out of resource exception helpers. |
| 740 Object* StackOverflow(); | 740 Object* StackOverflow(); |
| 741 Object* TerminateExecution(); | 741 Object* TerminateExecution(); |
| 742 void CancelTerminateExecution(); | 742 void CancelTerminateExecution(); |
| 743 | 743 |
| 744 void RequestInterrupt(InterruptCallback callback, void* data); | 744 void RequestInterrupt(InterruptCallback callback, void* data); |
| 745 void InvokeApiInterruptCallbacks(); | 745 void InvokeApiInterruptCallbacks(); |
| 746 | 746 |
| 747 void RequestMemoryPressureInterrupt(v8::Isolate::MemoryPressureLevel level); |
| 748 |
| 747 // Administration | 749 // Administration |
| 748 void Iterate(ObjectVisitor* v); | 750 void Iterate(ObjectVisitor* v); |
| 749 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); | 751 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); |
| 750 char* Iterate(ObjectVisitor* v, char* t); | 752 char* Iterate(ObjectVisitor* v, char* t); |
| 751 void IterateThread(ThreadVisitor* v, char* t); | 753 void IterateThread(ThreadVisitor* v, char* t); |
| 752 | 754 |
| 753 // Returns the current native context. | 755 // Returns the current native context. |
| 754 Handle<Context> native_context(); | 756 Handle<Context> native_context(); |
| 755 | 757 |
| 756 // Returns the native context of the calling JavaScript code. That | 758 // Returns the native context of the calling JavaScript code. That |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 | 1339 |
| 1338 v8::ArrayBuffer::Allocator* array_buffer_allocator_; | 1340 v8::ArrayBuffer::Allocator* array_buffer_allocator_; |
| 1339 | 1341 |
| 1340 FutexWaitListNode futex_wait_list_node_; | 1342 FutexWaitListNode futex_wait_list_node_; |
| 1341 | 1343 |
| 1342 CancelableTaskManager* cancelable_task_manager_; | 1344 CancelableTaskManager* cancelable_task_manager_; |
| 1343 | 1345 |
| 1344 v8::Isolate::AbortOnUncaughtExceptionCallback | 1346 v8::Isolate::AbortOnUncaughtExceptionCallback |
| 1345 abort_on_uncaught_exception_callback_; | 1347 abort_on_uncaught_exception_callback_; |
| 1346 | 1348 |
| 1349 v8::Isolate::MemoryPressureLevel memory_pressure_level_; |
| 1350 |
| 1347 friend class ExecutionAccess; | 1351 friend class ExecutionAccess; |
| 1348 friend class HandleScopeImplementer; | 1352 friend class HandleScopeImplementer; |
| 1349 friend class OptimizingCompileDispatcher; | 1353 friend class OptimizingCompileDispatcher; |
| 1350 friend class SweeperThread; | 1354 friend class SweeperThread; |
| 1351 friend class ThreadManager; | 1355 friend class ThreadManager; |
| 1352 friend class Simulator; | 1356 friend class Simulator; |
| 1353 friend class StackGuard; | 1357 friend class StackGuard; |
| 1354 friend class ThreadId; | 1358 friend class ThreadId; |
| 1355 friend class TestMemoryAllocatorScope; | 1359 friend class TestMemoryAllocatorScope; |
| 1356 friend class TestCodeRangeScope; | 1360 friend class TestCodeRangeScope; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 | 1570 |
| 1567 EmbeddedVector<char, 128> filename_; | 1571 EmbeddedVector<char, 128> filename_; |
| 1568 FILE* file_; | 1572 FILE* file_; |
| 1569 int scope_depth_; | 1573 int scope_depth_; |
| 1570 }; | 1574 }; |
| 1571 | 1575 |
| 1572 } // namespace internal | 1576 } // namespace internal |
| 1573 } // namespace v8 | 1577 } // namespace v8 |
| 1574 | 1578 |
| 1575 #endif // V8_ISOLATE_H_ | 1579 #endif // V8_ISOLATE_H_ |
| OLD | NEW |