Home
last modified time | relevance | path

Searched refs:thrower (Results 1 – 25 of 29) sorted by relevance

12

/third_party/node/deps/v8/src/wasm/
Dwasm-js.cc182 ErrorThrower* thrower) { \
185 thrower->TypeError("Argument 0 must be a WebAssembly." #Type); \
197 const v8::FunctionCallbackInfo<v8::Value>& args, ErrorThrower* thrower, in GET_FIRST_ARGUMENT_AS()
222 thrower->TypeError("Argument 0 must be a buffer source"); in GET_FIRST_ARGUMENT_AS()
226 thrower->CompileError("BufferSource argument is empty"); in GET_FIRST_ARGUMENT_AS()
230 thrower->RangeError("buffer source exceeds maximum size of %zu (is %zu)", in GET_FIRST_ARGUMENT_AS()
233 if (thrower->error()) return i::wasm::ModuleWireBytes(nullptr, nullptr); in GET_FIRST_ARGUMENT_AS()
238 const v8::FunctionCallbackInfo<v8::Value>& args, ErrorThrower* thrower) { in GetFirstArgumentAsJSFunction() argument
241 thrower->TypeError("Argument 0 must be a function"); in GetFirstArgumentAsJSFunction()
248 ErrorThrower* thrower) { in GetValueAsImports() argument
[all …]
Dsync-streaming-decoder.cc63 ErrorThrower thrower(isolate_, api_method_name_for_errors_); in Finish() local
65 GetWasmEngine()->SyncCompile(isolate_, enabled_, &thrower, wire_bytes); in Finish()
66 if (thrower.error()) { in Finish()
67 resolver_->OnCompilationFailed(thrower.Reify()); in Finish()
Dwasm-engine.cc485 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, in SyncCompileTranslatedAsmJs() argument
516 isolate, WasmFeatures::ForAsmjs(), thrower, std::move(result).value(), in SyncCompileTranslatedAsmJs()
537 Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower, in SyncCompile() argument
548 thrower->CompileFailed(result.error()); in SyncCompile()
556 isolate, enabled, thrower, std::move(result).value(), bytes, in SyncCompile()
590 Isolate* isolate, ErrorThrower* thrower, in SyncInstantiate() argument
594 return InstantiateToInstanceObject(isolate, thrower, module_object, imports, in SyncInstantiate()
601 ErrorThrower thrower(isolate, "WebAssembly.instantiate()"); in AsyncInstantiate() local
612 isolate, &thrower, module_object, imports, Handle<JSArrayBuffer>::null()); in AsyncInstantiate()
626 thrower.Reset(); in AsyncInstantiate()
[all …]
Dmodule-compiler.cc1071 void SetCompileError(ErrorThrower* thrower, ModuleWireBytes wire_bytes, in SetCompileError() argument
1076 thrower->CompileError("Compiling function #%d failed: %s @+%u", in SetCompileError()
1081 thrower->CompileError("Compiling function #%d:\"%.*s\" failed: %s @+%u", in SetCompileError()
1108 AccountingAllocator* allocator, ErrorThrower* thrower, bool lazy_module, in ValidateSequentially() argument
1110 DCHECK(!thrower->error()); in ValidateSequentially()
1131 SetCompileError(thrower, wire_bytes, func, module, result.error()); in ValidateSequentially()
1195 ErrorThrower thrower(isolate, nullptr); in CompileLazy() local
1202 SetCompileError(&thrower, ModuleWireBytes(native_module->wire_bytes()), in CompileLazy()
1807 ErrorThrower* thrower, const WasmModule* wasm_module, in CompileNativeModule() argument
1820 isolate->allocator(), thrower, lazy_module, in CompileNativeModule()
[all …]
Dwasm-engine.h161 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes,
172 ErrorThrower* thrower,
179 Isolate* isolate, ErrorThrower* thrower,
Dmodule-instantiate.h36 Isolate* isolate, ErrorThrower* thrower,
Dmodule-instantiate.cc272 ErrorThrower* thrower, Handle<WasmModuleObject> module_object,
419 Isolate* isolate, ErrorThrower* thrower, in InstantiateToInstanceObject() argument
424 InstanceBuilder builder(isolate, context_id, thrower, module_object, imports, in InstantiateToInstanceObject()
430 DCHECK(isolate->has_pending_exception() || thrower->error()); in InstantiateToInstanceObject()
436 ErrorThrower* thrower, in InstanceBuilder() argument
444 thrower_(thrower), in InstanceBuilder()
903 ErrorThrower* thrower) { in EvaluateInitExpression() argument
942 thrower->RuntimeError("%s", decoder.interface().runtime_error_msg()); in EvaluateInitExpression()
2026 ErrorThrower thrower(isolate, "LoadElemSegment"); in LoadElemSegmentImpl() local
2039 isolate, instance, &thrower); in LoadElemSegmentImpl()
[all …]
Dmodule-compiler.h54 Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower,
Dc-api.cc1139 i::wasm::ErrorThrower thrower(isolate, "ignored"); in make() local
1142 ->SyncCompile(isolate, features, &thrower, bytes) in make()
1144 thrower.Reset(); // The API provides no way to expose the error. in make()
2149 i::wasm::ErrorThrower thrower(isolate, "instantiation"); in make() local
2152 isolate, &thrower, module->v8_object(), imports_obj, in make()
2155 if (thrower.error()) { in make()
2157 store, GetProperException(isolate, thrower.Reify())); in make()
2158 DCHECK(!thrower.error()); // Reify() called Reset(). in make()
2171 thrower.Reset(); in make()
Dwasm-module.cc550 Handle<String> name, ErrorThrower* thrower) { in GetCustomSections() argument
575 thrower->RangeError("out of memory allocating custom section data"); in GetCustomSections()
Dwasm-module.h662 Handle<String> name, ErrorThrower* thrower);
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Doptional_exception_safety_test.cc146 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST() local
147 optional_ptr->emplace(thrower); in TEST()
217 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST() local
218 *optional_ptr = thrower; in TEST()
249 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST() local
250 *optional_ptr = std::move(thrower); in TEST()
275 auto thrower = MoveThrower(kUpdatedInteger); in TEST() local
277 EXPECT_TRUE(testing::TestNothrowOp([&]() { empty = std::move(thrower); })); in TEST()
280 auto thrower = MoveThrower(kUpdatedInteger); in TEST() local
283 testing::TestNothrowOp([&]() { nonempty = std::move(thrower); })); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST() argument
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST() argument
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dfixed_array_exception_safety_test.cc154 for (const auto& thrower : *fixed_arr) { in ReadMemory()
155 sum += thrower.Get(); in ReadMemory()
164 auto thrower = in TEST() local
166 fixed_arr_ptr->fill(thrower); in TEST()
181 auto thrower = in TEST() local
183 fixed_arr_ptr->fill(thrower); in TEST()
/third_party/node/test/parallel/
Dtest-stream2-readable-non-empty-end.js43 test.on('end', thrower);
44 function thrower() { function
63 test.removeListener('end', thrower);
Dtest-assert.js114 function thrower(errorConstructor) { function
119 assert.throws(() => thrower(a.AssertionError), a.AssertionError, 'message');
120 assert.throws(() => thrower(a.AssertionError), a.AssertionError);
121 assert.throws(() => thrower(a.AssertionError));
124 assert.throws(() => thrower(TypeError));
128 () => a.throws(() => thrower(TypeError), a.AssertionError),
145 a.doesNotThrow(() => thrower(TypeError), a.AssertionError);
157 a.doesNotThrow(() => thrower(TypeError), TypeError);
167 () => a.doesNotThrow(() => thrower(Error), 'user message'),
178 () => a.doesNotThrow(() => thrower(Error)),
[all …]
Dtest-util-promisify.js175 const thrower = promisify(function(a, b, c, cb) { constant
179 thrower(1, 2, 3)
/third_party/node/deps/v8/src/asmjs/
Dasm-js.cc267 wasm::ErrorThrower thrower(isolate, "AsmJs::Compile"); in FinalizeJobImpl() local
271 isolate, &thrower, in FinalizeJobImpl()
276 DCHECK(!thrower.error()); in FinalizeJobImpl()
388 wasm::ErrorThrower thrower(isolate, "AsmJs::Instantiate"); in InstantiateAsmWasm() local
390 wasm_engine->SyncInstantiate(isolate, &thrower, module, foreign, memory); in InstantiateAsmWasm()
395 if (thrower.error()) { in InstantiateAsmWasm()
397 SNPrintF(error_reason, "Internal wasm failure: %s", thrower.error_msg()); in InstantiateAsmWasm()
402 thrower.Reset(); // Ensure exceptions do not propagate. in InstantiateAsmWasm()
405 DCHECK(!thrower.error()); in InstantiateAsmWasm()
/third_party/node/test/fixtures/source-map/
Denclosing-call-site.js21 const thrower = functionA constant
24 thrower()
Denclosing-call-site-min.js1 …nD()},functionD=function(){if(0<Math.random())throw Error("an error!");},thrower=functionA;try{fun…
Denclosing-call-site.js.map7 "names":["functionA","functionB","functionC","functionD","Math","random","Error","thrower","err"]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Dexception_safety_testing_test.cc193 auto thrower = Thrower(123); in TEST()
194 thrower.~Thrower(); in TEST()
202 auto thrower = Thrower(234); in TEST()
203 thrower.~Thrower(); in TEST()
212 auto thrower = Thrower(345); in TEST()
213 thrower.~Thrower(); in TEST()
221 auto thrower = Thrower(456); in TEST()
222 thrower.~Thrower(); in TEST()
/third_party/node/deps/v8/src/builtins/
Dpromise-finally.tq78 // 7. Let thrower be equivalent to a function that throws reason.
80 const thrower = CreateThrowerFunction(nativeContext, reason);
82 // 8. Return ? Invoke(promise, "then", « thrower »).
83 return UnsafeCast<JSAny>(InvokeThen(nativeContext, promise, thrower));
/third_party/node/src/api/
Denvironment.cc651 Local<Value> thrower; in InitializeContextRuntime() local
653 .ToLocal(&thrower)) { in InitializeContextRuntime()
657 PropertyDescriptor descriptor(thrower, thrower); in InitializeContextRuntime()
/third_party/jerryscript/jerry-core/
DBUILD.gn104 "ecma/builtin-objects/ecma-builtin-type-error-thrower.c",

12