diff options
Diffstat (limited to 'deps/v8/src/messages.h')
-rw-r--r-- | deps/v8/src/messages.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/deps/v8/src/messages.h b/deps/v8/src/messages.h index 9237f7a231..bf0c8db355 100644 --- a/deps/v8/src/messages.h +++ b/deps/v8/src/messages.h @@ -13,9 +13,13 @@ #include <memory> #include "src/handles.h" +#include "src/wasm/wasm-code-wrapper.h" namespace v8 { namespace internal { +namespace wasm { +class WasmCode; +} // Forward declarations. class AbstractCode; @@ -161,7 +165,7 @@ class WasmStackFrame : public StackFrameBase { Handle<WasmInstanceObject> wasm_instance_; uint32_t wasm_func_index_; - Handle<AbstractCode> code_; // null handle for interpreted frames. + WasmCodeWrapper code_; // null for interpreted frames. int offset_; private: @@ -273,9 +277,15 @@ class ErrorUtils : public AllStatic { T(AtomicsWaitNotAllowed, "Atomics.wait cannot be called in this context") \ T(BadSortComparisonFunction, \ "The comparison function must be either a function or undefined") \ + T(BigIntFromNumber, \ + "The number % is not a safe integer and thus cannot be converted to a " \ + "BigInt") \ + T(BigIntFromObject, "Cannot convert % to a BigInt") \ T(BigIntMixedTypes, \ "Cannot mix BigInt and other types, use explicit conversions") \ + T(BigIntSerializeJSON, "Do not know how to serialize a BigInt") \ T(BigIntShr, "BigInts have no unsigned right shift, use >> instead") \ + T(BigIntToNumber, "Cannot convert a BigInt value to a number") \ T(CalledNonCallable, "% is not a function") \ T(CalledOnNonObject, "% called on non-object") \ T(CalledOnNullOrUndefined, "% called on null or undefined") \ @@ -292,6 +302,7 @@ class ErrorUtils : public AllStatic { T(CircularStructure, "Converting circular structure to JSON") \ T(ConstructAbstractClass, "Abstract class % not directly constructable") \ T(ConstAssign, "Assignment to constant variable.") \ + T(ConstructorClassField, "Classes may not have a field named 'constructor'") \ T(ConstructorNonCallable, \ "Class constructor % cannot be invoked without 'new'") \ T(ConstructorNotFunction, "Constructor % requires 'new'") \ @@ -318,6 +329,7 @@ class ErrorUtils : public AllStatic { "Immutable prototype object '%' cannot have their prototype set") \ T(ImportCallNotNewExpression, "Cannot use new with import") \ T(ImportMetaOutsideModule, "Cannot use 'import.meta' outside a module") \ + T(ImportMissingSpecifier, "import() requires a specifier") \ T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \ T(InstanceofNonobjectProto, \ "Function has non-object prototype '%' in instanceof check") \ @@ -479,7 +491,8 @@ class ErrorUtils : public AllStatic { "small") \ T(SharedArrayBufferSpeciesThis, \ "SharedArrayBuffer subclass returned this from species constructor") \ - T(StaticPrototype, "Classes may not have static property named prototype") \ + T(StaticPrototype, \ + "Classes may not have a static property named 'prototype'") \ T(StrictDeleteProperty, "Cannot delete property '%' of %") \ T(StrictPoisonPill, \ "'caller', 'callee', and 'arguments' properties may not be accessed on " \ @@ -526,6 +539,7 @@ class ErrorUtils : public AllStatic { T(InvalidDataViewLength, "Invalid DataView length %") \ T(InvalidOffset, "Start offset % is outside the bounds of the buffer") \ T(InvalidHint, "Invalid hint: %") \ + T(InvalidIndex, "Invalid value: not (convertible to) a safe integer") \ T(InvalidLanguageTag, "Invalid language tag: %") \ T(InvalidWeakMapKey, "Invalid value used as weak map key") \ T(InvalidWeakSetValue, "Invalid value used in weak set") \ |