Lines Matching refs:env
23 Local<Function> WasmStreamingObject::Initialize(Environment* env) {
24 Local<Function> templ = env->wasm_streaming_object_constructor();
29 Isolate* isolate = env->isolate();
31 t->Inherit(BaseObject::GetConstructorTemplate(env));
40 auto function = t->GetFunction(env->context()).ToLocalChecked();
41 env->set_wasm_streaming_object_constructor(function);
61 Environment* env, std::shared_ptr<WasmStreaming> streaming) {
62 Local<Function> ctor = Initialize(env);
64 if (!ctor->NewInstance(env->context(), 0, nullptr).ToLocal(&obj)) {
79 Environment* env = Environment::GetCurrent(args);
80 new WasmStreamingObject(env, args.This());
161 Environment* env = Environment::GetCurrent(info);
163 if (!WasmStreamingObject::Create(env, streaming).ToLocal(&obj)) {
175 Local<Function> impl = env->wasm_streaming_compilation_impl();
184 impl->Call(env->context(), info.This(), 2, args);
191 Environment* env = Environment::GetCurrent(info);
192 env->set_wasm_streaming_compilation_impl(info[0].As<Function>());