Lines Matching refs:Handle

31     : debug_context_(Handle<Context>()),  in Debug()
32 event_listener_(Handle<Object>()), in Debug()
33 event_listener_data_(Handle<Object>()), in Debug()
52 static v8::Handle<v8::Context> GetDebugEventContext(Isolate* isolate) { in GetDebugEventContext()
53 Handle<Context> context = isolate->debug()->debugger_entry()->GetContext(); in GetDebugEventContext()
57 Handle<Context> native_context(context->native_context()); in GetDebugEventContext()
62 BreakLocationIterator::BreakLocationIterator(Handle<DebugInfo> debug_info, in BreakLocationIterator()
269 void BreakLocationIterator::SetBreakPoint(Handle<Object> break_point_object) { in SetBreakPoint()
281 void BreakLocationIterator::ClearBreakPoint(Handle<Object> break_point_object) { in ClearBreakPoint()
371 Handle<Code> target_code(Code::GetCodeFromTargetAddress(target)); in IsStepInLocation()
387 Handle<Code> target_code(Code::GetCodeFromTargetAddress(target)); in PrepareStepIn()
390 Handle<Code> maybe_call_function_stub = target_code; in PrepareStepIn()
394 Handle<Code>(Code::GetCodeFromTargetAddress(original_target)); in PrepareStepIn()
439 static Handle<Code> DebugBreakForIC(Handle<Code> code, RelocInfo::Mode mode) { in DebugBreakForIC()
481 return Handle<Code>::null(); in DebugBreakForIC()
493 Handle<Code> target_code(Code::GetCodeFromTargetAddress(target)); in SetDebugBreakAtIC()
497 Handle<Code> dbgbrk_code = DebugBreakForIC(target_code, mode); in SetDebugBreakAtIC()
608 Add(Handle<Script>(Script::cast(obj))); in ScriptCache()
614 void ScriptCache::Add(Handle<Script> script) { in Add()
624 Handle<Script> found(reinterpret_cast<Script**>(entry->value)); in Add()
633 Handle<Script> script_ = in Add()
634 Handle<Script>::cast(global_handles->Create(*script)); in Add()
642 Handle<FixedArray> ScriptCache::GetScripts() { in GetScripts()
644 Handle<FixedArray> instances = factory->NewFixedArray(occupancy()); in GetScripts()
674 Handle<Object> object = Utils::OpenHandle(*data.GetValue()); in HandleWeakScript()
675 int id = Handle<Script>::cast(object)->id()->value(); in HandleWeakScript()
716 debug_info_ = Handle<DebugInfo>::cast(global_handles->Create(debug_info)); in DebugInfoListNode()
736 Handle<String> source_code = in CompileDebuggerScript()
739 Handle<String> script_name = in CompileDebuggerScript()
741 Handle<Context> context = isolate->native_context(); in CompileDebuggerScript()
744 Handle<SharedFunctionInfo> function_info; in CompileDebuggerScript()
757 Handle<JSFunction> function = in CompileDebuggerScript()
769 Handle<Object> message = MessageHandler::MakeMessageObject( in CompileDebuggerScript()
771 Vector<Handle<Object> >::empty(), Handle<JSArray>()); in CompileDebuggerScript()
773 Handle<Object> exception; in CompileDebuggerScript()
783 Handle<Script> script(Script::cast(function->shared()->script())); in CompileDebuggerScript()
806 Handle<Context> context = in Load()
809 v8::Handle<ObjectTemplate>(), in Load()
820 Handle<String> key = isolate_->factory()->InternalizeOneByteString( in Load()
822 Handle<GlobalObject> global = in Load()
823 Handle<GlobalObject>(context->global_object(), isolate_); in Load()
824 Handle<JSBuiltinsObject> builtin = in Load()
825 Handle<JSBuiltinsObject>(global->builtins(), isolate_); in Load()
841 debug_context_ = Handle<Context>::cast( in Load()
861 GlobalHandles::Destroy(Handle<Object>::cast(debug_context_).location()); in Unload()
862 debug_context_ = Handle<Context>(); in Unload()
885 Handle<SharedFunctionInfo> shared = in Break()
886 Handle<SharedFunctionInfo>(frame->function()->shared()); in Break()
887 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in Break()
906 Handle<Object> break_points_hit(heap->undefined_value(), isolate_); in Break()
908 Handle<Object> break_point_objects = in Break()
909 Handle<Object>(break_location_iterator.BreakPointObjects(), isolate_); in Break()
991 Handle<Object> Debug::CheckBreakPoints(Handle<Object> break_point_objects) { in CheckBreakPoints()
996 Handle<FixedArray> break_points_hit; in CheckBreakPoints()
1000 Handle<FixedArray> array(FixedArray::cast(*break_point_objects)); in CheckBreakPoints()
1003 Handle<Object> o(array->get(i), isolate_); in CheckBreakPoints()
1020 Handle<JSArray> result = factory->NewJSArrayWithElements(break_points_hit); in CheckBreakPoints()
1027 bool Debug::CheckBreakPoint(Handle<Object> break_point_object) { in CheckBreakPoint()
1035 Handle<String> is_break_point_triggered_string = in CheckBreakPoint()
1038 Handle<GlobalObject> debug_global(debug_context()->global_object()); in CheckBreakPoint()
1039 Handle<JSFunction> check_break_point = in CheckBreakPoint()
1040 Handle<JSFunction>::cast(Object::GetProperty( in CheckBreakPoint()
1044 Handle<Object> break_id = factory->NewNumberFromInt(Debug::break_id()); in CheckBreakPoint()
1047 Handle<Object> argv[] = { break_id, break_point_object }; in CheckBreakPoint()
1048 Handle<Object> result; in CheckBreakPoint()
1062 bool Debug::HasDebugInfo(Handle<SharedFunctionInfo> shared) { in HasDebugInfo()
1069 Handle<DebugInfo> Debug::GetDebugInfo(Handle<SharedFunctionInfo> shared) { in GetDebugInfo()
1071 return Handle<DebugInfo>(DebugInfo::cast(shared->debug_info())); in GetDebugInfo()
1075 bool Debug::SetBreakPoint(Handle<JSFunction> function, in SetBreakPoint()
1076 Handle<Object> break_point_object, in SetBreakPoint()
1083 Handle<SharedFunctionInfo> shared(function->shared()); in SetBreakPoint()
1089 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetBreakPoint()
1105 bool Debug::SetBreakPointForScript(Handle<Script> script, in SetBreakPointForScript()
1106 Handle<Object> break_point_object, in SetBreakPointForScript()
1118 Handle<SharedFunctionInfo> shared(SharedFunctionInfo::cast(result)); in SetBreakPointForScript()
1119 if (!EnsureDebugInfo(shared, Handle<JSFunction>::null())) { in SetBreakPointForScript()
1133 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetBreakPointForScript()
1150 void Debug::ClearBreakPoint(Handle<Object> break_point_object) { in ClearBreakPoint()
1160 Handle<DebugInfo> debug_info = node->debug_info(); in ClearBreakPoint()
1197 void Debug::FloodWithOneShot(Handle<JSFunction> function) { in FloodWithOneShot()
1201 Handle<SharedFunctionInfo> shared(function->shared()); in FloodWithOneShot()
1216 void Debug::FloodBoundFunctionWithOneShot(Handle<JSFunction> function) { in FloodBoundFunctionWithOneShot()
1217 Handle<FixedArray> new_bindings(function->function_bindings()); in FloodBoundFunctionWithOneShot()
1218 Handle<Object> bindee(new_bindings->get(JSFunction::kBoundFunctionIndex), in FloodBoundFunctionWithOneShot()
1223 Handle<JSFunction> bindee_function(JSFunction::cast(*bindee)); in FloodBoundFunctionWithOneShot()
1240 FloodWithOneShot(Handle<JSFunction>(frame->function())); in FloodHandlerWithOneShot()
1265 bool Debug::PromiseHasRejectHandler(Handle<JSObject> promise) { in PromiseHasRejectHandler()
1266 Handle<JSFunction> fun = Handle<JSFunction>::cast( in PromiseHasRejectHandler()
1270 Handle<Object> result = in PromiseHasRejectHandler()
1323 FloodWithOneShot(Handle<JSFunction>(function)); in PrepareStep()
1328 Handle<JSFunction> function(frame->function()); in PrepareStep()
1329 Handle<SharedFunctionInfo> shared(function->shared()); in PrepareStep()
1334 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in PrepareStep()
1346 Handle<Code> call_function_stub; in PrepareStep()
1376 call_function_stub = Handle<Code>(maybe_call_function_stub); in PrepareStep()
1404 FloodWithOneShot(Handle<JSFunction>(function)); in PrepareStep()
1424 Handle<JSFunction> restarted_function( in PrepareStep()
1471 Handle<JSFunction> js_function(JSFunction::cast(fun)); in PrepareStep()
1551 Handle<Object> Debug::GetSourceBreakLocations( in GetSourceBreakLocations()
1552 Handle<SharedFunctionInfo> shared, in GetSourceBreakLocations()
1557 return Handle<Object>(heap->undefined_value(), isolate); in GetSourceBreakLocations()
1559 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in GetSourceBreakLocations()
1561 return Handle<Object>(heap->undefined_value(), isolate); in GetSourceBreakLocations()
1563 Handle<FixedArray> locations = in GetSourceBreakLocations()
1593 void Debug::HandleStepIn(Handle<JSFunction> function, in HandleStepIn()
1594 Handle<Object> holder, in HandleStepIn()
1627 Handle<JSFunction> js_function = Handle<JSFunction>::cast(holder); in HandleStepIn()
1707 List<Handle<JSFunction> >* active_functions, in CollectActiveFunctionsFromThread()
1720 active_functions->Add(Handle<JSFunction>(function)); in CollectActiveFunctionsFromThread()
1726 active_functions->Add(Handle<JSFunction>(function)); in CollectActiveFunctionsFromThread()
1798 Handle<Code> frame_code(frame->LookupCode()); in RedirectActivationsToRecompiledCodeOnThread()
1801 Handle<Code> new_code(function->shared()->code()); in RedirectActivationsToRecompiledCodeOnThread()
1848 explicit ActiveFunctionsCollector(List<Handle<JSFunction> >* active_functions, in ActiveFunctionsCollector()
1861 List<Handle<JSFunction> >* active_functions_;
1874 static void EnsureFunctionHasDebugBreakSlots(Handle<JSFunction> function) { in EnsureFunctionHasDebugBreakSlots()
1894 const List<Handle<JSGeneratorObject> > &generators) { in RecompileAndRelocateSuspendedGenerators()
1896 Handle<JSFunction> fun(generators[i]->function()); in RecompileAndRelocateSuspendedGenerators()
1917 Handle<Code> lazy_compile = isolate_->builtins()->CompileLazy(); in PrepareForBreakPoints()
1924 List<Handle<JSFunction> > active_functions(100); in PrepareForBreakPoints()
1927 List<Handle<JSGeneratorObject> > suspended_generators; in PrepareForBreakPoints()
1939 List<Handle<JSFunction> > generator_functions; in PrepareForBreakPoints()
1979 generator_functions.Add(Handle<JSFunction>(function, isolate_)); in PrepareForBreakPoints()
2019 suspended_generators.Add(Handle<JSGeneratorObject>(gen, isolate_)); in PrepareForBreakPoints()
2025 Handle<JSFunction> function = active_functions[i]; in PrepareForBreakPoints()
2037 Handle<JSFunction> &function = generator_functions[i]; in PrepareForBreakPoints()
2050 Handle<JSFunction> function = active_functions[i]; in PrepareForBreakPoints()
2051 Handle<SharedFunctionInfo> shared(function->shared()); in PrepareForBreakPoints()
2071 Object* Debug::FindSharedFunctionInfoInScript(Handle<Script> script, in FindSharedFunctionInfoInScript()
2087 Handle<JSFunction> target_function; in FindSharedFunctionInfoInScript()
2088 Handle<SharedFunctionInfo> target; in FindSharedFunctionInfoInScript()
2096 Handle<JSFunction> function; in FindSharedFunctionInfoInScript()
2097 Handle<SharedFunctionInfo> shared; in FindSharedFunctionInfoInScript()
2099 function = Handle<JSFunction>(JSFunction::cast(obj)); in FindSharedFunctionInfoInScript()
2100 shared = Handle<SharedFunctionInfo>(function->shared()); in FindSharedFunctionInfoInScript()
2104 shared = Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(obj)); in FindSharedFunctionInfoInScript()
2177 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared, in EnsureDebugInfo()
2178 Handle<JSFunction> function) { in EnsureDebugInfo()
2197 Handle<DebugInfo> debug_info = isolate->factory()->NewDebugInfo(shared); in EnsureDebugInfo()
2208 void Debug::RemoveDebugInfo(Handle<DebugInfo> debug_info) { in RemoveDebugInfo()
2248 Handle<JSFunction> function(JSFunction::cast(frame->function())); in SetAfterBreakTarget()
2249 Handle<SharedFunctionInfo> shared(function->shared()); in SetAfterBreakTarget()
2254 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in SetAfterBreakTarget()
2255 Handle<Code> code(debug_info->code()); in SetAfterBreakTarget()
2256 Handle<Code> original_code(debug_info->original_code()); in SetAfterBreakTarget()
2259 Handle<Code> frame_code(frame->LookupCode()); in SetAfterBreakTarget()
2342 Handle<JSFunction> function(JSFunction::cast(frame->function())); in IsBreakAtReturn()
2343 Handle<SharedFunctionInfo> shared(function->shared()); in IsBreakAtReturn()
2348 Handle<DebugInfo> debug_info = GetDebugInfo(shared); in IsBreakAtReturn()
2349 Handle<Code> code(debug_info->code()); in IsBreakAtReturn()
2352 Handle<Code> frame_code(frame->LookupCode()); in IsBreakAtReturn()
2394 Handle<GlobalObject> global(isolate_->global_object()); in ClearMirrorCache()
2404 Handle<FixedArray> Debug::GetLoadedScripts() { in GetLoadedScripts()
2419 void Debug::RecordEvalCaller(Handle<Script> script) { in RecordEvalCaller()
2436 Handle<Object> argv[]) { in MakeJSObject()
2439 Handle<GlobalObject> global(isolate_->global_object()); in MakeJSObject()
2440 Handle<Object> constructor = Object::GetProperty( in MakeJSObject()
2446 return Execution::TryCall(Handle<JSFunction>::cast(constructor), in MakeJSObject()
2455 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()) }; in MakeExecutionState()
2460 MaybeHandle<Object> Debug::MakeBreakEvent(Handle<Object> break_points_hit) { in MakeBreakEvent()
2462 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()), in MakeBreakEvent()
2468 MaybeHandle<Object> Debug::MakeExceptionEvent(Handle<Object> exception, in MakeExceptionEvent()
2470 Handle<Object> promise) { in MakeExceptionEvent()
2472 Handle<Object> argv[] = { isolate_->factory()->NewNumberFromInt(break_id()), in MakeExceptionEvent()
2480 MaybeHandle<Object> Debug::MakeCompileEvent(Handle<Script> script, in MakeCompileEvent()
2483 Handle<Object> script_wrapper = Script::GetWrapper(script); in MakeCompileEvent()
2484 Handle<Object> argv[] = { script_wrapper, in MakeCompileEvent()
2490 MaybeHandle<Object> Debug::MakePromiseEvent(Handle<JSObject> event_data) { in MakePromiseEvent()
2492 Handle<Object> argv[] = { event_data }; in MakePromiseEvent()
2497 MaybeHandle<Object> Debug::MakeAsyncTaskEvent(Handle<JSObject> task_event) { in MakeAsyncTaskEvent()
2499 Handle<Object> argv[] = { task_event }; in MakeAsyncTaskEvent()
2504 void Debug::OnThrow(Handle<Object> exception, bool uncaught) { in OnThrow()
2509 Handle<Object> scheduled_exception; in OnThrow()
2521 void Debug::OnPromiseReject(Handle<JSObject> promise, Handle<Object> value) { in OnPromiseReject()
2528 void Debug::OnException(Handle<Object> exception, bool uncaught, in OnException()
2529 Handle<Object> promise) { in OnException()
2531 uncaught |= !PromiseHasRejectHandler(Handle<JSObject>::cast(promise)); in OnException()
2549 Handle<Object> event_data; in OnException()
2557 ProcessDebugEvent(v8::Exception, Handle<JSObject>::cast(event_data), false); in OnException()
2562 void Debug::OnCompileError(Handle<Script> script) { in OnCompileError()
2571 Handle<Object> event_data; in OnCompileError()
2576 ProcessDebugEvent(v8::CompileError, Handle<JSObject>::cast(event_data), true); in OnCompileError()
2580 void Debug::OnDebugBreak(Handle<Object> break_points_hit, in OnDebugBreak()
2589 Handle<Object> event_data; in OnDebugBreak()
2595 Handle<JSObject>::cast(event_data), in OnDebugBreak()
2600 void Debug::OnBeforeCompile(Handle<Script> script) { in OnBeforeCompile()
2608 Handle<Object> event_data; in OnBeforeCompile()
2615 Handle<JSObject>::cast(event_data), in OnBeforeCompile()
2621 void Debug::OnAfterCompile(Handle<Script> script) { in OnAfterCompile()
2636 Handle<String> update_script_break_points_string = in OnAfterCompile()
2639 Handle<GlobalObject> debug_global(debug_context()->global_object()); in OnAfterCompile()
2640 Handle<Object> update_script_break_points = in OnAfterCompile()
2650 Handle<Object> wrapper = Script::GetWrapper(script); in OnAfterCompile()
2653 Handle<Object> argv[] = { wrapper }; in OnAfterCompile()
2654 if (Execution::TryCall(Handle<JSFunction>::cast(update_script_break_points), in OnAfterCompile()
2662 Handle<Object> event_data; in OnAfterCompile()
2667 ProcessDebugEvent(v8::AfterCompile, Handle<JSObject>::cast(event_data), true); in OnAfterCompile()
2671 void Debug::OnPromiseEvent(Handle<JSObject> data) { in OnPromiseEvent()
2679 Handle<Object> event_data; in OnPromiseEvent()
2685 Handle<JSObject>::cast(event_data), in OnPromiseEvent()
2690 void Debug::OnAsyncTaskEvent(Handle<JSObject> data) { in OnAsyncTaskEvent()
2698 Handle<Object> event_data; in OnAsyncTaskEvent()
2704 Handle<JSObject>::cast(event_data), in OnAsyncTaskEvent()
2710 Handle<JSObject> event_data, in ProcessDebugEvent()
2715 Handle<Object> exec_state; in ProcessDebugEvent()
2722 Handle<JSObject>::cast(exec_state), in ProcessDebugEvent()
2749 Handle<Object> exec_state, in CallEventCallback()
2750 Handle<Object> event_data, in CallEventCallback()
2756 Handle<Foreign>::cast(event_listener_)->foreign_address()); in CallEventCallback()
2758 Handle<JSObject>::cast(exec_state), in CallEventCallback()
2759 Handle<JSObject>::cast(event_data), in CallEventCallback()
2767 Handle<Object> argv[] = { Handle<Object>(Smi::FromInt(event), isolate_), in CallEventCallback()
2771 Handle<JSReceiver> global(isolate_->global_proxy()); in CallEventCallback()
2772 Execution::TryCall(Handle<JSFunction>::cast(event_listener_), in CallEventCallback()
2778 Handle<Context> Debug::GetDebugContext() { in GetDebugContext()
2786 Handle<JSObject> exec_state, in NotifyMessageHandler()
2787 Handle<JSObject> event_data, in NotifyMessageHandler()
2827 Handle<JSObject>::cast(exec_state), in NotifyMessageHandler()
2828 Handle<JSObject>::cast(event_data)); in NotifyMessageHandler()
2841 Handle<Object> cmd_processor_ctor = Object::GetProperty( in NotifyMessageHandler()
2843 Handle<Object> ctor_args[] = { isolate_->factory()->ToBoolean(running) }; in NotifyMessageHandler()
2844 Handle<Object> cmd_processor = Execution::Call( in NotifyMessageHandler()
2846 Handle<JSFunction> process_debug_request = Handle<JSFunction>::cast( in NotifyMessageHandler()
2849 Handle<Object> is_running = Object::GetProperty( in NotifyMessageHandler()
2870 Handle<String> request_text = isolate_->factory()->NewStringFromTwoByte( in NotifyMessageHandler()
2872 Handle<Object> request_args[] = { request_text }; in NotifyMessageHandler()
2873 Handle<Object> answer_value; in NotifyMessageHandler()
2874 Handle<String> answer; in NotifyMessageHandler()
2884 answer = Handle<String>::cast(answer_value); in NotifyMessageHandler()
2893 Handle<Object> is_running_args[] = { answer }; in NotifyMessageHandler()
2896 Handle<Object> result; in NotifyMessageHandler()
2900 Handle<Object> exception; in NotifyMessageHandler()
2902 Handle<Object> result; in NotifyMessageHandler()
2904 answer = Handle<String>::cast(result); in NotifyMessageHandler()
2921 void Debug::SetEventListener(Handle<Object> callback, in SetEventListener()
2922 Handle<Object> data) { in SetEventListener()
2927 event_listener_ = Handle<Object>(); in SetEventListener()
2929 event_listener_data_ = Handle<Object>(); in SetEventListener()
3004 MaybeHandle<Object> Debug::Call(Handle<JSFunction> fun, Handle<Object> data) { in Call()
3009 Handle<Object> exec_state; in Call()
3014 Handle<Object> argv[] = { exec_state, data }; in Call()
3018 Handle<Object>(debug_context()->global_proxy(), isolate_), in Call()
3129 Handle<JSObject> exec_state, in NewEvent()
3130 Handle<JSObject> event_data) { in NewEvent()
3132 exec_state, event_data, Handle<String>(), NULL); in NewEvent()
3139 Handle<JSObject> exec_state, in NewResponse()
3140 Handle<JSObject> event_data, in NewResponse()
3141 Handle<String> response_json, in NewResponse()
3152 Handle<JSObject> exec_state, in MessageImpl()
3153 Handle<JSObject> event_data, in MessageImpl()
3154 Handle<String> response_json, in MessageImpl()
3185 v8::Handle<v8::Object> MessageImpl::GetExecutionState() const { in GetExecutionState()
3195 v8::Handle<v8::Object> MessageImpl::GetEventData() const { in GetEventData()
3200 v8::Handle<v8::String> MessageImpl::GetJSON() const { in GetJSON()
3206 Handle<Object> fun = Object::GetProperty( in GetJSON()
3209 return v8::Handle<v8::String>(); in GetJSON()
3213 Execution::TryCall(Handle<JSFunction>::cast(fun), event_data_, 0, NULL); in GetJSON()
3214 Handle<Object> json; in GetJSON()
3216 return v8::Handle<v8::String>(); in GetJSON()
3218 return scope.Escape(v8::Utils::ToLocal(Handle<String>::cast(json))); in GetJSON()
3225 v8::Handle<v8::Context> MessageImpl::GetEventContext() const { in GetEventContext()
3227 v8::Handle<v8::Context> context = GetDebugEventContext(isolate); in GetEventContext()
3240 Handle<JSObject> exec_state, in EventDetailsImpl()
3241 Handle<JSObject> event_data, in EventDetailsImpl()
3242 Handle<Object> callback_data, in EventDetailsImpl()
3256 v8::Handle<v8::Object> EventDetailsImpl::GetExecutionState() const { in GetExecutionState()
3261 v8::Handle<v8::Object> EventDetailsImpl::GetEventData() const { in GetEventData()
3266 v8::Handle<v8::Context> EventDetailsImpl::GetEventContext() const { in GetEventContext()
3271 v8::Handle<v8::Value> EventDetailsImpl::GetCallbackData() const { in GetCallbackData()