/third_party/node/deps/v8/src/wasm/ |
H A D | wasm-js.cc | 182 ErrorThrower* thrower) { \ 185 thrower->TypeError("Argument 0 must be a WebAssembly." #Type); \ 197 const v8::FunctionCallbackInfo<v8::Value>& args, ErrorThrower* thrower, in GetFirstArgumentAsBytes() 222 thrower->TypeError("Argument 0 must be a buffer source"); in GetFirstArgumentAsBytes() 226 thrower->CompileError("BufferSource argument is empty"); in GetFirstArgumentAsBytes() 230 thrower->RangeError("buffer source exceeds maximum size of %zu (is %zu)", in GetFirstArgumentAsBytes() 233 if (thrower->error()) return i::wasm::ModuleWireBytes(nullptr, nullptr); in GetFirstArgumentAsBytes() 238 const v8::FunctionCallbackInfo<v8::Value>& args, ErrorThrower* thrower) { in GetFirstArgumentAsJSFunction() 241 thrower->TypeError("Argument 0 must be a function"); in GetFirstArgumentAsJSFunction() 248 ErrorThrower* thrower) { in GetValueAsImports() 196 GetFirstArgumentAsBytes( const v8::FunctionCallbackInfo<v8::Value>& args, ErrorThrower* thrower, bool* is_shared) GetFirstArgumentAsBytes() argument 237 GetFirstArgumentAsJSFunction( const v8::FunctionCallbackInfo<v8::Value>& args, ErrorThrower* thrower) GetFirstArgumentAsJSFunction() argument 247 GetValueAsImports(Local<Value> arg, ErrorThrower* thrower) GetValueAsImports() argument 476 EnforceUint32(T argument_name, Local<v8::Value> v, Local<Context> context, ErrorThrower* thrower, uint32_t* res) EnforceUint32() argument 1022 GetIntegerProperty(v8::Isolate* isolate, ErrorThrower* thrower, Local<Context> context, v8::Local<v8::Value> value, i::Handle<i::String> property_name, int64_t* result, int64_t lower_bound, uint64_t upper_bound) GetIntegerProperty() argument 1047 GetOptionalIntegerProperty(v8::Isolate* isolate, ErrorThrower* thrower, Local<Context> context, Local<v8::Object> object, Local<String> property, bool* has_property, int64_t* result, int64_t lower_bound, uint64_t upper_bound) GetOptionalIntegerProperty() argument 1076 GetInitialOrMinimumProperty(v8::Isolate* isolate, ErrorThrower* thrower, Local<Context> context, Local<v8::Object> object, int64_t* result, int64_t lower_bound, uint64_t upper_bound) GetInitialOrMinimumProperty() argument 1670 EncodeExceptionValues(v8::Isolate* isolate, i::Handle<i::PodArray<i::wasm::ValueType>> signature, const Local<Value>& arg, ScheduledErrorThrower* thrower, i::Handle<i::FixedArray> values_out) EncodeExceptionValues() argument [all...] |
H A D | sync-streaming-decoder.cc | 63 ErrorThrower thrower(isolate_, api_method_name_for_errors_); 65 GetWasmEngine()->SyncCompile(isolate_, enabled_, &thrower, wire_bytes); 66 if (thrower.error()) { 67 resolver_->OnCompilationFailed(thrower.Reify());
|
H A D | wasm-engine.cc | 485 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, in SyncCompileTranslatedAsmJs() 516 isolate, WasmFeatures::ForAsmjs(), thrower, std::move(result).value(), in SyncCompileTranslatedAsmJs() 537 Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower, in SyncCompile() 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() 594 return InstantiateToInstanceObject(isolate, thrower, module_object, imports, in SyncInstantiate() 601 ErrorThrower thrower(isolate, "WebAssembly.instantiate()"); in AsyncInstantiate() 612 isolate, &thrower, module_object, imports, Handle<JSArrayBuffer>::null()); in AsyncInstantiate() 626 thrower in AsyncInstantiate() 484 SyncCompileTranslatedAsmJs( Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, base::Vector<const byte> asm_js_offset_table_bytes, Handle<HeapNumber> uses_bitset, LanguageMode language_mode) SyncCompileTranslatedAsmJs() argument 536 SyncCompile( Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower, const ModuleWireBytes& bytes) SyncCompile() argument 589 SyncInstantiate( Isolate* isolate, ErrorThrower* thrower, Handle<WasmModuleObject> module_object, MaybeHandle<JSReceiver> imports, MaybeHandle<JSArrayBuffer> memory) SyncInstantiate() argument [all...] |
H A D | wasm-engine.h | 161 Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, 172 ErrorThrower* thrower, 179 Isolate* isolate, ErrorThrower* thrower,
|
H A D | module-instantiate.h | 36 Isolate* isolate, ErrorThrower* thrower,
|
H A D | module-compiler.cc | 1071 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() 1110 DCHECK(!thrower->error()); in ValidateSequentially() 1131 SetCompileError(thrower, wire_bytes, func, module, result.error()); in ValidateSequentially() 1195 ErrorThrower thrower(isolate, nullptr); in CompileLazy() 1202 SetCompileError(&thrower, ModuleWireBytes(native_module->wire_bytes()), in CompileLazy() 1807 ErrorThrower* thrower, const WasmModule* wasm_module, in CompileNativeModule() 1820 isolate->allocator(), thrower, lazy_modul in CompileNativeModule() 1106 ValidateSequentially( const WasmModule* module, NativeModule* native_module, Counters* counters, AccountingAllocator* allocator, ErrorThrower* thrower, bool lazy_module, OnlyLazyFunctions only_lazy_functions = kAllFunctions) ValidateSequentially() argument 1805 CompileNativeModule(Isolate* isolate, v8::metrics::Recorder::ContextId context_id, ErrorThrower* thrower, const WasmModule* wasm_module, std::shared_ptr<NativeModule> native_module, Handle<FixedArray>* export_wrappers_out) CompileNativeModule() argument 1902 CompileToNativeModule( Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower, std::shared_ptr<const WasmModule> module, const ModuleWireBytes& wire_bytes, Handle<FixedArray>* export_wrappers_out, int compilation_id, v8::metrics::Recorder::ContextId context_id) CompileToNativeModule() argument [all...] |
H A D | module-instantiate.cc | 272 ErrorThrower* thrower, Handle<WasmModuleObject> module_object, 419 Isolate* isolate, ErrorThrower* thrower, in InstantiateToInstanceObject() 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() 444 thrower_(thrower), in InstanceBuilder() 903 ErrorThrower* thrower) { in EvaluateInitExpression() 942 thrower->RuntimeError("%s", decoder.interface().runtime_error_msg()); in EvaluateInitExpression() 2026 ErrorThrower thrower(isolate, "LoadElemSegment"); in LoadElemSegmentImpl() 2039 isolate, instance, &thrower); in LoadElemSegmentImpl() 418 InstantiateToInstanceObject( Isolate* isolate, ErrorThrower* thrower, Handle<WasmModuleObject> module_object, MaybeHandle<JSReceiver> imports, MaybeHandle<JSArrayBuffer> memory_buffer) InstantiateToInstanceObject() argument 434 InstanceBuilder(Isolate* isolate, v8::metrics::Recorder::ContextId context_id, ErrorThrower* thrower, Handle<WasmModuleObject> module_object, MaybeHandle<JSReceiver> ffi, MaybeHandle<JSArrayBuffer> memory_buffer) InstanceBuilder() argument 900 EvaluateInitExpression(Zone* zone, ConstantExpression expr, ValueType expected, Isolate* isolate, Handle<WasmInstanceObject> instance, ErrorThrower* thrower) EvaluateInitExpression() argument [all...] |
H A D | module-compiler.h | 54 Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower,
|
H A D | wasm-module.cc | 550 Handle<String> name, ErrorThrower* thrower) { in GetCustomSections() 575 thrower->RangeError("out of memory allocating custom section data"); in GetCustomSections() 548 GetCustomSections(Isolate* isolate, Handle<WasmModuleObject> module_object, Handle<String> name, ErrorThrower* thrower) GetCustomSections() argument
|
H A D | c-api.cc | 1139 i::wasm::ErrorThrower thrower(isolate, "ignored"); 1142 ->SyncCompile(isolate, features, &thrower, bytes) 1144 thrower.Reset(); // The API provides no way to expose the error. 2149 i::wasm::ErrorThrower thrower(isolate, "instantiation"); in make() 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()
|
H A D | wasm-module.h | 662 Handle<String> name, ErrorThrower* thrower);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/memory/ |
H A D | memory_exception_safety_test.cc | 39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST() 40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST() 43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST() 44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
H A D | optional_exception_safety_test.cc | 146 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST() 147 optional_ptr->emplace(thrower); in TEST() 217 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST() 218 *optional_ptr = thrower; in TEST() 249 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST() 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() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | fixed_array_exception_safety_test.cc | 154 for (const auto& thrower : *fixed_arr) { in ReadMemory() 155 sum += thrower.Get(); in ReadMemory() 164 auto thrower = in TEST() 166 fixed_arr_ptr->fill(thrower); in TEST() 181 auto thrower = in TEST() 183 fixed_arr_ptr->fill(thrower); in TEST()
|
/third_party/node/test/parallel/ |
H A D | test-stream2-readable-non-empty-end.js | 43 test.on('end', thrower); 44 function thrower() { function 63 test.removeListener('end', thrower);
|
H A D | test-assert.js | 114 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(Erro [all...] |
H A D | test-util-promisify.js | 175 const thrower = promisify(function(a, b, c, cb) { 179 thrower(1, 2, 3)
|
/third_party/node/deps/v8/src/asmjs/ |
H A D | asm-js.cc | 267 wasm::ErrorThrower thrower(isolate, "AsmJs::Compile"); in FinalizeJobImpl() 271 isolate, &thrower, in FinalizeJobImpl() 276 DCHECK(!thrower.error()); in FinalizeJobImpl() 388 wasm::ErrorThrower thrower(isolate, "AsmJs::Instantiate"); in InstantiateAsmWasm() 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/ |
H A D | enclosing-call-site.js | 21 const thrower = functionA 24 thrower()
|
H A D | enclosing-call-site-min.js | 1 var functionA=function(){functionB()};function functionB(){functionC()}var functionC=function(){functionD()},functionD=function(){if(0<Math.random())throw Error("an error!");},thrower=functionA;try{functionA()}catch(a){throw a;};
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/ |
H A D | exception_safety_testing_test.cc | 193 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/test/sequential/ |
H A D | test-repl-timeout-throw.js | 30 child.stdin.write('function thrower(){console.log("THROW",throws++);XXX};'); 31 child.stdin.write('setTimeout(thrower);""\n'); 36 child.stdin.write(`fs.readFile(${f}, thrower);\n`); 45 ' e.on("x", thrower);\n' +
|
/third_party/node/src/api/ |
H A D | environment.cc | 658 Local<Value> thrower; in InitializeContextRuntime() local 660 .ToLocal(&thrower)) { in InitializeContextRuntime() 664 PropertyDescriptor descriptor(thrower, thrower); in InitializeContextRuntime()
|
/third_party/node/deps/v8/src/init/ |
H A D | bootstrapper.cc | 1223 Handle<JSFunction> thrower = GetThrowTypeErrorIntrinsic(); in AddRestrictedFunctionProperties() local 1225 accessors->set_getter(*thrower); in AddRestrictedFunctionProperties() 1226 accessors->set_setter(*thrower); in AddRestrictedFunctionProperties()
|
/third_party/node/deps/v8/src/api/ |
H A D | api.cc | 7881 i::wasm::ErrorThrower thrower(i_isolate, "WasmModuleObject::Compile()"); in Compile() 7884 i_isolate, enabled_features, &thrower, in Compile()
|