diff options
Diffstat (limited to 'deps/v8/src/runtime/runtime.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/deps/v8/src/runtime/runtime.cc b/deps/v8/src/runtime/runtime.cc index 26880cdafa..3ae82d41c5 100644 --- a/deps/v8/src/runtime/runtime.cc +++ b/deps/v8/src/runtime/runtime.cc @@ -98,6 +98,39 @@ void InitializeIntrinsicFunctionNames() { } // namespace +bool Runtime::IsNonReturning(FunctionId id) { + switch (id) { + case Runtime::kThrowUnsupportedSuperError: + case Runtime::kThrowConstructorNonCallableError: + case Runtime::kThrowStaticPrototypeError: + case Runtime::kThrowSuperAlreadyCalledError: + case Runtime::kThrowSuperNotCalled: + case Runtime::kReThrow: + case Runtime::kThrow: + case Runtime::kThrowApplyNonFunction: + case Runtime::kThrowCalledNonCallable: + case Runtime::kThrowConstructedNonConstructable: + case Runtime::kThrowConstructorReturnedNonObject: + case Runtime::kThrowInvalidStringLength: + case Runtime::kThrowInvalidTypedArrayAlignment: + case Runtime::kThrowIteratorResultNotAnObject: + case Runtime::kThrowThrowMethodMissing: + case Runtime::kThrowSymbolIteratorInvalid: + case Runtime::kThrowNotConstructor: + case Runtime::kThrowRangeError: + case Runtime::kThrowReferenceError: + case Runtime::kThrowStackOverflow: + case Runtime::kThrowSymbolAsyncIteratorInvalid: + case Runtime::kThrowTypeError: + case Runtime::kThrowConstAssignError: + case Runtime::kThrowWasmError: + case Runtime::kThrowWasmStackOverflow: + return true; + default: + return false; + } +} + const Runtime::Function* Runtime::FunctionForName(const unsigned char* name, int length) { base::CallOnce(&initialize_function_name_map_once, |