/third_party/node/deps/v8/src/objects/ |
D | smi.h | 23 class Smi : public Object { 27 constexpr Smi() : Object() {} in Smi() function 28 explicit constexpr Smi(Address ptr) : Object(ptr) { in Smi() function 34 inline Smi ToUint32Smi() { in ToUint32Smi() 35 if (value() <= 0) return Smi::FromInt(0); in ToUint32Smi() 36 return Smi::FromInt(static_cast<uint32_t>(value())); in ToUint32Smi() 41 return Smi::cast(object).value(); in ToInt() 45 static inline constexpr Smi FromInt(int value) { in FromInt() 46 DCHECK(Smi::IsValid(value)); in FromInt() 47 return Smi(Internals::IntToSmi(value)); in FromInt() [all …]
|
D | fixed-array.tq | 8 const length: Smi; 24 const length: Smi; 42 const capacity: Smi; 43 length: Smi; 53 FixedArray, Smi): Object; 57 FixedArray, intptr, Smi): void; 59 FixedArray, Smi, Smi): void; 65 FixedArray, constexpr int31, Smi): void; 69 FixedArray, Smi, Object): void; 71 FixedArray, Smi, Object, constexpr WriteBarrierMode): void; [all …]
|
D | js-regexp-inl.h | 33 Smi smi = Smi::cast(FixedArray::cast(data).get(kTagIndex)); in TQ_OBJECT_CONSTRUCTORS_IMPL() 43 return Smi::ToInt(DataAt(kIrregexpCaptureCountIndex)); in capture_count() 51 return Smi::ToInt(DataAt(kIrregexpMaxRegisterCountIndex)); in max_register_count() 64 Smi smi = Smi::cast(TorqueGeneratedClass::flags()); in flags() 76 DCHECK_NE(value, Smi::FromInt(JSRegExp::kUninitializedValue)); in capture_name_map() 82 SetDataAt(JSRegExp::kIrregexpCaptureNameMapIndex, Smi::zero()); in set_capture_name_map() 102 Smi uninitialized = Smi::FromInt(kUninitializedValue); in HasCompiledCode() 119 Smi uninitialized = Smi::FromInt(kUninitializedValue); in DiscardCompiledCodeForSerialization()
|
D | js-objects.tq | 9 properties_or_hash: SwissNameDictionary|FixedArrayBase|PropertyArray|Smi; 121 message_type: Smi; 131 // TODO(ishell): store as int32 instead of Smi. 132 bytecode_offset: Smi; 133 start_position: Smi; 134 end_position: Smi; 135 error_level: Smi; 145 year: Undefined|Smi|NaN; 146 month: Undefined|Smi|NaN; 147 day: Undefined|Smi|NaN; [all …]
|
D | regexp-match-info.tq | 9 constexpr int31): Smi { 11 return UnsafeCast<Smi>(this.objects[index]); 14 constexpr int31): Smi { 16 return UnsafeCast<Smi>(this.objects[index]); 18 macro NumberOfCaptures(implicit context: Context)(): Smi { 19 return UnsafeCast<Smi>(this.objects[kRegExpMatchInfoNumberOfCapturesIndex]);
|
D | source-text-module.tq | 41 dfs_index: Smi; 42 dfs_ancestor_index: Smi; 45 pending_async_dependencies: Smi; 58 position: Smi; 65 module_request: Smi; 66 cell_index: Smi; 67 beg_pos: Smi; 68 end_pos: Smi;
|
D | embedder-data-slot-inl.h | 41 ObjectSlot(address() + kRawPayloadOffset).Relaxed_Store(Smi::zero()); in Initialize() 49 void EmbedderDataSlot::store_smi(Smi value) { in store_smi() 53 ObjectSlot(address() + kRawPayloadOffset).Relaxed_Store(Smi::zero()); in store_smi() 67 .Relaxed_Store(Smi::zero()); in store_tagged() 81 .Relaxed_Store(Smi::zero()); in store_tagged() 121 ObjectSlot(address() + kTaggedPayloadOffset).Relaxed_Store(Smi::zero()); in store_aligned_pointer() 167 ObjectSlot(address() + kTaggedPayloadOffset).Relaxed_Store(Smi(lo)); in gc_safe_store() 171 ObjectSlot(address() + kTaggedPayloadOffset).Relaxed_Store(Smi(value)); in gc_safe_store()
|
D | js-regexp.cc | 26 indices->set_length(Smi::zero()); in BuildIndices() 47 indices_sub_array->set(0, Smi::FromInt(start_offset)); in BuildIndices() 48 indices_sub_array->set(1, Smi::FromInt(end_offset)); in BuildIndices() 80 Handle<Smi> smi_index(Smi::cast(names->get(index_offset)), isolate); in BuildIndices() 111 return static_cast<uint32_t>(Smi::ToInt(DataAt(kIrregexpBacktrackLimit))); in backtrack_limit() 207 return Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)) == 0; in MarkedForTierUp() 213 int tier_up_ticks = Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)) + 1; in ResetLastTierUpTick() 215 Smi::FromInt(tier_up_ticks)); in ResetLastTierUpTick() 221 int tier_up_ticks = Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)); in TierUpTick() 226 Smi::FromInt(tier_up_ticks - 1)); in TierUpTick() [all …]
|
D | script.tq | 25 line_offset: Smi; 29 column_offset: Smi; 32 context_data: Smi|Undefined|Symbol; 34 script_type: Smi; 40 id: Smi; 48 eval_from_position: Smi|Foreign; // Smi or Managed<wasm::NativeModule>
|
/third_party/node/deps/v8/src/ic/ |
D | handler-configuration-inl.h | 32 LoadHandler::Kind LoadHandler::GetHandlerKind(Smi smi_handler) { in OBJECT_CONSTRUCTORS_IMPL() 36 Handle<Smi> LoadHandler::LoadNormal(Isolate* isolate) { in LoadNormal() 38 return handle(Smi::FromInt(config), isolate); in LoadNormal() 41 Handle<Smi> LoadHandler::LoadGlobal(Isolate* isolate) { in LoadGlobal() 43 return handle(Smi::FromInt(config), isolate); in LoadGlobal() 46 Handle<Smi> LoadHandler::LoadInterceptor(Isolate* isolate) { in LoadInterceptor() 48 return handle(Smi::FromInt(config), isolate); in LoadInterceptor() 51 Handle<Smi> LoadHandler::LoadSlow(Isolate* isolate) { in LoadSlow() 53 return handle(Smi::FromInt(config), isolate); in LoadSlow() 56 Handle<Smi> LoadHandler::LoadField(Isolate* isolate, FieldIndex field_index) { in LoadField() [all …]
|
D | handler-configuration.h | 151 static inline Kind GetHandlerKind(Smi smi_handler); 154 static inline Handle<Smi> LoadNormal(Isolate* isolate); 157 static inline Handle<Smi> LoadGlobal(Isolate* isolate); 161 static inline Handle<Smi> LoadInterceptor(Isolate* isolate); 164 static inline Handle<Smi> LoadSlow(Isolate* isolate); 167 static inline Handle<Smi> LoadField(Isolate* isolate, FieldIndex field_index); 171 static inline Handle<Smi> LoadConstantFromPrototype(Isolate* isolate); 174 static inline Handle<Smi> LoadAccessor(Isolate* isolate, int descriptor); 177 static inline Handle<Smi> LoadProxy(Isolate* isolate); 180 static inline Handle<Smi> LoadNativeDataProperty(Isolate* isolate, [all …]
|
D | binary-op-assembler.cc | 23 TVARIABLE(Smi, var_type_feedback); in Generate_AddWithFeedback() 39 TNode<Smi> lhs_smi = CAST(lhs); in Generate_AddWithFeedback() 65 TNode<Smi> rhs_smi = CAST(rhs); in Generate_AddWithFeedback() 68 TNode<Smi> smi_result = TrySmiAdd(lhs_smi, rhs_smi, &if_overflow); in Generate_AddWithFeedback() 251 TVARIABLE(Smi, var_type_feedback); in Generate_BinaryOperationWithFeedback() 267 TNode<Smi> lhs_smi = CAST(lhs); in Generate_BinaryOperationWithFeedback() 467 auto smiFunction = [=](TNode<Smi> lhs, TNode<Smi> rhs, in Generate_SubtractWithFeedback() 468 TVariable<Smi>* var_type_feedback) { in Generate_SubtractWithFeedback() 503 auto smiFunction = [=](TNode<Smi> lhs, TNode<Smi> rhs, in Generate_MultiplyWithFeedback() 504 TVariable<Smi>* var_type_feedback) { in Generate_MultiplyWithFeedback() [all …]
|
/third_party/node/deps/v8/test/torque/ |
D | test-torque.tq | 33 labels Label2(Smi) { 38 labels Label3(Oddball, Smi) { 80 } label Label2(smi: Smi) { 90 } label Label3(o: Oddball, smi: Smi) { 107 check(GenericBuiltinTest<Smi>(0) == Null); 108 check(GenericBuiltinTest<Smi>(1) == Null); 159 return Cast<Smi>(param2) otherwise Y; 165 const _smi0: Smi = 0; 166 check(GenericMacroTest<Smi>(0) == Undefined); 167 check(GenericMacroTest<Smi>(1) == Undefined); [all …]
|
/third_party/node/deps/v8/third_party/v8/builtins/ |
D | array-sort.tq | 70 minGallop: Smi; 82 pendingRunsSize: Smi; 93 // The initialReceiverLength converted and clamped to Smi. 94 sortLength: Smi; 98 numberOfUndefined: Smi; 205 const kSuccess: Smi = 0; 220 const kSortStateTempSize: Smi = 32; 222 type LoadFn = builtin(Context, SortState, Smi) => (JSAny|TheHole); 223 type StoreFn = builtin(Context, SortState, Smi, JSAny) => Smi; 224 type DeleteFn = builtin(Context, SortState, Smi) => Smi; [all …]
|
/third_party/node/deps/v8/src/builtins/ |
D | wasm.tq | 8 extern runtime WasmMemoryGrow(Context, WasmInstanceObject, Smi): Smi; 9 extern runtime WasmRefFunc(Context, WasmInstanceObject, Smi): JSAny; 11 Context, WasmInstanceObject, Object, Object, Smi, Smi, Smi): JSAny; 13 Context, WasmInstanceObject, Object, Object, Smi, Smi, Smi): JSAny; 15 Context, WasmInstanceObject, Smi, Smi, Object, Smi): JSAny; 17 Context, WasmInstanceObject, Smi, Object, Smi): Smi; 19 Context, WasmInstanceObject, Smi, Smi): JSAny; 21 Context, WasmInstanceObject, Smi, Smi, Object): JSAny; 22 extern runtime ThrowWasmError(Context, Smi): JSAny; 28 extern runtime WasmTraceMemory(Context, Smi): JSAny; [all …]
|
D | array-splice.tq | 13 source: FixedArray, startIndex: Smi, count: Smi, 14 resultCapacity: Smi): FixedArray { 21 source: FixedDoubleArray|EmptyFixedArray, startIndex: Smi, count: Smi, 22 resultCapacity: Smi): FixedDoubleArray|EmptyFixedArray { 40 elements: FixedArrayType, dstIndex: Smi, srcIndex: Smi, count: Smi): void { 47 elements: FixedArrayType, holeStartIndex: Smi, holeEndIndex: Smi): void { 48 for (let i: Smi = holeStartIndex; i < holeEndIndex; i++) { 54 dstElements: FixedArrayType, dstIndex: Smi, srcElements: FixedArrayType, 55 srcIndex: Smi, count: Smi): void { 64 args: Arguments, a: JSArray, length: Smi, newLength: Smi, actualStart: Smi, [all …]
|
D | convert.tq | 52 FromConstexpr<Smi, constexpr IntegerLiteral>(i: constexpr IntegerLiteral): Smi { 53 return Convert<Smi>(ConstexprIntegerLiteralToInt31(i)); 81 FromConstexpr<Smi, constexpr int31>(i: constexpr int31): Smi { 82 return %FromConstexpr<Smi>(i); 116 FromConstexpr<Number, constexpr Smi>(s: constexpr Smi): Number { 119 FromConstexpr<Smi, constexpr Smi>(s: constexpr Smi): Smi { 212 Convert<Smi, int32>(i: int32): Smi { 218 Convert<Smi, uint32>(ui: uint32): Smi { 268 case (s: Smi): { 277 Convert<Smi, intptr>(i: intptr): Smi { [all …]
|
D | array-reverse.tq | 7 elements: FixedArrayBase, index: Smi): T; 9 LoadElement<array::FastPackedSmiElements, Smi>(implicit context: Context)( 10 elements: FixedArrayBase, index: Smi): Smi { 12 return UnsafeCast<Smi>(elements.objects[index]); 16 elements: FixedArrayBase, index: Smi): JSAny { 22 implicit context: Context)(elements: FixedArrayBase, index: Smi): float64 { 31 elements: FixedArrayBase, index: Smi, value: T): void; 33 StoreElement<array::FastPackedSmiElements, Smi>(implicit context: Context)( 34 elements: FixedArrayBase, index: Smi, value: Smi): void { 40 elements: FixedArrayBase, index: Smi, value: JSAny): void { [all …]
|
D | array-slice.tq | 7 context: NativeContext, args: JSArgumentsObjectWithLength, start: Smi, 8 count: Smi): JSArray 13 const end: Smi = start + count; 31 context: NativeContext, args: JSArgumentsObjectWithLength, start: Smi, 32 count: Smi): JSArray 39 const parameterMapLength: Smi = sloppyElements.length; 43 const end: Smi = start + count; 47 const unmappedElementsLength: Smi = unmappedElements.length; 57 let indexOut: Smi = 0; 59 const to: Smi = SmiMin(parameterMapLength, end); [all …]
|
D | regexp-replace.tq | 10 SubString(implicit context: Context)(String, Smi, Smi): String; 17 StringBuilderConcat(implicit context: Context)(JSArray, Smi, String): String; 26 let matchStart: Smi = 0; 30 case (elSmi: Smi): { 40 matchStart = Convert<Smi>(newMatchStart); 44 const nextEl: Smi = UnsafeCast<Smi>(matchesElements.objects[++i]); 88 const kInitialLength: Smi = 0; 101 const matchesLength: Smi = Cast<Smi>(matches.length) otherwise unreachable; 106 const nofCaptures: Smi = GetRegExpLastMatchInfo().NumberOfCaptures(); 128 let lastMatchEnd: Smi = 0; [all …]
|
D | base.tq | 36 type Smi extends StrongTagged generates 'TNode<Smi>' constexpr 'Smi'; 40 // strong HeapObject pointers and Smi values. 44 type Object = Smi|HeapObject; 45 type MaybeObject = Smi|HeapObject|WeakHeapObject; 47 // A Smi that is greater than or equal to 0. See TaggedIsPositiveSmi. 48 type PositiveSmi extends Smi; 50 // The Smi value zero, which is often used as null for HeapObject types. 147 extern macro RunLazy(Lazy<Smi>): Smi; 150 // A Smi value containing a bitfield struct as its integer data. 151 @useParentTypeChecker type SmiTagged<T : type extends uint31> extends Smi; [all …]
|
D | builtins-regexp-gen.h | 21 TNode<Smi> SmiZero(); 31 TNode<Context> context, TNode<Smi> length, TNode<Smi> index, 36 TNode<Smi> FastLoadLastIndex(TNode<JSRegExp> regexp) { in FastLoadLastIndex() 41 void FastStoreLastIndex(TNode<JSRegExp> regexp, TNode<Smi> value); 154 TNode<Smi> AdvanceStringIndexFast(TNode<String> string, TNode<Smi> index, in AdvanceStringIndexFast() 159 TNode<Smi> AdvanceStringIndexSlow(TNode<String> string, TNode<Number> index, in AdvanceStringIndexSlow() 167 const TNode<Smi> limit);
|
/third_party/node/deps/v8/src/heap/ |
D | factory-base-inl.h | 30 return handle(Smi::FromInt(int_value), isolate()); in NewNumber() 38 if (Smi::IsValid(value)) return handle(Smi::FromInt(value), isolate()); in NewNumberFromInt() 47 if (int32v >= 0 && Smi::IsValid(int32v)) { in NewNumberFromUint() 48 return handle(Smi::FromInt(int32v), isolate()); in NewNumberFromUint() 58 if (value <= static_cast<size_t>(Smi::kMaxValue)) { in NewNumberFromSize() 59 return handle(Smi::FromIntptr(static_cast<intptr_t>(value)), isolate()); in NewNumberFromSize() 69 Smi::IsValid(static_cast<int32_t>(value))) { in NewNumberFromInt64() 70 return handle(Smi::FromInt(static_cast<int32_t>(value)), isolate()); in NewNumberFromInt64()
|
/third_party/node/deps/v8/src/wasm/ |
D | wasm-objects.tq | 59 function_index: Smi; 61 wrapper_budget: Smi; 66 packed_args_size: Smi; 73 serialized_return_count: Smi; 74 serialized_parameter_count: Smi; 107 state: Smi; // 0: Inactive, 1: Active, 2: Suspended. 114 index: Smi; 132 current_length: Smi; 133 maximum_length: Smi|HeapNumber|Undefined; 135 raw_type: Smi; [all …]
|
/third_party/node/deps/v8/src/codegen/ |
D | code-stub-assembler.h | 338 TNode<IntPtrT> ParameterToIntPtr(TNode<Smi> value) { return SmiUntag(value); } in ParameterToIntPtr() 350 TNode<Smi> ParameterToTagged(TNode<Smi> value) { return value; } in ParameterToTagged() 352 TNode<Smi> ParameterToTagged(TNode<IntPtrT> value) { return SmiTag(value); } in ParameterToTagged() 355 TNode<TIndex> TaggedToParameter(TNode<Smi> value); 357 bool ToParameterConstant(TNode<Smi> node, intptr_t* out) { in ToParameterConstant() 374 TNode<Smi> BIntToSmi(TNode<BInt> source) { return source; } in BIntToSmi() 378 TNode<BInt> SmiToBInt(TNode<Smi> source) { return source; } in SmiToBInt() 383 TNode<Smi> BIntToSmi(TNode<BInt> source) { return SmiFromIntPtr(source); } in BIntToSmi() 385 TNode<BInt> SmiToBInt(TNode<Smi> source) { return SmiToIntPtr(source); } in SmiToBInt() 394 TNode<Smi> TaggedIndexToSmi(TNode<TaggedIndex> value); [all …]
|