v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
runtime-test.cc File Reference
Include dependency graph for runtime-test.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define CONVERT_INT32_ARG_FUZZ_SAFE(name, index)
 
#define CONVERT_BOOLEAN_ARG_FUZZ_SAFE(name, index)
 
#define ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(Name)
 
#define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION(Type, type, TYPE, ctype)
 

Functions

 v8::internal::RUNTIME_FUNCTION (Runtime_ClearMegamorphicStubCache)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ConstructDouble)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_StringIsFlat)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ConstructConsString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ConstructSlicedString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ConstructInternalizedString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ConstructThinString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DeoptimizeFunction)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DeoptimizeNow)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_LeakHole)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RunningInSimulator)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RuntimeEvaluateREPL)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ICsAreEnabled)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsConcurrentRecompilationSupported)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsAtomicsWaitAllowed)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_CompileBaseline)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_BenchMaglev)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_BenchTurbofan)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ActiveTierIsIgnition)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ActiveTierIsSparkplug)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ActiveTierIsMaglev)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ActiveTierIsTurbofan)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsSparkplugEnabled)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsMaglevEnabled)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsTurbofanEnabled)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_CurrentFrameIsTurbofan)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_OptimizeMaglevOnNextCall)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_OptimizeFunctionOnNextCall)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_EnsureFeedbackVectorForFunction)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_PrepareFunctionForOptimization)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_OptimizeOsr)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_BaselineOsr)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_NeverOptimizeFunction)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetOptimizationStatus)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetFunctionForCurrentFrame)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DisableOptimizationFinalization)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_WaitForBackgroundOptimization)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_FinalizeOptimization)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ForceFlush)
 
static void v8::internal::ReturnNull (const v8::FunctionCallbackInfo< v8::Value > &info)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetUndetectable)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetAbstractModuleSource)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetCallable)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ClearFunctionFeedback)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_NotifyContextDisposed)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetAllocationTimeout)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SimulateNewspaceFull)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ScheduleGCInStackCheck)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_TakeHeapSnapshot)
 
static void v8::internal::DebugPrintImpl (Tagged< MaybeObject > maybe_object, std::ostream &os)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DebugPrint)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DebugPrintPtr)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DebugPrintWord)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DebugPrintFloat)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_PrintWithNameForAssert)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DebugTrace)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GlobalPrint)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SystemBreak)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetForceSlowPath)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_Abort)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_AbortJS)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_AbortCSADcheck)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DisassembleFunction)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_TraceEnter)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_TraceExit)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_HaveSameMap)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_InLargeObjectSpace)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_HasElementsInALargeObjectSpace)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_HasCowElements)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_InYoungGeneration)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_PretenureAllocationSite)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_DisallowCodegenFromStrings)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RegexpHasBytecode)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RegexpHasNativeCode)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RegexpTypeTag)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RegexpIsUnmodified)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsConcatSpreadableProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_TypedArrayLengthProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_TypedArraySpeciesProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_RegExpSpeciesProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_PromiseSpeciesProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ArraySpeciesProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_MapIteratorProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetIteratorProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_StringIteratorProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ArrayIteratorProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_NoElementsProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_StringWrapperToPrimitiveProtector)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SerializeDeserializeNow)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_HeapObjectVerify)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_CompleteInobjectSlackTracking)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_TurbofanStaticAssert)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsBeingInterpreted)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_EnableCodeLoggingForTesting)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_NewRegExpWithBacktrackLimit)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_Is64Bit)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_BigIntMaxLengthBits)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsSameHeapObject)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsSharedString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ShareObject)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsInPlaceInternalizableString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsInternalizedString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_StringToCString)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_StringUtf8Value)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SharedGC)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_AtomicsSynchronizationPrimitiveNumWaitersForTesting)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_AtomicsSychronizationNumAsyncWaitersInIsolateForTesting)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetWeakCollectionSize)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetPriorityBestEffort)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetPriorityUserVisible)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetPriorityUserBlocking)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsEfficiencyModeEnabled)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_SetBatterySaverMode)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_IsWasmTieringPredictable)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_GetFeedback)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_CheckNoWriteBarrierNeeded)
 
 v8::internal::RUNTIME_FUNCTION (Runtime_ArrayBufferDetachForceWasm)
 

Macro Definition Documentation

◆ CONVERT_BOOLEAN_ARG_FUZZ_SAFE

#define CONVERT_BOOLEAN_ARG_FUZZ_SAFE ( name,
index )
Value:
if (!IsBoolean(args[index])) return CrashUnlessFuzzing(isolate); \
bool name = IsTrue(args[index], isolate);
base::Vector< const DirectHandle< Object > > args
Definition execution.cc:74

Definition at line 109 of file runtime-test.cc.

◆ CONVERT_INT32_ARG_FUZZ_SAFE

#define CONVERT_INT32_ARG_FUZZ_SAFE ( name,
index )
Value:
if (!IsNumber(args[index])) return CrashUnlessFuzzing(isolate); \
int32_t name = 0; \
if (!Object::ToInt32(args[index], &name)) return CrashUnlessFuzzing(isolate);

Definition at line 101 of file runtime-test.cc.

◆ ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION

#define ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION ( Name)
Value:
RUNTIME_FUNCTION(Runtime_##Name) { \
if (args.length() != 1 || !IsJSObject(args[0])) { \
return CrashUnlessFuzzing(isolate); \
} \
auto obj = args.at<JSObject>(0); \
return isolate->heap()->ToBoolean(obj->Name()); \
}
#define RUNTIME_FUNCTION(Name)
Definition arguments.h:162

Definition at line 1798 of file runtime-test.cc.

◆ FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION

#define FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION ( Type,
type,
TYPE,
ctype )
Value:
RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
if (args.length() != 1 || !IsJSObject(args[0])) { \
return CrashUnlessFuzzing(isolate); \
} \
auto obj = Cast<JSObject>(args[0]); \
return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
}

Definition at line 1821 of file runtime-test.cc.