Home | History | Annotate | Download | only in src

Lines Matching defs:Isolate

108 #define RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate)    \
110 Isolate* __isolate__ = (isolate); \
118 #define RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, value) \
120 Isolate* __isolate__ = (isolate); \
127 #define RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, T) \
128 RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, MaybeHandle<T>())
130 #define RETURN_RESULT_OR_FAILURE(isolate, call) \
133 Isolate* __isolate__ = (isolate); \
141 #define ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value) \
144 DCHECK((isolate)->has_pending_exception()); \
149 #define ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, dst, call) \
151 Isolate* __isolate__ = (isolate); \
156 #define ASSIGN_RETURN_ON_EXCEPTION(isolate, dst, call, T) \
157 ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, MaybeHandle<T>())
159 #define THROW_NEW_ERROR(isolate, call, T) \
161 Isolate* __isolate__ = (isolate); \
165 #define THROW_NEW_ERROR_RETURN_FAILURE(isolate, call) \
167 Isolate* __isolate__ = (isolate); \
171 #define RETURN_ON_EXCEPTION_VALUE(isolate, call, value) \
174 DCHECK((isolate)->has_pending_exception()); \
179 #define RETURN_FAILURE_ON_EXCEPTION(isolate, call) \
181 Isolate* __isolate__ = (isolate); \
186 #define RETURN_ON_EXCEPTION(isolate, call, T) \
187 RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>())
204 #define FOR_WITH_HANDLE_SCOPE(isolate, loop_var_type, init, loop_var, \
209 Isolate* for_with_handle_isolate = isolate; \
267 friend class Isolate;
279 // isolate being present.
309 Isolate* isolate_;
316 // Communication channel between Isolate::FindHandler and the CEntryStub.
323 // Communication channel between Isolate::Throw and message consumers.
437 class Isolate {
443 ~Isolate();
445 // A thread has a PerIsolateThreadData instance for each isolate that it has
446 // entered. That instance is allocated when the isolate is initially entered
450 PerIsolateThreadData(Isolate* isolate, ThreadId thread_id)
451 : isolate_(isolate),
461 Isolate* isolate() const { return isolate_; }
471 bool Matches(Isolate* isolate, ThreadId thread_id) const {
472 return isolate_ == isolate && thread_id_.Equals(thread_id);
476 Isolate* isolate_;
488 friend class Isolate;
512 // Returns the isolate inside which the current thread is running.
513 INLINE(static Isolate* Current()) {
515 Isolate* isolate = reinterpret_cast<Isolate*>(
517 DCHECK(isolate != NULL);
518 return isolate;
523 // isolate.
530 // True if at least one thread Enter'ed this isolate.
534 // Sets default isolate into "has_been_disposed" state rather then destroying,
542 // Find the PerThread for this particular (isolate, thread) combination
546 // Find the PerThread for given (isolate, thread) combination
550 // Discard the PerThread for this particular (isolate, thread) combination
554 // Returns the key used to store the pointer to the current isolate.
556 // are part of the domain of an isolate (like the context switcher).
671 inline explicit ExceptionScope(Isolate* isolate);
675 Isolate* isolate_;
685 v8::Isolate::AbortOnUncaughtExceptionCallback callback);
800 DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
804 DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
812 DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
827 // the isolate is fully initialized.
835 // the isolate is fully initialized.
1073 // Get (and lazily initialize) the registry for per-isolate symbols.
1096 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1097 void CountUsage(v8::Isolate::UseCounterFeature feature);
1144 explicit Isolate(bool enable_serializer);
1155 // verified in Isolate::Init() using runtime checks.
1166 PerIsolateThreadData* Lookup(Isolate* isolate, ThreadId thread_id);
1169 void RemoveAllThreads(Isolate* isolate);
1176 // the Isolate. The top of the stack points to a thread which is currently
1177 // running the Isolate. When the stack is empty, the Isolate is considered
1179 // If the same thread enters the Isolate more then once, the entry_count_
1184 Isolate* previous_isolate,
1193 Isolate* previous_isolate;
1216 static void SetIsolateThreadLocals(Isolate* isolate,
1219 // Find the PerThread for this particular (isolate, thread) combination.
1223 // Initializes the current thread to run this Isolate.
1224 // Not thread-safe. Multiple threads should not Enter/Exit the same isolate
1228 // Exits the current thread. The previosuly entered Isolate is restored
1230 // Not thread-safe. Multiple threads should not Enter/Exit the same isolate
1320 // Whether the isolate has been created for snapshotting.
1323 // True if fatal error has been signaled for this isolate.
1326 // True if this isolate was initialized from a snapshot.
1401 v8::Isolate::UseCounterCallback use_counter_callback_;
1412 v8::Isolate::AbortOnUncaughtExceptionCallback
1423 friend class v8::Isolate;
1431 DISALLOW_COPY_AND_ASSIGN(Isolate);
1460 explicit SaveContext(Isolate* isolate);
1472 Isolate* isolate_;
1482 explicit AssertNoContextChange(Isolate* isolate);
1488 Isolate* isolate_;
1492 explicit AssertNoContextChange(Isolate* isolate) { }
1499 explicit ExecutionAccess(Isolate* isolate) : isolate_(isolate) {
1500 Lock(isolate);
1504 static void Lock(Isolate* isolate) { isolate->break_access()->Lock(); }
1505 static void Unlock(Isolate* isolate) { isolate->break_access()->Unlock(); }
1507 static bool TryLock(Isolate* isolate) {
1508 return isolate->break_access()->TryLock();
1512 Isolate* isolate_;
1519 explicit StackLimitCheck(Isolate* isolate) : isolate_(isolate) { }
1537 Isolate* isolate_;
1540 #define STACK_CHECK(isolate, result_value) \
1542 StackLimitCheck stack_check(isolate); \
1544 isolate->Throw(*isolate->factory()->NewRangeError( \
1556 PostponeInterruptsScope(Isolate* isolate,
1558 : stack_guard_(isolate->stack_guard()),