Lines Matching defs:isolate
37 void DebugInfo::ClearBreakInfo(Isolate* isolate) {
46 redirect_visitor.VisitThread(isolate, isolate->thread_local_top());
47 isolate->thread_manager()->IterateArchivedThreads(&redirect_visitor);
50 SharedFunctionInfo::UninstallDebugBytecode(shared(), isolate);
52 set_break_points(ReadOnlyRoots(isolate).empty_fixed_array());
80 bool DebugInfo::HasBreakPoint(Isolate* isolate, int source_position) {
83 Object break_point_info = GetBreakPointInfo(isolate, source_position);
87 if (break_point_info.IsUndefined(isolate)) return false;
88 return BreakPointInfo::cast(break_point_info).GetBreakPointCount(isolate) > 0;
92 Object DebugInfo::GetBreakPointInfo(Isolate* isolate, int source_position) {
95 if (!break_points().get(i).IsUndefined(isolate)) {
103 return ReadOnlyRoots(isolate).undefined_value();
106 bool DebugInfo::ClearBreakPoint(Isolate* isolate, Handle<DebugInfo> debug_info,
110 if (debug_info->break_points().get(i).IsUndefined(isolate)) continue;
112 BreakPointInfo::cast(debug_info->break_points().get(i)), isolate);
113 if (BreakPointInfo::HasBreakPoint(isolate, break_point_info, break_point)) {
114 BreakPointInfo::ClearBreakPoint(isolate, break_point_info, break_point);
121 void DebugInfo::SetBreakPoint(Isolate* isolate, Handle<DebugInfo> debug_info,
126 debug_info->GetBreakPointInfo(isolate, source_position), isolate);
127 if (!break_point_info->IsUndefined(isolate)) {
129 isolate, Handle<BreakPointInfo>::cast(break_point_info), break_point);
138 if (debug_info->break_points().get(i).IsUndefined(isolate)) {
146 Handle<FixedArray>(debug_info->break_points(), isolate);
147 Handle<FixedArray> new_break_points = isolate->factory()->NewFixedArray(
161 isolate->factory()->NewBreakPointInfo(source_position);
162 BreakPointInfo::SetBreakPoint(isolate, new_break_point_info, break_point);
167 Handle<Object> DebugInfo::GetBreakPoints(Isolate* isolate,
170 Object break_point_info = GetBreakPointInfo(isolate, source_position);
171 if (break_point_info.IsUndefined(isolate)) {
172 return isolate->factory()->undefined_value();
175 isolate);
179 int DebugInfo::GetBreakPointCount(Isolate* isolate) {
183 if (!break_points().get(i).IsUndefined(isolate)) {
186 count += break_point_info.GetBreakPointCount(isolate);
192 Handle<Object> DebugInfo::FindBreakPointInfo(Isolate* isolate,
197 if (!debug_info->break_points().get(i).IsUndefined(isolate)) {
199 BreakPointInfo::cast(debug_info->break_points().get(i)), isolate);
200 if (BreakPointInfo::HasBreakPoint(isolate, break_point_info,
206 return isolate->factory()->undefined_value();
213 void DebugInfo::ClearCoverageInfo(Isolate* isolate) {
215 set_coverage_info(ReadOnlyRoots(isolate).undefined_value());
222 DebugInfo::SideEffectState DebugInfo::GetSideEffectState(Isolate* isolate) {
225 DebugEvaluate::FunctionGetSideEffectState(isolate,
226 handle(shared(), isolate));
239 void BreakPointInfo::ClearBreakPoint(Isolate* isolate,
243 if (break_point_info->break_points().IsUndefined(isolate)) return;
249 ReadOnlyRoots(isolate).undefined_value());
256 FixedArray::cast(break_point_info->break_points()), isolate);
258 isolate->factory()->NewFixedArray(old_array->length() - 1);
273 void BreakPointInfo::SetBreakPoint(Isolate* isolate,
277 if (break_point_info->break_points().IsUndefined(isolate)) {
288 Handle<FixedArray> array = isolate->factory()->NewFixedArray(2);
296 FixedArray::cast(break_point_info->break_points()), isolate);
298 isolate->factory()->NewFixedArray(old_array->length() + 1);
309 bool BreakPointInfo::HasBreakPoint(Isolate* isolate,
313 if (break_point_info->break_points().IsUndefined(isolate)) {
332 Isolate* isolate, Handle<BreakPointInfo> break_point_info,
335 if (break_point_info->break_points().IsUndefined(isolate)) {
342 return handle(breakpoint, isolate);
350 return handle(breakpoint, isolate);
358 int BreakPointInfo::GetBreakPointCount(Isolate* isolate) {
360 if (break_points().IsUndefined(isolate)) return 0;
404 Isolate* isolate = info->GetIsolate();
406 SharedFunctionInfo::cast(info->shared_or_script()), isolate);
407 SharedFunctionInfo::EnsureSourcePositionsAvailable(isolate, shared);
408 int source_position = shared->abstract_code(isolate).SourcePosition(
416 void ErrorStackData::EnsureStackFrameInfos(Isolate* isolate,
422 Handle<FixedArray> call_site_infos(error_stack->call_site_infos(), isolate);
424 isolate->factory()->NewFixedArray(call_site_infos->length());
428 CallSiteInfo::cast(call_site_infos->get(i)), isolate);
433 if (!CallSiteInfo::GetScript(isolate, call_site_info).ToHandle(&script) ||
438 isolate->factory()->NewStackFrameInfo(
445 FixedArray::ShrinkOrEmpty(isolate, stack_frame_infos, index);
449 FixedArray::ShrinkOrEmpty(isolate, stack_frame_infos, -limit);
454 FixedArray::ShrinkOrEmpty(isolate, call_site_infos, limit);
464 Isolate* isolate = promise_on_stack->GetIsolate();
465 if (promise_on_stack->promise()->GetHeapObjectIfWeak(isolate, &promise)) {
466 return handle(JSObject::cast(promise), isolate);