Home
last modified time | relevance | path

Searched refs:SmiConstant (Results 1 – 25 of 70) sorted by relevance

123

/third_party/node/deps/v8/src/ic/
Dbinary-op-assembler.cc71 var_type_feedback = SmiConstant(BinaryOperationFeedback::kSignedSmall); in Generate_AddWithFeedback()
120 var_type_feedback = SmiConstant(BinaryOperationFeedback::kNumber); in Generate_AddWithFeedback()
172 var_type_feedback = SmiConstant(BinaryOperationFeedback::kString); in Generate_AddWithFeedback()
202 var_type_feedback = SmiConstant(BinaryOperationFeedback::kBigInt); in Generate_AddWithFeedback()
210 UpdateFeedback(SmiConstant(BinaryOperationFeedback::kAny), in Generate_AddWithFeedback()
218 var_type_feedback = SmiConstant(BinaryOperationFeedback::kNumberOrOddball); in Generate_AddWithFeedback()
224 var_type_feedback = SmiConstant(BinaryOperationFeedback::kAny); in Generate_AddWithFeedback()
334 var_type_feedback = SmiConstant(BinaryOperationFeedback::kNumber); in Generate_BinaryOperationWithFeedback()
362 SmiConstant(BinaryOperationFeedback::kNumberOrOddball); in Generate_BinaryOperationWithFeedback()
372 SmiConstant(BinaryOperationFeedback::kNumberOrOddball); in Generate_BinaryOperationWithFeedback()
[all …]
Dunary-op-assembler.cc47 UpdateFeedback(SmiConstant(BinaryOperationFeedback::kBigInt), in BitwiseNot()
51 SmiConstant(Operation::kBitwiseNot)); in BitwiseNot()
84 GotoIf(SmiEqual(smi_value, SmiConstant(0)), &if_zero); in Negate()
87 GotoIf(SmiEqual(smi_value, SmiConstant(Smi::kMinValue)), &if_min_smi); in Negate()
91 var_result = SmiSub(SmiConstant(0), smi_value); in Negate()
112 SmiConstant(Operation::kNegate))); in Negate()
138 TVARIABLE(Smi, var_feedback, SmiConstant(BinaryOperationFeedback::kNone)); in UnaryOpWithFeedback()
185 SmiConstant(BinaryOperationFeedback::kNone))); in UnaryOpWithFeedback()
199 SmiConstant(BinaryOperationFeedback::kNone))); in UnaryOpWithFeedback()
236 TrySmiAdd(smi_value, SmiConstant(kAddValue), &if_overflow); in IncrementOrDecrement()
[all …]
/third_party/node/deps/v8/src/builtins/
Dwasm.tq216 if (tableType != SmiConstant(kAnyTableType) &&
217 tableType != SmiConstant(kAnyNonNullTableType)) {
510 const count = UnsafeCast<Smi>(vector.objects[index + 1]) + SmiConstant(1);
520 const count = UnsafeCast<Smi>(entries.objects[i + 1]) + SmiConstant(1);
529 if (TaggedEqual(value, SmiConstant(0))) {
532 vector.objects[index + 1] = SmiConstant(1);
536 if (entries.length == SmiConstant(8)) { // 4 entries, 2 slots each.
548 newEntries.objects[newIndex + 1] = SmiConstant(1);
558 newEntries.objects[3] = SmiConstant(1);
573 extern macro SmiConstant(constexpr OnNonExistent): Smi;
[all …]
Dbuiltins-async-generator-gen.cc31 return SmiEqual(state, SmiConstant(JSGeneratorObject::kGeneratorClosed)); in IsGeneratorStateClosed()
39 return SmiGreaterThanOrEqual(state, SmiConstant(0)); in IsGeneratorStateSuspended()
48 return SmiEqual(state, SmiConstant(0)); in IsGeneratorStateSuspendedAtStart()
53 SmiConstant(JSGeneratorObject::kGeneratorExecuting)); in IsGeneratorStateNotExecuting()
64 return TaggedEqual(is_generator_awaiting, SmiConstant(1)); in IsGeneratorAwaiting()
70 generator, JSAsyncGeneratorObject::kIsAwaitingOffset, SmiConstant(1)); in SetGeneratorAwaiting()
78 generator, JSAsyncGeneratorObject::kIsAwaitingOffset, SmiConstant(0)); in SetGeneratorNotAwaiting()
85 SmiConstant(JSGeneratorObject::kGeneratorClosed)); in CloseGenerator()
112 return SmiNotEqual(resume_type, SmiConstant(JSGeneratorObject::kNext)); in IsAbruptResumeType()
171 SmiConstant(JSAsyncGeneratorObject::kGeneratorExecuting)), in AsyncGeneratorEnqueue()
[all …]
Dbuiltins-async-function-gen.cc62 SmiConstant(JSGeneratorObject::kGeneratorClosed))); in AsyncFunctionAwaitResumeClosure()
67 SmiConstant(resume_mode)); in AsyncFunctionAwaitResumeClosure()
130 SmiConstant(0)); in TF_BUILTIN()
133 SmiConstant(JSAsyncFunctionObject::kNext)); in TF_BUILTIN()
136 SmiConstant(JSAsyncFunctionObject::kGeneratorExecuting)); in TF_BUILTIN()
Darray-lastindexof.tq67 let k: Number = SmiConstant(0);
85 if (length == 0) return SmiConstant(-1);
126 return SmiConstant(-1);
139 if (length == SmiConstant(0)) return SmiConstant(-1);
Dbuiltins-regexp-gen.cc42 TNode<Smi> RegExpBuiltinsAssembler::SmiZero() { return SmiConstant(0); } in SmiZero()
99 length, SmiConstant(JSArray::kMaxFastArrayLength))); in AllocateRegExpResult()
100 CSA_DCHECK(this, SmiGreaterThan(length, SmiConstant(0))); in AllocateRegExpResult()
253 GotoIf(SmiEqual(num_results, SmiConstant(1)), &maybe_build_indices); in ConstructNewResultFromMatchInfo()
274 GotoIf(SmiEqual(start_cursor, SmiConstant(-1)), &next_iter); in ConstructNewResultFromMatchInfo()
295 CSA_DCHECK(this, SmiGreaterThan(num_results, SmiConstant(1))); in ConstructNewResultFromMatchInfo()
309 SmiConstant(JSRegExp::IRREGEXP)), in ConstructNewResultFromMatchInfo()
311 SmiConstant(JSRegExp::EXPERIMENTAL)))); in ConstructNewResultFromMatchInfo()
497 GotoIf(SmiAbove(capture_count, SmiConstant(kOffsetsSize / 2 - 1)), in RegExpExecInternal()
555 SmiConstant(JSRegExp::kUninitializedValue))); in RegExpExecInternal()
[all …]
Dregexp.tq91 IncrementUseCounter(context, SmiConstant(kRegExpExecCalledOnSlowRegExp));
106 StoreLastIndex(regexp, SmiConstant(0), isFastPath);
110 lastIndex = SmiConstant(0);
131 StoreLastIndex(regexp, SmiConstant(0), isFastPath);
230 IncrementUseCounter(context, SmiConstant(counter));
406 context, SmiConstant(kRegExpMatchIsTrueishOnNonJSRegExp));
413 IncrementUseCounter(context, SmiConstant(kRegExpMatchIsFalseishOnJSRegExp));
Dbuiltins-internal-gen.cc104 GotoIfNot(SmiToInt32(SmiAnd(flags, SmiConstant(DebugInfo::kBreakAtEntry))), in TF_BUILTIN()
614 SmiConstant(0)); in DictionarySpecificDelete()
618 TNode<Smi> new_nof = SmiSub(nof, SmiConstant(1)); in DictionarySpecificDelete()
622 TNode<Smi> new_deleted = SmiAdd(num_deleted, SmiConstant(1)); in DictionarySpecificDelete()
629 GotoIf(SmiLessThan(new_nof, SmiConstant(16)), &shrinking_done); in DictionarySpecificDelete()
728 GotoIf(SmiNotEqual(language_mode, SmiConstant(LanguageMode::kSloppy)), in TF_BUILTIN()
1095 SmiConstant(Smi::FromInt(AllocateDoubleAlignFlag::encode(false) | in TF_BUILTIN()
1106 SmiConstant(Smi::FromInt(AllocateDoubleAlignFlag::encode(false) | in TF_BUILTIN()
1117 SmiConstant(Smi::FromInt(AllocateDoubleAlignFlag::encode(false) | in TF_BUILTIN()
1128 SmiConstant(Smi::FromInt(AllocateDoubleAlignFlag::encode(false) | in TF_BUILTIN()
[all …]
Dbuiltins-array-gen.cc532 TNode<Smi> length = SmiConstant(0); in ConstructArrayLike()
608 GotoIf(SmiGreaterThan(length, SmiConstant(0)), &done); in ReturnIfEmpty()
1409 TVARIABLE(Number, var_source_index, SmiConstant(0)); in FlattenIntoArray()
1425 SmiGreaterThanOrEqual(CAST(source_index), SmiConstant(0))); in FlattenIntoArray()
1454 GotoIfNumberGreaterThanOrEqual(SmiConstant(0), depth, &if_noflatten); in FlattenIntoArray()
1580 TVARIABLE(Number, var_depth_num, SmiConstant(1)); in TF_BUILTIN()
1595 const TNode<JSReceiver> a = Construct(context, constructor, SmiConstant(0)); in TF_BUILTIN()
1599 SmiConstant(0), var_depth_num.value()); in TF_BUILTIN()
1632 const TNode<JSReceiver> a = Construct(context, constructor, SmiConstant(0)); in TF_BUILTIN()
1636 SmiConstant(0), SmiConstant(1), mapper_function, t); in TF_BUILTIN()
[all …]
Dbuiltins-generator-gen.cc48 TNode<Smi> closed = SmiConstant(JSGeneratorObject::kGeneratorClosed); in InnerResume()
56 SmiConstant(resume_mode)); in InnerResume()
79 TNode<Smi> executing = SmiConstant(JSGeneratorObject::kGeneratorExecuting); in InnerResume()
Dproxy-set-property.tq15 ThrowTypeErrorIfStrict(SmiConstant(message), Null, Null);
76 SmiConstant(MessageTemplate::kProxyTrapReturnedFalsishFor), 'set',
Dreflect.tq55 extern macro SmiConstant(constexpr OnNonExistent): Smi;
70 objectJSReceiver, name, receiver, SmiConstant(kReturnUndefined));
Dregexp-search.tq37 return SmiConstant(-1);
72 return SmiConstant(-1);
Dbuiltins-collections-gen.cc846 SmiConstant(0)); in AllocateJSCollectionIterator()
965 SmiConstant(Protectors::kProtectorValid)), in BranchIfMapIteratorProtectorValid()
989 GotoIfNot(TaggedEqual(index, SmiConstant(0)), if_false); in BranchIfIterableWithOriginalKeyOrValueMapIterator()
1024 SmiConstant(Protectors::kProtectorValid)), in BranchIfSetIteratorProtectorValid()
1054 GotoIfNot(TaggedEqual(index, SmiConstant(0)), if_false); in BranchIfIterableWithOriginalValueSetIterator()
1438 GotoIfNot(SmiLessThan(SmiConstant(0), index), &return_zero); in TF_BUILTIN()
1473 Return(SmiConstant(0)); in TF_BUILTIN()
1585 Branch(SmiGreaterThanOrEqual(index, SmiConstant(0)), &if_found, in TF_BUILTIN()
1611 Branch(SmiGreaterThanOrEqual(index, SmiConstant(0)), &if_found, in TF_BUILTIN()
1632 result = SmiConstant(0); in NormalizeNumberKey()
[all …]
Dbuiltins-promise-gen.cc27 StoreObjectFieldNoWriteBarrier(promise, offset, SmiConstant(Smi::zero())); in ZeroOutEmbedderOffsets()
Dbuiltins-temporal-gen.cc73 SmiConstant(MessageTemplate::kIterableYieldedNonString), in TemporalInstantFixedArrayFromIterable()
Daggregate-error.tq35 SmiConstant(PropertyAttributes::DONT_ENUM));
Dbuiltins-string-gen.cc945 Builtin::kStringIndexOf, context, string, dollar_string, SmiConstant(0))); in IndexOfDollarChar()
998 const TNode<Smi> smi_zero = SmiConstant(0); in TF_BUILTIN()
1197 global_char_string, SmiConstant(0))); in TF_BUILTIN()
1198 Branch(SmiEqual(global_ix, SmiConstant(-1)), &throw_exception, &next); in TF_BUILTIN()
1248 CSA_DCHECK(this, SmiGreaterThan(subject_length, SmiConstant(0))); in StringToArray()
1340 TNode<Smi> smi_zero = SmiConstant(0); in TF_BUILTIN()
1382 TNode<Smi> length = SmiConstant(1); in TF_BUILTIN()
1516 SmiConstant(Protectors::kProtectorValid)), in BranchIfStringPrimitiveWithNoCustomIteration()
Dbuiltins-object-gen.cc195 PACKED_ELEMENTS, array_map, IntPtrConstant(0), SmiConstant(0)); in GetOwnValuesOrEntries()
322 PACKED_ELEMENTS, array_map, SmiConstant(2), base::nullopt, in FastGetOwnValuesOrEntries()
524 var_length = SmiConstant(0); in TF_BUILTIN()
664 var_length = SmiConstant(0); in TF_BUILTIN()
1275 TNode<Smi> resume_mode = SmiConstant(JSGeneratorObject::ResumeMode::kNext); in TF_BUILTIN()
1278 TNode<Smi> executing = SmiConstant(JSGeneratorObject::kGeneratorExecuting); in TF_BUILTIN()
1285 result, JSAsyncGeneratorObject::kIsAwaitingOffset, SmiConstant(0)); in TF_BUILTIN()
Dbuiltins-typed-array-gen.cc28 StoreObjectField(holder, offset, SmiConstant(0)); in SetupTypedArrayEmbedderFields()
75 StoreObjectFieldNoWriteBarrier(buffer, offset, SmiConstant(0)); in AllocateEmptyOnHeapBuffer()
458 SmiConstant(0)); in SetJSTypedArrayOffHeapDataPtr()
Dconvert.tq117 return SmiConstant(s);
120 return SmiConstant(s);
165 return %RawDownCast<LanguageModeSmi>(SmiConstant(c));
/third_party/node/deps/v8/src/compiler/
Djs-type-hint-lowering.cc296 jsgraph()->SmiConstant(-1), effect, control, slot); in ReduceUnaryOperation()
305 jsgraph()->SmiConstant(1), effect, control, slot); in ReduceUnaryOperation()
313 operand, jsgraph()->SmiConstant(1), effect, in ReduceUnaryOperation()
323 jsgraph()->SmiConstant(-1), effect, control, slot); in ReduceUnaryOperation()
Djs-graph.h67 Node* SmiConstant(int32_t immediate) { in SmiConstant() function
/third_party/node/deps/v8/src/codegen/
Dcode-stub-assembler.cc156 call_count, SmiConstant(1 << FeedbackNexus::CallCountField::kShift)); in IncrementCallCount()
196 CallRuntime(Runtime::kPrintWithNameForAssert, SmiConstant(0), in FailAssert()
227 return SelectConstant<Smi>(condition, SmiConstant(true_value), in SelectSmiConstant()
228 SmiConstant(false_value)); in SelectSmiConstant()
232 return SmiConstant(Context::kNoContext); in NoContextConstant()
269 return SmiConstant(value);
279 return SmiConstant(value); in IntPtrOrSmiConstant()
780 return SmiConstant(constant_value); in SmiTag()
1052 var_result = SmiConstant(0); in SmiMul()
1075 GotoIf(TaggedEqual(divisor, SmiConstant(0)), bailout); in TrySmiDiv()
[all …]

123