Lines Matching refs:Handle
98 Handle<WasmCompiledModule>> {
101 Handle<WasmCompiledModule> start_module, bool at_end)
104 current_(at_end ? Handle<WasmCompiledModule>::null() : start_module) {}
106 Handle<WasmCompiledModule> operator*() const {
126 handle(WasmCompiledModule::cast(weak_next->value()), isolate_);
138 handle(WasmCompiledModule::cast(weak_prev->value()), isolate_);
142 current_ = Handle<WasmCompiledModule>::null();
147 Handle<WasmCompiledModule> start_module_;
148 Handle<WasmCompiledModule> current_;
156 Handle<WasmInstanceObject>> {
159 Handle<WasmCompiledModule> start_module,
165 Handle<WasmInstanceObject> operator*() {
166 return handle(
192 Isolate* isolate, Handle<WasmCompiledModule> compiled_module) {
198 bool IsBreakablePosition(Handle<WasmCompiledModule> compiled_module,
219 Handle<WasmModuleObject> WasmModuleObject::New(
220 Isolate* isolate, Handle<WasmCompiledModule> compiled_module) {
223 Handle<JSObject> module_object;
225 Handle<JSFunction> module_cons(
228 Handle<Symbol> module_sym(isolate->native_context()->wasm_module_sym());
233 Handle<Map> map = isolate->factory()->NewMap(
240 Handle<WeakCell> link_to_module =
243 return Handle<WasmModuleObject>::cast(module_object);
260 Handle<WasmTableObject> WasmTableObject::New(Isolate* isolate, uint32_t initial,
262 Handle<FixedArray>* js_functions) {
263 Handle<JSFunction> table_ctor(
265 Handle<JSObject> table_obj = isolate->factory()->NewJSObject(table_ctor);
272 Handle<Object> max = isolate->factory()->NewNumber(maximum);
275 Handle<FixedArray> dispatch_tables = isolate->factory()->NewFixedArray(0);
277 Handle<Symbol> table_sym(isolate->native_context()->wasm_table_sym());
279 return Handle<WasmTableObject>::cast(table_obj);
284 Handle<FixedArray> WasmTableObject::AddDispatchTable(
285 Isolate* isolate, Handle<WasmTableObject> table_obj,
286 Handle<WasmInstanceObject> instance, int table_index,
287 Handle<FixedArray> function_table, Handle<FixedArray> signature_table) {
288 Handle<FixedArray> dispatch_tables(
296 Handle<FixedArray> new_dispatch_tables =
329 void WasmTableObject::Grow(Isolate* isolate, Handle<WasmTableObject> table,
331 Handle<FixedArray> dispatch_tables(table->dispatch_tables());
336 Handle<WasmMemoryObject> WasmMemoryObject::New(Isolate* isolate,
337 Handle<JSArrayBuffer> buffer,
339 Handle<JSFunction> memory_ctor(
341 Handle<JSObject> memory_obj =
344 Handle<Object> max = isolate->factory()->NewNumber(maximum);
346 Handle<Symbol> memory_sym(isolate->native_context()->wasm_memory_sym());
348 return Handle<WasmMemoryObject>::cast(memory_obj);
374 Handle<WasmInstanceObject> instance) {
375 Handle<WasmInstanceWrapper> instance_wrapper =
376 handle(instance->instance_wrapper());
378 Handle<WasmInstanceWrapper> current_wrapper(instances_link());
388 Handle<Object> undefined = isolate->factory()->undefined_value();
411 Handle<WasmDebugInfo> WasmInstanceObject::GetOrCreateDebugInfo(
412 Handle<WasmInstanceObject> instance) {
413 if (instance->has_debug_info()) return handle(instance->debug_info());
414 Handle<WasmDebugInfo> new_info = WasmDebugInfo::New(instance);
444 Handle<WasmInstanceObject> WasmInstanceObject::New(
445 Isolate* isolate, Handle<WasmCompiledModule> compiled_module) {
446 Handle<JSFunction> instance_cons(
448 Handle<JSObject> instance_object =
450 Handle<Symbol> instance_sym(isolate->native_context()->wasm_instance_sym());
453 Handle<WasmInstanceObject> instance(
458 Handle<WasmInstanceWrapper> instance_wrapper =
480 Handle<WasmExportedFunction> WasmExportedFunction::New(
481 Isolate* isolate, Handle<WasmInstanceObject> instance,
483 Handle<Code> export_wrapper) {
484 Handle<String> name;
496 Handle<SharedFunctionInfo> shared =
500 Handle<JSFunction> function = isolate->factory()->NewFunction(
506 return Handle<WasmExportedFunction>::cast(function);
536 // handle both cases when the WasmModule's lifetime is managed through
551 Handle<WasmSharedModuleData> WasmSharedModuleData::New(
552 Isolate* isolate, Handle<Foreign> module_wrapper,
553 Handle<SeqOneByteString> module_bytes, Handle<Script> script,
554 Handle<ByteArray> asm_js_offset_table) {
555 Handle<FixedArray> arr =
570 return Handle<WasmSharedModuleData>::cast(arr);
581 Isolate* isolate, Handle<WasmSharedModuleData> shared) {
612 Handle<WasmModuleWrapper> module_wrapper =
627 Handle<FixedArray> breakpoint_infos,
651 void WasmSharedModuleData::AddBreakpoint(Handle<WasmSharedModuleData> shared,
653 Handle<Object> break_point_object) {
655 Handle<FixedArray> breakpoint_infos;
657 breakpoint_infos = handle(shared->breakpoint_infos(), isolate);
671 Handle<BreakPointInfo> old_info(
680 Handle<FixedArray> new_breakpoint_infos = breakpoint_infos;
698 Handle<BreakPointInfo> breakpoint_info =
707 Handle<WasmSharedModuleData> shared, Handle<WasmInstanceObject> instance) {
710 Handle<WasmCompiledModule> compiled_module(instance->compiled_module(),
712 Handle<WasmDebugInfo> debug_info =
715 Handle<FixedArray> breakpoint_infos(shared->breakpoint_infos(), isolate);
720 Handle<Object> obj(breakpoint_infos->get(i), isolate);
727 Handle<BreakPointInfo> breakpoint_info = Handle<BreakPointInfo>::cast(obj);
739 Handle<WasmCompiledModule> WasmCompiledModule::New(
740 Isolate* isolate, Handle<WasmSharedModuleData> shared) {
741 Handle<FixedArray> ret =
744 Handle<WasmCompiledModule> compiled_module(
762 Isolate* isolate, Handle<WasmCompiledModule> compiled_module,
765 Handle<SeqOneByteString> module_bytes(compiled_module->module_bytes(),
817 Isolate* isolate, Handle<WasmCompiledModule> compiled_module) {
821 Handle<WasmSharedModuleData> shared(
838 Isolate* isolate, Handle<WasmCompiledModule> compiled_module,
846 Handle<String> WasmCompiledModule::GetFunctionName(
847 Isolate* isolate, Handle<WasmCompiledModule> compiled_module,
921 Handle<ByteArray> GetDecodedAsmJsOffsetTable(
922 Handle<WasmCompiledModule> compiled_module, Isolate* isolate) {
924 Handle<ByteArray> offset_table(
959 Handle<ByteArray> decoded_table =
989 Handle<WasmCompiledModule> compiled_module, uint32_t func_index,
992 Handle<ByteArray> offset_table =
1114 Handle<WasmCompiledModule> compiled_module, int* position,
1115 Handle<Object> break_point_object) {
1134 for (Handle<WasmInstanceObject> instance :
1136 Handle<WasmDebugInfo> debug_info =
1148 Handle<FixedArray> breakpoint_infos(shared()->breakpoint_infos(), isolate);
1153 Handle<Object> maybe_breakpoint_info(breakpoint_infos->get(insert_pos),
1156 Handle<BreakPointInfo> breakpoint_info =
1157 Handle<BreakPointInfo>::cast(maybe_breakpoint_info);
1160 Handle<Object> breakpoint_objects(breakpoint_info->break_point_objects(),
1165 Handle<WasmInstanceWrapper> WasmInstanceWrapper::New(
1166 Isolate* isolate, Handle<WasmInstanceObject> instance) {
1167 Handle<FixedArray> array =
1169 Handle<WasmInstanceWrapper> instance_wrapper(
1171 Handle<WeakCell> cell = isolate->factory()->NewWeakCell(instance);
1178 Handle<FixedArray> array = handle(FixedArray::cast(obj));