Home | History | Annotate | Download | only in src

Lines Matching refs:Isolate

126 #define RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate) \
128 Isolate* __isolate__ = (isolate); \
137 #define RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, value) \
139 Isolate* __isolate__ = (isolate); \
147 #define RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, T) \
148 RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, MaybeHandle<T>())
150 #define ASSIGN_RETURN_ON_SCHEDULED_EXCEPTION_VALUE(isolate, dst, call, value) \
152 Isolate* __isolate__ = (isolate); \
160 #define RETURN_ON_SCHEDULED_EXCEPTION_VALUE(isolate, call, value) \
162 Isolate* __isolate__ = (isolate); \
179 * isolate,
188 #define RETURN_RESULT_OR_FAILURE(isolate, call) \
191 Isolate* __isolate__ = (isolate); \
200 #define ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value) \
203 DCHECK((isolate)->has_pending_exception()); \
208 #define ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, dst, call) \
210 Isolate* __isolate__ = (isolate); \
215 #define ASSIGN_RETURN_ON_EXCEPTION(isolate, dst, call, T) \
216 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, MaybeHandle<T>())
218 #define THROW_NEW_ERROR(isolate, call, T) \
220 Isolate* __isolate__ = (isolate); \
224 #define THROW_NEW_ERROR_RETURN_FAILURE(isolate, call) \
226 Isolate* __isolate__ = (isolate); \
230 #define THROW_NEW_ERROR_RETURN_VALUE(isolate, call, value) \
232 Isolate* __isolate__ = (isolate); \
245 * isolate,
255 * isolate,
267 #define RETURN_ON_EXCEPTION_VALUE(isolate, call, value) \
270 DCHECK((isolate)->has_pending_exception()); \
284 * isolate,
295 #define RETURN_FAILURE_ON_EXCEPTION(isolate, call) \
297 Isolate* __isolate__ = (isolate); \
310 * isolate,
322 #define RETURN_ON_EXCEPTION(isolate, call, T) \
323 RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>())
326 #define FOR_WITH_HANDLE_SCOPE(isolate, loop_var_type, init, loop_var, \
331 Isolate* for_with_handle_isolate = isolate; \
391 friend class Isolate;
402 // isolate being present.
406 void Initialize(Isolate*);
432 Isolate* isolate_ = nullptr;
442 // Communication channel between Isolate::FindHandler and the CEntry.
449 // Communication channel between Isolate::Throw and message consumers.
565 // HiddenFactory exists so Isolate can privately inherit from it without making
566 // Factory's members available to Isolate directly.
569 class Isolate : private HiddenFactory {
575 ~Isolate();
577 // A thread has a PerIsolateThreadData instance for each isolate that it has
578 // entered. That instance is allocated when the isolate is initially entered
582 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
583 : isolate_(isolate),
594 Isolate* isolate() const { return isolate_; }
604 bool Matches(Isolate* isolate, ThreadId thread_id) const {
605 return isolate_ == isolate && thread_id_.Equals(thread_id);
609 Isolate* isolate_;
621 friend class Isolate;
637 // Returns the isolate inside which the current thread is running.
638 V8_INLINE static Isolate* Current() {
640 Isolate* isolate = reinterpret_cast<Isolate*>(
642 DCHECK_NOT_NULL(isolate);
643 return isolate;
646 // Get the isolate that the given HeapObject lives in, returning true on
649 inline static bool FromWritableHeapObject(HeapObject* obj, Isolate** isolate);
653 // isolate.
661 // True if at least one thread Enter'ed this isolate.
665 // Sets default isolate into "has_been_disposed" state rather then destroying,
673 // Find the PerThread for this particular (isolate, thread) combination
677 // Find the PerThread for given (isolate, thread) combination
681 // Discard the PerThread for this particular (isolate, thread) combination
685 // Returns the key used to store the pointer to the current isolate.
687 // are part of the domain of an isolate (like the context switcher).
816 inline explicit ExceptionScope(Isolate* isolate);
820 Isolate* isolate_;
830 v8::Isolate::AbortOnUncaughtExceptionCallback callback);
975 DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
979 DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
987 DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
1012 // the isolate is fully initialized.
1233 // Isolate::context is not set up, e.g. when calling directly into C++ from
1379 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1380 void CountUsage(v8::Isolate::UseCounterFeature feature);
1408 void SetAtomicsWaitCallback(v8::Isolate::AtomicsWaitCallback callback,
1410 void RunAtomicsWaitCallback(v8::Isolate::AtomicsWaitEvent event,
1440 // trampolines, and sets up this isolate's embedded blob.
1515 // Register a finalizer to be called at isolate teardown.
1543 Isolate();
1552 // verified in Isolate::Init() using runtime checks.
1577 // the Isolate. The top of the stack points to a thread which is currently
1578 // running the Isolate. When the stack is empty, the Isolate is considered
1580 // If the same thread enters the Isolate more than once, the entry_count_
1585 Isolate* previous_isolate,
1594 Isolate* previous_isolate;
1614 static void SetIsolateThreadLocals(Isolate* isolate,
1617 // Find the PerThread for this particular (isolate, thread) combination.
1621 // Initializes the current thread to run this Isolate.
1622 // Not thread-safe. Multiple threads should not Enter/Exit the same isolate
1626 // Exits the current thread. The previosuly entered Isolate is restored
1628 // Not thread-safe. Multiple threads should not Enter/Exit the same isolate
1710 v8::Isolate::AtomicsWaitCallback atomics_wait_callback_;
1726 // Whether the isolate has been created for snapshotting.
1729 // True if fatal error has been signaled for this isolate.
1732 // True if this isolate was initialized from a snapshot.
1738 // True if the isolate is in background. This flag is used
1742 // True if the isolate is in memory savings mode. This flag is used to
1814 v8::Isolate::UseCounterCallback use_counter_callback_;
1839 v8::Isolate::AbortOnUncaughtExceptionCallback
1859 // thread_data_table_ is always accessed under the isolate lock. I do not
1874 friend class v8::Isolate;
1879 DISALLOW_COPY_AND_ASSIGN(Isolate);
1905 explicit SaveContext(Isolate* isolate);
1915 Isolate* const isolate_;
1925 explicit AssertNoContextChange(Isolate* isolate);
1931 Isolate* isolate_;
1935 explicit AssertNoContextChange(Isolate* isolate) { }
1942 explicit ExecutionAccess(Isolate* isolate) : isolate_(isolate) {
1943 Lock(isolate);
1947 static void Lock(Isolate* isolate) { isolate->break_access()->Lock(); }
1948 static void Unlock(Isolate* isolate) { isolate->break_access()->Unlock(); }
1950 static bool TryLock(Isolate* isolate) {
1951 return isolate->break_access()->TryLock();
1955 Isolate* isolate_;
1962 explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { }
1980 Isolate* isolate_;
1983 #define STACK_CHECK(isolate, result_value) \
1985 StackLimitCheck stack_check(isolate); \
1987 isolate->StackOverflow(); \
2008 InterruptsScope(Isolate* isolate, int intercept_mask, Mode mode)
2009 : stack_guard_(isolate->stack_guard()),
2032 PostponeInterruptsScope(Isolate* isolate,
2034 : InterruptsScope(isolate, intercept_mask,
2044 SafeForInterruptsScope(Isolate* isolate,
2046 : InterruptsScope(isolate, intercept_mask,
2053 explicit StackTraceFailureMessage(Isolate* isolate, void* ptr1 = nullptr,