Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/debug/debug-evaluate.cc')
-rw-r--r--deps/v8/src/debug/debug-evaluate.cc217
1 files changed, 111 insertions, 106 deletions
diff --git a/deps/v8/src/debug/debug-evaluate.cc b/deps/v8/src/debug/debug-evaluate.cc
index d263fa45a9a..5466ca050b3 100644
--- a/deps/v8/src/debug/debug-evaluate.cc
+++ b/deps/v8/src/debug/debug-evaluate.cc
@@ -32,7 +32,8 @@ MaybeHandle<Object> DebugEvaluate::Global(Isolate* isolate,
ScriptOriginOptions origin_options(false, true);
MaybeHandle<SharedFunctionInfo> maybe_function_info =
Compiler::GetSharedFunctionInfoForScript(
- source, Compiler::ScriptDetails(isolate->factory()->empty_string()),
+ isolate, source,
+ Compiler::ScriptDetails(isolate->factory()->empty_string()),
origin_options, nullptr, nullptr, ScriptCompiler::kNoCompileOptions,
ScriptCompiler::kNoCacheNoReason, NOT_NATIVES_CODE);
@@ -254,111 +255,112 @@ namespace {
bool IntrinsicHasNoSideEffect(Runtime::FunctionId id) {
// Use macro to include both inlined and non-inlined version of an intrinsic.
-#define INTRINSIC_WHITELIST(V) \
- /* Conversions */ \
- V(NumberToStringSkipCache) \
- V(ToBigInt) \
- V(ToInteger) \
- V(ToLength) \
- V(ToNumber) \
- V(ToObject) \
- V(ToString) \
- /* Type checks */ \
- V(IsArray) \
- V(IsDate) \
- V(IsFunction) \
- V(IsJSProxy) \
- V(IsJSReceiver) \
- V(IsJSWeakMap) \
- V(IsJSWeakSet) \
- V(IsRegExp) \
- V(IsSmi) \
- V(IsTypedArray) \
- /* Loads */ \
- V(LoadLookupSlotForCall) \
- /* Arrays */ \
- V(ArraySpeciesConstructor) \
- V(EstimateNumberOfElements) \
- V(GetArrayKeys) \
- V(HasComplexElements) \
- V(HasFastPackedElements) \
- V(NewArray) \
- V(NormalizeElements) \
- V(PrepareElementsForSort) \
- V(TrySliceSimpleNonFastElements) \
- V(TypedArrayGetBuffer) \
- /* Errors */ \
- V(NewTypeError) \
- V(ReThrow) \
- V(ThrowCalledNonCallable) \
- V(ThrowInvalidStringLength) \
- V(ThrowIteratorResultNotAnObject) \
- V(ThrowReferenceError) \
- V(ThrowSymbolIteratorInvalid) \
- /* Strings */ \
- V(RegExpInternalReplace) \
- V(StringIncludes) \
- V(StringIndexOf) \
- V(StringReplaceOneCharWithString) \
- V(StringSubstring) \
- V(StringToNumber) \
- V(StringTrim) \
- /* BigInts */ \
- V(BigIntEqualToBigInt) \
- V(BigIntToBoolean) \
- V(BigIntToNumber) \
- /* Literals */ \
- V(CreateArrayLiteral) \
- V(CreateObjectLiteral) \
- V(CreateRegExpLiteral) \
- /* Called from builtins */ \
- V(AllocateInNewSpace) \
- V(AllocateInTargetSpace) \
- V(AllocateSeqOneByteString) \
- V(AllocateSeqTwoByteString) \
- V(ArrayIncludes_Slow) \
- V(ArrayIndexOf) \
- V(ArrayIsArray) \
- V(ClassOf) \
- V(GenerateRandomNumbers) \
- V(GetFunctionName) \
- V(GetOwnPropertyDescriptor) \
- V(GlobalPrint) \
- V(HasProperty) \
- V(ObjectCreate) \
- V(ObjectEntries) \
- V(ObjectEntriesSkipFastPath) \
- V(ObjectHasOwnProperty) \
- V(ObjectValues) \
- V(ObjectValuesSkipFastPath) \
- V(ObjectGetOwnPropertyNames) \
- V(ObjectGetOwnPropertyNamesTryFast) \
- V(RegExpInitializeAndCompile) \
- V(StackGuard) \
- V(StringAdd) \
- V(StringCharCodeAt) \
- V(StringEqual) \
- V(StringIndexOfUnchecked) \
- V(StringParseFloat) \
- V(StringParseInt) \
- V(SymbolDescriptiveString) \
- V(ThrowRangeError) \
- V(ThrowTypeError) \
- V(ToName) \
- V(TransitionElementsKind) \
- /* Misc. */ \
- V(Call) \
- V(CompleteInobjectSlackTrackingForMap) \
- V(HasInPrototypeChain) \
- V(MaxSmi) \
- V(NewObject) \
- V(SmiLexicographicCompare) \
- V(StringMaxLength) \
- V(StringToArray) \
- /* Test */ \
- V(GetOptimizationStatus) \
- V(OptimizeFunctionOnNextCall) \
- V(OptimizeOsr) \
+#define INTRINSIC_WHITELIST(V) \
+ /* Conversions */ \
+ V(NumberToString) \
+ V(ToBigInt) \
+ V(ToInteger) \
+ V(ToLength) \
+ V(ToNumber) \
+ V(ToObject) \
+ V(ToString) \
+ /* Type checks */ \
+ V(IsArray) \
+ V(IsDate) \
+ V(IsFunction) \
+ V(IsJSProxy) \
+ V(IsJSReceiver) \
+ V(IsRegExp) \
+ V(IsSmi) \
+ V(IsTypedArray) \
+ /* Loads */ \
+ V(LoadLookupSlotForCall) \
+ V(GetProperty) \
+ /* Arrays */ \
+ V(ArraySpeciesConstructor) \
+ V(EstimateNumberOfElements) \
+ V(GetArrayKeys) \
+ V(HasComplexElements) \
+ V(HasFastPackedElements) \
+ V(NewArray) \
+ V(NormalizeElements) \
+ V(PrepareElementsForSort) \
+ V(TrySliceSimpleNonFastElements) \
+ V(TypedArrayGetBuffer) \
+ /* Errors */ \
+ V(NewTypeError) \
+ V(ReThrow) \
+ V(ThrowCalledNonCallable) \
+ V(ThrowInvalidStringLength) \
+ V(ThrowIteratorResultNotAnObject) \
+ V(ThrowReferenceError) \
+ V(ThrowSymbolIteratorInvalid) \
+ /* Strings */ \
+ V(RegExpInternalReplace) \
+ V(StringIncludes) \
+ V(StringIndexOf) \
+ V(StringReplaceOneCharWithString) \
+ V(StringSubstring) \
+ V(StringToNumber) \
+ V(StringTrim) \
+ /* BigInts */ \
+ V(BigIntEqualToBigInt) \
+ V(BigIntToBoolean) \
+ V(BigIntToNumber) \
+ /* Literals */ \
+ V(CreateArrayLiteral) \
+ V(CreateArrayLiteralWithoutAllocationSite) \
+ V(CreateObjectLiteral) \
+ V(CreateObjectLiteralWithoutAllocationSite) \
+ V(CreateRegExpLiteral) \
+ /* Called from builtins */ \
+ V(AllocateInNewSpace) \
+ V(AllocateInTargetSpace) \
+ V(AllocateSeqOneByteString) \
+ V(AllocateSeqTwoByteString) \
+ V(ArrayIncludes_Slow) \
+ V(ArrayIndexOf) \
+ V(ArrayIsArray) \
+ V(ClassOf) \
+ V(GenerateRandomNumbers) \
+ V(GetFunctionName) \
+ V(GetOwnPropertyDescriptor) \
+ V(GlobalPrint) \
+ V(HasProperty) \
+ V(ObjectCreate) \
+ V(ObjectEntries) \
+ V(ObjectEntriesSkipFastPath) \
+ V(ObjectHasOwnProperty) \
+ V(ObjectValues) \
+ V(ObjectValuesSkipFastPath) \
+ V(ObjectGetOwnPropertyNames) \
+ V(ObjectGetOwnPropertyNamesTryFast) \
+ V(RegExpInitializeAndCompile) \
+ V(StackGuard) \
+ V(StringAdd) \
+ V(StringCharCodeAt) \
+ V(StringEqual) \
+ V(StringIndexOfUnchecked) \
+ V(StringParseFloat) \
+ V(StringParseInt) \
+ V(SymbolDescriptiveString) \
+ V(ThrowRangeError) \
+ V(ThrowTypeError) \
+ V(ToName) \
+ V(TransitionElementsKind) \
+ /* Misc. */ \
+ V(Call) \
+ V(CompleteInobjectSlackTrackingForMap) \
+ V(HasInPrototypeChain) \
+ V(MaxSmi) \
+ V(NewObject) \
+ V(SmiLexicographicCompare) \
+ V(StringMaxLength) \
+ V(StringToArray) \
+ /* Test */ \
+ V(GetOptimizationStatus) \
+ V(OptimizeFunctionOnNextCall) \
+ V(OptimizeOsr) \
V(UnblockConcurrentRecompilation)
#define CASE(Name) \
@@ -553,12 +555,14 @@ DebugInfo::SideEffectState BuiltinGetSideEffectState(Builtins::Name id) {
case Builtins::kArrayPrototypeValues:
case Builtins::kArrayIncludes:
case Builtins::kArrayPrototypeEntries:
+ case Builtins::kArrayPrototypeFill:
case Builtins::kArrayPrototypeFind:
case Builtins::kArrayPrototypeFindIndex:
case Builtins::kArrayPrototypeFlat:
case Builtins::kArrayPrototypeFlatMap:
case Builtins::kArrayPrototypeKeys:
case Builtins::kArrayPrototypeSlice:
+ case Builtins::kArrayPrototypeSort:
case Builtins::kArrayForEach:
case Builtins::kArrayEvery:
case Builtins::kArraySome:
@@ -813,6 +817,7 @@ DebugInfo::SideEffectState BuiltinGetSideEffectState(Builtins::Name id) {
case Builtins::kArrayIteratorPrototypeNext:
case Builtins::kArrayPrototypePop:
case Builtins::kArrayPrototypePush:
+ case Builtins::kArrayPrototypeReverse:
case Builtins::kArrayPrototypeShift:
case Builtins::kArraySplice:
case Builtins::kArrayUnshift: