Lines Matching defs:isolate
34 // We need per-isolate controls, because we sometimes run tests in multiple
41 bool IsWasmCompileAllowed(v8::Isolate* isolate, v8::Local<v8::Value> value,
44 DCHECK_GT(GetPerIsolateWasmControls()->count(isolate), 0);
45 const WasmCompileControls& ctrls = GetPerIsolateWasmControls()->at(isolate);
55 bool IsWasmInstantiateAllowed(v8::Isolate* isolate,
59 DCHECK_GT(GetPerIsolateWasmControls()->count(isolate), 0);
60 const WasmCompileControls& ctrls = GetPerIsolateWasmControls()->at(isolate);
63 return IsWasmCompileAllowed(isolate, module_or_bytes, is_async);
72 v8::Local<v8::Value> NewRangeException(v8::Isolate* isolate,
75 v8::String::NewFromOneByte(isolate,
80 void ThrowRangeException(v8::Isolate* isolate, const char* message) {
81 isolate->ThrowException(NewRangeException(isolate, message));
101 HandleScope scope(isolate);
102 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate);
105 bool allow_async = Oddball::cast(args[1]).ToBool(isolate);
111 return ReadOnlyRoots(isolate).undefined_value();
115 HandleScope scope(isolate);
116 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate);
119 return ReadOnlyRoots(isolate).undefined_value();
133 int WasmStackSize(Isolate* isolate) {
137 for (StackTraceFrameIterator it(isolate); !it.done(); it.Advance()) {
146 HandleScope shs(isolate);
148 PrintIndentation(WasmStackSize(isolate));
152 StackTraceFrameIterator it(isolate);
176 return ReadOnlyRoots(isolate).undefined_value();
180 HandleScope shs(isolate);
184 PrintIndentation(WasmStackSize(isolate));
189 StackTraceFrameIterator it(isolate);
230 return ReadOnlyRoots(isolate).undefined_value();
234 SealHandleScope shs(isolate);
238 return ReadOnlyRoots(isolate).false_value();
243 return ReadOnlyRoots(isolate).false_value();
245 return ReadOnlyRoots(isolate).true_value();
258 SealHandleScope shs(isolate);
260 bool flag = Oddball::cast(args[0]).ToBool(isolate);
261 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate);
264 return ReadOnlyRoots(isolate).undefined_value();
268 SealHandleScope shs(isolate);
274 return isolate->heap()->ToBoolean(is_js_to_wasm);
280 return isolate->heap()->ToBoolean(trap_handler::IsTrapHandlerEnabled());
286 return isolate->heap()->ToBoolean(trap_handler::IsThreadInWasm());
290 HandleScope scope(isolate);
293 return *isolate->factory()->NewNumberFromSize(trap_count);
297 HandleScope scope(isolate);
302 WasmExceptionPackage::GetExceptionTag(isolate, exception);
304 Handle<FixedArray> tags_table(instance->tags_table(), isolate);
312 HandleScope scope(isolate);
316 WasmExceptionPackage::GetExceptionValues(isolate, exception);
319 return *isolate->factory()->NewJSArrayWithElements(values);
323 HandleScope scope(isolate);
334 isolate->factory()
347 HandleScope scope(isolate);
366 wasm::DeserializeNativeModule(isolate, buffer_vec, wire_bytes_vec, {});
369 return ReadOnlyRoots(isolate).undefined_value();
375 SealHandleScope shs(isolate);
389 HandleScope scope(isolate);
394 isolate);
400 return *isolate->factory()->NewNumberFromSize(num_spaces);
404 HandleScope scope(isolate);
413 StackTraceFrameIterator it(isolate);
426 return ReadOnlyRoots(isolate).undefined_value();
430 HandleScope scope(isolate);
435 wasm::GetWasmEngine()->CompileFunction(isolate, native_module, function_index,
438 return ReadOnlyRoots(isolate).undefined_value();
442 HandleScope scope(isolate);
444 wasm::GetWasmEngine()->TierDownAllModulesPerIsolate(isolate);
445 return ReadOnlyRoots(isolate).undefined_value();
449 HandleScope scope(isolate);
451 wasm::GetWasmEngine()->TierUpAllModulesPerIsolate(isolate);
452 return ReadOnlyRoots(isolate).undefined_value();
456 HandleScope scope(isolate);
467 return isolate->heap()->ToBoolean(code && code->is_liftoff());
471 HandleScope scope(isolate);
482 return isolate->heap()->ToBoolean(code && code->is_turbofan());
491 return ReadOnlyRoots(isolate).undefined_value();