Lines Matching refs:Handle
139 // TODO(wasm): Handle multi-value returns.
183 Handle<WasmInstanceObject> GetInstanceObject() {
187 Handle<WasmInstanceObject> instance_obj(frame->wasm_instance(), isolate_);
202 Handle<WasmCompiledModule> compiled_module(
205 Handle<FixedArray> breakpoints;
210 Handle<Object> hit_breakpoints_js =
240 int GetTopPosition(Handle<WasmCompiledModule> compiled_module) {
284 Isolate* isolate, Handle<WasmDebugInfo> debug_info) {
285 Handle<Object> handle(debug_info->get(WasmDebugInfo::kInterpreterHandle),
287 if (handle->IsUndefined(isolate)) {
289 handle = Managed<InterpreterHandle>::New(isolate, cpp_handle);
290 debug_info->set(WasmDebugInfo::kInterpreterHandle, *handle);
293 return Handle<Managed<InterpreterHandle>>::cast(handle)->get();
315 Handle<FixedArray> GetOrCreateInterpretedFunctions(
316 Isolate* isolate, Handle<WasmDebugInfo> debug_info) {
317 Handle<Object> obj(debug_info->get(WasmDebugInfo::kInterpretedFunctions),
319 if (!obj->IsUndefined(isolate)) return Handle<FixedArray>::cast(obj);
321 Handle<FixedArray> new_arr = isolate->factory()->NewFixedArray(
361 Handle<WasmDebugInfo> WasmDebugInfo::New(Handle<WasmInstanceObject> instance) {
364 Handle<FixedArray> arr = factory->NewFixedArray(kFieldCount, TENURED);
366 return Handle<WasmDebugInfo>::cast(arr);
390 void WasmDebugInfo::SetBreakpoint(Handle<WasmDebugInfo> debug_info,
393 InterpreterHandle* handle = GetOrCreateInterpreterHandle(isolate, debug_info);
395 const WasmFunction* func = &handle->module()->functions[func_index];
396 handle->interpreter()->SetBreakpoint(func, offset, true);
399 void WasmDebugInfo::RedirectToInterpreter(Handle<WasmDebugInfo> debug_info,
405 Handle<FixedArray> interpreted_functions =
411 Handle<WasmInstanceObject> instance(debug_info->wasm_instance(), isolate);
412 Handle<Code> new_code = compiler::CompileWasmInterpreterEntry(
417 Handle<FixedArray> code_table = instance->compiled_module()->code_table();
418 Handle<Code> old_code(Code::cast(code_table->get(func_index)), isolate);
445 auto handle = GetInterpreterHandleOrNull(this);
446 return handle ? handle->NumInterpretedCalls() : 0;