diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2018-01-24 20:16:06 +0100 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-01-24 15:02:20 -0800 |
commit | 4c4af643e5042d615a60c6bbc05aee9d81b903e5 (patch) | |
tree | 3fb0a97988fe4439ae3ae06f26915d1dcf8cab92 /deps/v8/src/runtime/runtime.h | |
parent | fa9f31a4fda5a3782c652e56e394465805ebb50f (diff) | |
download | node-new-4c4af643e5042d615a60c6bbc05aee9d81b903e5.tar.gz |
deps: update V8 to 6.4.388.40
PR-URL: https://github.com/nodejs/node/pull/17489
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/src/runtime/runtime.h')
-rw-r--r-- | deps/v8/src/runtime/runtime.h | 118 |
1 files changed, 64 insertions, 54 deletions
diff --git a/deps/v8/src/runtime/runtime.h b/deps/v8/src/runtime/runtime.h index a11d274d25..da16ee5fc8 100644 --- a/deps/v8/src/runtime/runtime.h +++ b/deps/v8/src/runtime/runtime.h @@ -36,22 +36,23 @@ namespace internal { // A variable number of arguments is specified by a -1, additional restrictions // are specified by inline comments -#define FOR_EACH_INTRINSIC_ARRAY(F) \ - F(TransitionElementsKind, 2, 1) \ - F(RemoveArrayHoles, 2, 1) \ - F(MoveArrayContents, 2, 1) \ - F(EstimateNumberOfElements, 1, 1) \ - F(GetArrayKeys, 2, 1) \ - F(NewArray, -1 /* >= 3 */, 1) \ - F(FunctionBind, -1, 1) \ - F(NormalizeElements, 1, 1) \ - F(GrowArrayElements, 2, 1) \ - F(HasComplexElements, 1, 1) \ - F(IsArray, 1, 1) \ - F(ArrayIsArray, 1, 1) \ - F(ArraySpeciesConstructor, 1, 1) \ - F(ArrayIncludes_Slow, 3, 1) \ - F(ArrayIndexOf, 3, 1) \ +#define FOR_EACH_INTRINSIC_ARRAY(F) \ + F(TransitionElementsKind, 2, 1) \ + F(RemoveArrayHoles, 2, 1) \ + F(MoveArrayContents, 2, 1) \ + F(EstimateNumberOfElements, 1, 1) \ + F(GetArrayKeys, 2, 1) \ + F(TrySliceSimpleNonFastElements, 3, 1) \ + F(NewArray, -1 /* >= 3 */, 1) \ + F(FunctionBind, -1, 1) \ + F(NormalizeElements, 1, 1) \ + F(GrowArrayElements, 2, 1) \ + F(HasComplexElements, 1, 1) \ + F(IsArray, 1, 1) \ + F(ArrayIsArray, 1, 1) \ + F(ArraySpeciesConstructor, 1, 1) \ + F(ArrayIncludes_Slow, 3, 1) \ + F(ArrayIndexOf, 3, 1) \ F(SpreadIterablePrepare, 1, 1) #define FOR_EACH_INTRINSIC_ATOMICS(F) \ @@ -69,27 +70,31 @@ namespace internal { F(SetAllowAtomicsWait, 1, 1) #define FOR_EACH_INTRINSIC_BIGINT(F) \ - F(BigIntEqual, 2, 1) \ + F(BigIntBinaryOp, 3, 1) \ + F(BigIntCompareToBigInt, 3, 1) \ + F(BigIntCompareToNumber, 3, 1) \ + F(BigIntEqualToBigInt, 2, 1) \ + F(BigIntEqualToNumber, 2, 1) \ + F(BigIntEqualToString, 2, 1) \ F(BigIntToBoolean, 1, 1) \ - F(BigIntBinaryOp, 3, 1) - -#define FOR_EACH_INTRINSIC_CLASSES(F) \ - F(ThrowUnsupportedSuperError, 0, 1) \ - F(ThrowConstructorNonCallableError, 1, 1) \ - F(ThrowStaticPrototypeError, 0, 1) \ - F(ThrowSuperAlreadyCalledError, 0, 1) \ - F(ThrowSuperNotCalled, 0, 1) \ - F(ThrowNotSuperConstructor, 2, 1) \ - F(HomeObjectSymbol, 0, 1) \ - F(DefineClass, 4, 1) \ - F(InstallClassNameAccessor, 1, 1) \ - F(InstallClassNameAccessorWithCheck, 1, 1) \ - F(LoadFromSuper, 3, 1) \ - F(LoadKeyedFromSuper, 3, 1) \ - F(StoreToSuper_Strict, 4, 1) \ - F(StoreToSuper_Sloppy, 4, 1) \ - F(StoreKeyedToSuper_Strict, 4, 1) \ - F(StoreKeyedToSuper_Sloppy, 4, 1) \ + F(BigIntToNumber, 1, 1) \ + F(BigIntUnaryOp, 2, 1) + +#define FOR_EACH_INTRINSIC_CLASSES(F) \ + F(ThrowUnsupportedSuperError, 0, 1) \ + F(ThrowConstructorNonCallableError, 1, 1) \ + F(ThrowStaticPrototypeError, 0, 1) \ + F(ThrowSuperAlreadyCalledError, 0, 1) \ + F(ThrowSuperNotCalled, 0, 1) \ + F(ThrowNotSuperConstructor, 2, 1) \ + F(HomeObjectSymbol, 0, 1) \ + F(DefineClass, -1 /* >= 3 */, 1) \ + F(LoadFromSuper, 3, 1) \ + F(LoadKeyedFromSuper, 3, 1) \ + F(StoreToSuper_Strict, 4, 1) \ + F(StoreToSuper_Sloppy, 4, 1) \ + F(StoreKeyedToSuper_Strict, 4, 1) \ + F(StoreKeyedToSuper_Sloppy, 4, 1) \ F(GetSuperConstructor, 1, 1) #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \ @@ -117,7 +122,6 @@ namespace internal { F(CompileOptimized_Concurrent, 1, 1) \ F(CompileOptimized_NotConcurrent, 1, 1) \ F(EvictOptimizedCodeSlot, 1, 1) \ - F(NotifyStubFailure, 0, 1) \ F(NotifyDeoptimized, 0, 1) \ F(CompileForOnStackReplacement, 1, 1) \ F(ResolvePossiblyDirectEval, 6, 1) \ @@ -130,7 +134,6 @@ namespace internal { #define FOR_EACH_INTRINSIC_DEBUG(F) \ F(HandleDebuggerStatement, 0, 1) \ - F(DebugBreakOnBytecode, 1, 1) \ F(SetDebugEventListener, 2, 1) \ F(ScheduleBreak, 0, 1) \ F(DebugGetInternalProperties, 1, 1) \ @@ -186,7 +189,6 @@ namespace internal { F(DebugPushPromise, 1, 1) \ F(DebugPopPromise, 0, 1) \ F(DebugPromiseReject, 2, 1) \ - F(DebugAsyncEventEnqueueRecurring, 2, 1) \ F(DebugAsyncFunctionPromiseCreated, 1, 1) \ F(DebugIsActive, 0, 1) \ F(DebugBreakInOptimizedCode, 0, 1) \ @@ -209,8 +211,17 @@ namespace internal { #define FOR_EACH_INTRINSIC_INTERPRETER_TRACE(F) #endif -#define FOR_EACH_INTRINSIC_INTERPRETER(F) \ - FOR_EACH_INTRINSIC_INTERPRETER_TRACE(F) \ +#ifdef V8_TRACE_FEEDBACK_UPDATES +#define FOR_EACH_INTRINSIC_INTERPRETER_TRACE_FEEDBACK(F) \ + F(InterpreterTraceUpdateFeedback, 3, 1) +#else +#define FOR_EACH_INTRINSIC_INTERPRETER_TRACE_FEEDBACK(F) +#endif + +#define FOR_EACH_INTRINSIC_INTERPRETER(F) \ + FOR_EACH_INTRINSIC_INTERPRETER_TRACE(F) \ + FOR_EACH_INTRINSIC_INTERPRETER_TRACE_FEEDBACK(F) \ + F(InterpreterDeserializeLazy, 2, 1) \ F(InterpreterNewClosure, 4, 1) #define FOR_EACH_INTRINSIC_FUNCTION(F) \ @@ -221,13 +232,11 @@ namespace internal { F(FunctionGetScriptSourcePosition, 1, 1) \ F(FunctionGetContextData, 1, 1) \ F(FunctionSetLength, 2, 1) \ - F(FunctionSetPrototype, 2, 1) \ F(FunctionIsAPIFunction, 1, 1) \ F(SetCode, 2, 1) \ F(SetNativeFlag, 1, 1) \ F(IsConstructor, 1, 1) \ F(Call, -1 /* >= 2 */, 1) \ - F(ConvertReceiver, 1, 1) \ F(IsFunction, 1, 1) \ F(FunctionToString, 1, 1) @@ -354,6 +363,7 @@ namespace internal { #define FOR_EACH_INTRINSIC_MODULE(F) \ F(DynamicImportCall, 2, 1) \ + F(GetImportMetaObject, 0, 1) \ F(GetModuleNamespace, 1, 1) \ F(LoadModuleVariable, 1, 1) \ F(StoreModuleVariable, 2, 1) @@ -394,7 +404,7 @@ namespace internal { F(ToFastProperties, 1, 1) \ F(AllocateHeapNumber, 0, 1) \ F(NewObject, 2, 1) \ - F(FinalizeInstanceSize, 1, 1) \ + F(CompleteInobjectSlackTrackingForMap, 1, 1) \ F(LoadMutableDouble, 2, 1) \ F(TryMigrateInstance, 1, 1) \ F(IsJSGlobalProxy, 1, 1) \ @@ -416,13 +426,13 @@ namespace internal { F(ToPrimitive, 1, 1) \ F(ToPrimitive_Number, 1, 1) \ F(ToNumber, 1, 1) \ + F(ToNumeric, 1, 1) \ F(ToInteger, 1, 1) \ F(ToLength, 1, 1) \ F(ToString, 1, 1) \ F(ToName, 1, 1) \ F(SameValue, 2, 1) \ F(SameValueZero, 2, 1) \ - F(Compare, 3, 1) \ F(HasInPrototypeChain, 2, 1) \ F(CreateIterResultObject, 2, 1) \ F(CreateDataProperty, 3, 1) \ @@ -478,7 +488,6 @@ namespace internal { #define FOR_EACH_INTRINSIC_REGEXP(F) \ F(IsRegExp, 1, 1) \ - F(RegExpCreate, 1, 1) \ F(RegExpExec, 4, 1) \ F(RegExpExecMultiple, 4, 1) \ F(RegExpExecReThrow, 0, 1) \ @@ -486,7 +495,6 @@ namespace internal { F(RegExpInternalReplace, 3, 1) \ F(RegExpReplace, 3, 1) \ F(RegExpSplit, 3, 1) \ - F(StringReplaceGlobalRegExpWithString, 4, 1) \ F(StringReplaceNonGlobalRegExpWithFunction, 3, 1) \ F(StringSplit, 3, 1) @@ -528,7 +536,6 @@ namespace internal { F(StringAdd, 2, 1) \ F(InternalizeString, 1, 1) \ F(StringCharCodeAt, 2, 1) \ - F(StringCompare, 2, 1) \ F(StringBuilderConcat, 3, 1) \ F(StringBuilderJoin, 3, 1) \ F(SparseJoinWithSeparator, 3, 1) \ @@ -572,7 +579,7 @@ namespace internal { F(SetAllocationTimeout, -1 /* 2 || 3 */, 1) \ F(DebugPrint, 1, 1) \ F(DebugTrace, 0, 1) \ - F(DebugTrackRetainingPath, 1, 1) \ + F(DebugTrackRetainingPath, -1, 1) \ F(PrintWithNameForAssert, 2, 1) \ F(GetExceptionDetails, 1, 1) \ F(GlobalPrint, 1, 1) \ @@ -613,6 +620,7 @@ namespace internal { F(IsWasmTrapHandlerEnabled, 0, 1) \ F(GetWasmRecoveredTrapCount, 0, 1) \ F(DisallowCodegenFromStrings, 1, 1) \ + F(DisallowWasmCodegen, 1, 1) \ F(ValidateWasmInstancesChain, 2, 1) \ F(ValidateWasmModuleState, 1, 1) \ F(ValidateWasmOrphanedInstance, 1, 1) \ @@ -622,7 +630,8 @@ namespace internal { F(WasmNumInterpretedCalls, 1, 1) \ F(RedirectToWasmInterpreter, 2, 1) \ F(WasmTraceMemory, 4, 1) \ - F(CompleteInobjectSlackTracking, 1, 1) + F(CompleteInobjectSlackTracking, 1, 1) \ + F(IsLiftoffFunction, 1, 1) #define FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ F(ArrayBufferGetByteLength, 1, 1) \ @@ -643,8 +652,7 @@ namespace internal { #define FOR_EACH_INTRINSIC_WASM(F) \ F(WasmGrowMemory, 1, 1) \ - F(ThrowWasmError, 2, 1) \ - F(ThrowWasmErrorFromTrapIf, 1, 1) \ + F(ThrowWasmError, 1, 1) \ F(ThrowWasmStackOverflow, 0, 1) \ F(WasmThrowTypeError, 0, 1) \ F(WasmThrowCreate, 2, 1) \ @@ -652,12 +660,13 @@ namespace internal { F(WasmGetExceptionRuntimeId, 0, 1) \ F(WasmExceptionSetElement, 2, 1) \ F(WasmExceptionGetElement, 1, 1) \ - F(WasmRunInterpreter, 3, 1) \ + F(WasmRunInterpreter, 2, 1) \ F(WasmStackGuard, 0, 1) \ F(WasmCompileLazy, 0, 1) #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ - F(LoadLookupSlotForCall, 1, 2) + F(LoadLookupSlotForCall, 1, 2) \ + F(DebugBreakOnBytecode, 1, 2) // Most intrinsics are implemented in the runtime/ directory, but ICs are // implemented in ic.cc for now. @@ -672,6 +681,7 @@ namespace internal { F(LoadIC_Miss, 4, 1) \ F(LoadPropertyWithInterceptor, 5, 1) \ F(StoreCallbackProperty, 6, 1) \ + F(StoreGlobalIC_Slow, 5, 1) \ F(StoreIC_Miss, 5, 1) \ F(StorePropertyWithInterceptor, 5, 1) \ F(Unreachable, 0, 1) |