diff options
Diffstat (limited to 'deps/v8/src/runtime/runtime.h')
-rw-r--r-- | deps/v8/src/runtime/runtime.h | 88 |
1 files changed, 47 insertions, 41 deletions
diff --git a/deps/v8/src/runtime/runtime.h b/deps/v8/src/runtime/runtime.h index 92ca9f3142..d705b05752 100644 --- a/deps/v8/src/runtime/runtime.h +++ b/deps/v8/src/runtime/runtime.h @@ -37,17 +37,17 @@ namespace internal { // inline), use the F macro below. To declare the runtime version and the inline // version simultaneously, use the I macro below. -#define FOR_EACH_INTRINSIC_ARRAY(F, I) \ - F(ArrayIncludes_Slow, 3, 1) \ - F(ArrayIndexOf, 3, 1) \ - F(ArrayIsArray, 1, 1) \ - F(ArraySpeciesConstructor, 1, 1) \ - F(GrowArrayElements, 2, 1) \ - I(IsArray, 1, 1) \ - F(NewArray, -1 /* >= 3 */, 1) \ - F(NormalizeElements, 1, 1) \ - F(TransitionElementsKind, 2, 1) \ - F(TransitionElementsKindWithKind, 2, 1) \ +#define FOR_EACH_INTRINSIC_ARRAY(F, I) \ + F(ArrayIncludes_Slow, 3, 1) \ + F(ArrayIndexOf, 3, 1) \ + F(ArrayIsArray, 1, 1) \ + F(ArraySpeciesConstructor, 1, 1) \ + F(GrowArrayElements, 2, 1) \ + I(IsArray, 1, 1) \ + F(NewArray, -1 /* >= 3 */, 1) \ + F(NormalizeElements, 1, 1) \ + F(TransitionElementsKind, 2, 1) \ + F(TransitionElementsKindWithKind, 2, 1) #define FOR_EACH_INTRINSIC_ATOMICS(F, I) \ F(AtomicsLoad64, 2, 1) \ @@ -236,7 +236,7 @@ namespace internal { F(ThrowIteratorError, 1, 1) \ F(ThrowIteratorResultNotAnObject, 1, 1) \ F(ThrowNotConstructor, 1, 1) \ - F(ThrowPatternAssignmentNonCoercible, 0, 1) \ + F(ThrowPatternAssignmentNonCoercible, 1, 1) \ F(ThrowRangeError, -1 /* >= 1 */, 1) \ F(ThrowReferenceError, 1, 1) \ F(ThrowAccessedUninitializedVariable, 1, 1) \ @@ -247,8 +247,7 @@ namespace internal { F(ThrowTypeError, -1 /* >= 1 */, 1) \ F(ThrowTypeErrorIfStrict, -1 /* >= 1 */, 1) \ F(Typeof, 1, 1) \ - F(UnwindAndFindExceptionHandler, 0, 1) \ - F(FinalizationGroupCleanupJob, 1, 1) + F(UnwindAndFindExceptionHandler, 0, 1) #define FOR_EACH_INTRINSIC_LITERALS(F, I) \ F(CreateArrayLiteral, 4, 1) \ @@ -285,6 +284,7 @@ namespace internal { F(CopyDataPropertiesWithExcludedProperties, -1 /* >= 1 */, 1) \ I(CreateDataProperty, 3, 1) \ I(CreateIterResultObject, 2, 1) \ + F(CreatePrivateAccessors, 2, 1) \ F(DefineAccessorPropertyUnchecked, 5, 1) \ F(DefineDataPropertyInLiteral, 6, 1) \ F(DefineGetterPropertyUnchecked, 4, 1) \ @@ -305,6 +305,8 @@ namespace internal { F(JSReceiverGetPrototypeOf, 1, 1) \ F(JSReceiverSetPrototypeOfDontThrow, 2, 1) \ F(JSReceiverSetPrototypeOfThrow, 2, 1) \ + F(LoadPrivateGetter, 1, 1) \ + F(LoadPrivateSetter, 1, 1) \ F(NewObject, 2, 1) \ F(ObjectCreate, 2, 1) \ F(ObjectEntries, 1, 1) \ @@ -495,12 +497,14 @@ namespace internal { F(IsThreadInWasm, 0, 1) \ F(IsWasmCode, 1, 1) \ F(IsWasmTrapHandlerEnabled, 0, 1) \ + F(RegexpHasBytecode, 2, 1) \ + F(RegexpHasNativeCode, 2, 1) \ F(MapIteratorProtector, 0, 1) \ F(NeverOptimizeFunction, 1, 1) \ F(NotifyContextDisposed, 0, 1) \ F(OptimizeFunctionOnNextCall, -1, 1) \ F(OptimizeOsr, -1, 1) \ - F(PrepareFunctionForOptimization, 1, 1) \ + F(PrepareFunctionForOptimization, -1, 1) \ F(PrintWithNameForAssert, 2, 1) \ F(RedirectToWasmInterpreter, 2, 1) \ F(RunningInSimulator, 0, 1) \ @@ -530,28 +534,30 @@ namespace internal { F(TypedArraySet, 2, 1) \ F(TypedArraySortFast, 1, 1) -#define FOR_EACH_INTRINSIC_WASM(F, I) \ - F(ThrowWasmError, 1, 1) \ - F(ThrowWasmStackOverflow, 0, 1) \ - F(WasmI32AtomicWait, 4, 1) \ - F(WasmI64AtomicWait, 5, 1) \ - F(WasmAtomicNotify, 3, 1) \ - F(WasmExceptionGetValues, 1, 1) \ - F(WasmExceptionGetTag, 1, 1) \ - F(WasmMemoryGrow, 2, 1) \ - F(WasmRunInterpreter, 2, 1) \ - F(WasmStackGuard, 0, 1) \ - F(WasmThrowCreate, 2, 1) \ - F(WasmThrowTypeError, 0, 1) \ - F(WasmRefFunc, 1, 1) \ - F(WasmFunctionTableGet, 3, 1) \ - F(WasmFunctionTableSet, 4, 1) \ - F(WasmTableInit, 5, 1) \ - F(WasmTableCopy, 5, 1) \ - F(WasmTableGrow, 3, 1) \ - F(WasmTableFill, 4, 1) \ - F(WasmIsValidFuncRefValue, 1, 1) \ - F(WasmCompileLazy, 2, 1) +#define FOR_EACH_INTRINSIC_WASM(F, I) \ + F(ThrowWasmError, 1, 1) \ + F(ThrowWasmStackOverflow, 0, 1) \ + F(WasmI32AtomicWait, 4, 1) \ + F(WasmI64AtomicWait, 5, 1) \ + F(WasmAtomicNotify, 3, 1) \ + F(WasmExceptionGetValues, 1, 1) \ + F(WasmExceptionGetTag, 1, 1) \ + F(WasmMemoryGrow, 2, 1) \ + F(WasmRunInterpreter, 2, 1) \ + F(WasmStackGuard, 0, 1) \ + F(WasmThrowCreate, 2, 1) \ + F(WasmThrowTypeError, 0, 1) \ + F(WasmRefFunc, 1, 1) \ + F(WasmFunctionTableGet, 3, 1) \ + F(WasmFunctionTableSet, 4, 1) \ + F(WasmTableInit, 5, 1) \ + F(WasmTableCopy, 5, 1) \ + F(WasmTableGrow, 3, 1) \ + F(WasmTableFill, 4, 1) \ + F(WasmIsValidFuncRefValue, 1, 1) \ + F(WasmCompileLazy, 2, 1) \ + F(WasmNewMultiReturnFixedArray, 1, 1) \ + F(WasmNewMultiReturnJSArray, 1, 1) #define FOR_EACH_INTRINSIC_RETURN_PAIR_IMPL(F, I) \ F(DebugBreakOnBytecode, 1, 2) \ @@ -728,7 +734,6 @@ class Runtime : public AllStatic { Isolate* isolate, Handle<Object> object); }; - class RuntimeState { public: #ifndef V8_INTL_SUPPORT @@ -769,11 +774,11 @@ V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, Runtime::FunctionId); //--------------------------------------------------------------------------- // Constants used by interface to runtime functions. -class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; +using AllocateDoubleAlignFlag = BitField<bool, 0, 1>; -class AllowLargeObjectAllocationFlag : public BitField<bool, 1, 1> {}; +using AllowLargeObjectAllocationFlag = BitField<bool, 1, 1>; -class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; +using DeclareGlobalsEvalFlag = BitField<bool, 0, 1>; // A set of bits returned by Runtime_GetOptimizationStatus. // These bits must be in sync with bits defined in test/mjsunit/mjsunit.js @@ -791,6 +796,7 @@ enum class OptimizationStatus { kIsExecuting = 1 << 10, kTopmostFrameIsTurboFanned = 1 << 11, kLiteMode = 1 << 12, + kMarkedForDeoptimization = 1 << 13, }; } // namespace internal |