Lines Matching full:isolate
36 #include "isolate-inl.h"
75 Isolate* isolate = function->GetIsolate();
78 VMState state(isolate, JS);
90 ? isolate->factory()->js_construct_entry_code()
91 : isolate->factory()->js_entry_code();
108 SaveContext save(isolate);
127 ASSERT(*has_pending_exception == Isolate::Current()->has_pending_exception());
129 isolate->ReportPendingMessages();
130 if (isolate->pending_exception() == Failure::OutOfMemoryException()) {
131 if (!isolate->ignore_out_of_memory()) {
137 isolate->clear_pending_message();
140 return Handle<Object>(value->ToObjectUnchecked(), isolate);
181 return Invoke(true, func, Isolate::Current()->global(), argc, argv,
205 Isolate* isolate = Isolate::Current();
206 ASSERT(isolate->has_pending_exception());
207 ASSERT(isolate->external_caught_exception());
208 if (isolate->pending_exception() ==
209 isolate->heap()->termination_exception()) {
210 result = isolate->factory()->termination_exception();
214 isolate->OptionalRescheduleException(true);
217 ASSERT(!Isolate::Current()->has_pending_exception());
218 ASSERT(!Isolate::Current()->external_caught_exception());
225 Isolate* isolate = Isolate::Current();
226 Factory* factory = isolate->factory();
243 isolate->global_context()->call_as_function_delegate());
253 Isolate* isolate = Isolate::Current();
267 isolate->global_context()->call_as_function_delegate());
272 i::Handle<i::Object> error_obj = isolate->factory()->NewTypeError(
274 isolate->Throw(*error_obj);
277 return isolate->factory()->undefined_value();
283 Isolate* isolate = Isolate::Current();
300 isolate->global_context()->call_as_constructor_delegate());
303 return isolate->factory()->undefined_value();
311 Isolate* isolate = Isolate::Current();
328 isolate->global_context()->call_as_constructor_delegate());
333 i::Handle<i::Object> error_obj = isolate->factory()->NewTypeError(
335 isolate->Throw(*error_obj);
338 return isolate->factory()->undefined_value();
523 Isolate::PerIsolateThreadData* per_thread =
540 bool StackGuard::ThreadLocal::Initialize(Isolate* isolate) {
548 real_jslimit_ = SimulatorStack::JsLimitFromCLimit(isolate, limit);
549 jslimit_ = SimulatorStack::JsLimitFromCLimit(isolate, limit);
569 Isolate::PerIsolateThreadData* per_thread =
583 Isolate* isolate = Isolate::Current(); \
586 return Call(isolate->name##_fun(), \
587 isolate->js_builtins_object(), \
667 Isolate* isolate = string->GetIsolate();
668 Factory* factory = isolate->factory();
676 GetProperty(isolate->js_builtins_object(),
700 Isolate* isolate = data->GetIsolate();
704 isolate->global_context()->function_cache()->
709 Handle<Object> result = Call(isolate->instantiate_fun(),
710 isolate->js_builtins_object(),
721 Isolate* isolate = data->GetIsolate();
727 HandleScope scope(isolate);
741 Handle<Object> result = Call(isolate->instantiate_fun(),
742 isolate->js_builtins_object(),
755 Isolate* isolate = Isolate::Current();
757 Execution::Call(isolate->configure_instance_fun(),
758 isolate->js_builtins_object(),
769 Isolate* isolate = fun->GetIsolate();
772 Handle<Object> result = TryCall(isolate->get_stack_trace_line_fun(),
773 isolate->js_builtins_object(),
778 return isolate->factory()->empty_symbol();
786 Isolate* isolate = Isolate::Current();
789 isolate->stack_guard()->Continue(PREEMPT);
794 if (isolate->debug()->InDebugger()) {
797 isolate->debug()->PreemptionWhileInDebugger();
800 v8::Unlocker unlocker(reinterpret_cast<v8::Isolate*>(isolate));
806 v8::Unlocker unlocker(reinterpret_cast<v8::Isolate*>(isolate));
811 return isolate->heap()->undefined_value();
817 Isolate* isolate = Isolate::Current();
820 if (isolate->debug()->disable_break()) {
821 return isolate->heap()->undefined_value();
825 if (isolate->bootstrapper()->IsActive()) {
826 return isolate->heap()->undefined_value();
829 StackLimitCheck check(isolate);
831 return isolate->heap()->undefined_value();
835 JavaScriptFrameIterator it(isolate);
841 return isolate->heap()->undefined_value();
845 if (isolate->debug()->IsDebugGlobal(global)) {
846 return isolate->heap()->undefined_value();
853 isolate->stack_guard()->IsDebugCommand() &&
854 !isolate->stack_guard()->IsDebugBreak();
857 isolate->stack_guard()->Continue(DEBUGBREAK);
862 return isolate->heap()->undefined_value();
866 Isolate* isolate = Isolate::Current();
868 isolate->stack_guard()->Continue(DEBUGCOMMAND);
870 StackLimitCheck check(isolate);
875 HandleScope scope(isolate);
884 isolate->debugger()->OnDebugBreak(isolate->factory()->undefined_value(),
891 MaybeObject* Execution::HandleStackGuardInterrupt(Isolate* isolate) {
892 StackGuard* stack_guard = isolate->stack_guard();
894 return isolate->heap()->undefined_value();
898 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
903 isolate->counters()->stack_interrupts()->Increment();
907 isolate->counters()->runtime_profiler_ticks()->Increment();
909 isolate->runtime_profiler()->OptimizeNow();
919 return isolate->TerminateExecution();
923 return isolate->StackOverflow();
925 return isolate->heap()->undefined_value();