Home | History | Annotate | Download | only in wasm

Lines Matching refs:Handle

40 // in it, rather, use a provided ErrorThrower, or let caller handle it.
41 static bool HasBrand(i::Handle<i::Object> value, i::Handle<i::Symbol> sym) {
43 i::Handle<i::JSObject> object = i::Handle<i::JSObject>::cast(value);
48 static bool BrandCheck(i::Handle<i::Object> value, i::Handle<i::Symbol> sym,
53 i::Handle<i::String> v8_str(i::Isolate* isolate, const char* str) {
69 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
71 i::handle(i_context->wasm_module_sym()), thrower,
77 return i::Handle<i::WasmModuleObject>::cast(
158 // TODO(titzer): use the handle as well?
172 return i::Handle<i::JSReceiver>::cast(v8::Utils::OpenHandle(*obj));
194 i::Handle<i::JSPromise> promise = Utils::OpenHandle(*resolver->GetPromise());
279 i::Handle<i::Object> name = Utils::OpenHandle(*args[1]);
287 i::Handle<i::String>::cast(name), &thrower);
327 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
342 i::Handle<i::Object> first_arg = Utils::OpenHandle(*args[0]);
360 i::Handle<i::JSPromise> promise = Utils::OpenHandle(*resolver->GetPromise());
361 if (HasBrand(first_arg, i::Handle<i::Symbol>(i_context->wasm_module_sym()))) {
452 i::Handle<i::FixedArray> fixed_array;
453 i::Handle<i::JSObject> table_obj =
491 i::Handle<i::JSArrayBuffer> buffer =
497 i::Handle<i::JSObject> memory_obj =
509 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
511 i::Handle<i::Symbol>(i_context->wasm_table_sym()), &thrower,
516 i::Handle<i::WasmTableObject>::cast(Utils::OpenHandle(*args.This()));
528 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
530 i::Handle<i::Symbol>(i_context->wasm_table_sym()), &thrower,
536 i::Handle<i::WasmTableObject>::cast(Utils::OpenHandle(*args.This()));
537 i::Handle<i::FixedArray> old_array(receiver->functions(), i_isolate);
562 i::Handle<i::FixedArray> new_array =
582 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
584 i::Handle<i::Symbol>(i_context->wasm_table_sym()), &thrower,
590 i::Handle<i::WasmTableObject>::cast(Utils::OpenHandle(*args.This()));
591 i::Handle<i::FixedArray> array(receiver->functions(), i_isolate);
600 i::Handle<i::Object> value(array->get(i), i_isolate);
611 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
613 i::Handle<i::Symbol>(i_context->wasm_table_sym()), &thrower,
621 i::Handle<i::Object> value = Utils::OpenHandle(*args[1]);
624 i::Handle<i::JSFunction>::cast(value)->code()->kind() !=
631 i::Handle<i::WasmTableObject>::cast(Utils::OpenHandle(*args.This()));
632 i::Handle<i::FixedArray> array(receiver->functions(), i_isolate);
640 i::Handle<i::FixedArray> dispatch_tables(receiver->dispatch_tables(),
644 i::Handle<i::JSFunction>::null());
647 i::Handle<i::JSFunction>::cast(value));
650 i::Handle<i::FixedArray>::cast(array)->set(i, *value);
660 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
662 i::Handle<i::Symbol>(i_context->wasm_memory_sym()), &thrower,
671 i::Handle<i::WasmMemoryObject> receiver =
672 i::Handle<i::WasmMemoryObject>::cast(Utils::OpenHandle(*args.This()));
678 i::Handle<i::JSArrayBuffer> old_buffer(receiver->buffer());
705 i::Handle<i::Context> i_context = Utils::OpenHandle(*context);
707 i::Handle<i::Symbol>(i_context->wasm_memory_sym()), &thrower,
711 i::Handle<i::WasmMemoryObject> receiver =
712 i::Handle<i::WasmMemoryObject>::cast(Utils::OpenHandle(*args.This()));
713 i::Handle<i::Object> buffer(receiver->buffer(), i_isolate);
722 static i::Handle<i::FunctionTemplateInfo> NewTemplate(i::Isolate* i_isolate,
732 Handle<JSFunction> InstallFunc(Isolate* isolate, Handle<JSObject> object,
735 Handle<String> name = v8_str(isolate, str);
736 Handle<FunctionTemplateInfo> temp = NewTemplate(isolate, func);
737 Handle<JSFunction> function =
746 Handle<JSFunction> InstallGetter(Isolate* isolate, Handle<JSObject> object,
748 Handle<String> name = v8_str(isolate, str);
749 Handle<FunctionTemplateInfo> temp = NewTemplate(isolate, func);
750 Handle<JSFunction> function =
761 Handle<JSGlobalObject> global = isolate->global_object();
762 Handle<Context> context(global->native_context(), isolate);
769 Handle<Map> prev_map = Handle<Map>(context->sloppy_function_map(), isolate);
786 Handle<Map> map = Map::CopyInitialMap(
795 Handle<Symbol> module_sym = factory->NewPrivateSymbol();
798 Handle<Symbol> instance_sym = factory->NewPrivateSymbol();
801 Handle<Symbol> table_sym = factory->NewPrivateSymbol();
804 Handle<Symbol> memory_sym = factory->NewPrivateSymbol();
810 Handle<String> name = v8_str(isolate, "WebAssembly");
811 Handle<JSFunction> cons = factory->NewFunction(name);
813 cons, Handle<Object>(context->initial_object_prototype(), isolate));
815 Handle<JSObject> webassembly = factory->NewJSObject(cons, TENURED);
827 Handle<JSFunction> module_constructor =
830 Handle<JSObject> module_proto =
832 i::Handle<i::Map> module_map = isolate->factory()->NewMap(
848 Handle<JSFunction> instance_constructor =
851 Handle<JSObject> instance_proto =
853 i::Handle<i::Map> instance_map = isolate->factory()->NewMap(
864 Handle<JSFunction> table_constructor =
867 Handle<JSObject> table_proto =
869 i::Handle<i::Map> table_map = isolate->factory()->NewMap(
883 Handle<JSFunction> memory_constructor =
886 Handle<JSObject> memory_proto =
888 i::Handle<i::Map> memory_map = isolate->factory()->NewMap(
901 Handle<JSFunction> compile_error(
905 Handle<JSFunction> link_error(
909 Handle<JSFunction> runtime_error(
915 bool WasmJs::IsWasmMemoryObject(Isolate* isolate, Handle<Object> value) {
916 i::Handle<i::Symbol> symbol(isolate->context()->wasm_memory_sym(), isolate);
920 bool WasmJs::IsWasmTableObject(Isolate* isolate, Handle<Object> value) {
921 i::Handle<i::Symbol> symbol(isolate->context()->wasm_table_sym(), isolate);