Home
last modified time | relevance | path

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

12

/external/v8/src/ic/
Dbinary-op-assembler.cc71 SmiConstant(BinaryOperationFeedback::kSignedSmall)); in Generate_AddWithFeedback()
116 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kNumber)); in Generate_AddWithFeedback()
164 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kString)); in Generate_AddWithFeedback()
186 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kBigInt)); in Generate_AddWithFeedback()
188 SmiConstant(Operation::kAdd))); in Generate_AddWithFeedback()
195 SmiConstant(BinaryOperationFeedback::kNumberOrOddball)); in Generate_AddWithFeedback()
201 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kAny)); in Generate_AddWithFeedback()
302 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kNumber)); in Generate_BinaryOperationWithFeedback()
327 SmiConstant(BinaryOperationFeedback::kNumberOrOddball)); in Generate_BinaryOperationWithFeedback()
337 SmiConstant(BinaryOperationFeedback::kNumberOrOddball)); in Generate_BinaryOperationWithFeedback()
[all …]
/external/v8/src/builtins/
Dbuiltins-number-gen.cc51 SmiConstant(op))); in EmitBitwiseOp()
212 Return(SmiConstant(0)); in TF_BUILTIN()
239 GotoIf(WordEqual(radix, SmiConstant(10)), &if_radix10); in TF_BUILTIN()
240 GotoIf(WordEqual(radix, SmiConstant(0)), &if_radix10); in TF_BUILTIN()
544 var_right.value(), SmiConstant(Operation::kAdd))); in TF_BUILTIN()
709 var_right.value(), SmiConstant(Operation::kSubtract))); in TF_BUILTIN()
723 SmiConstant(-1)); in TF_BUILTIN()
729 SmiConstant(Operation::kBitwiseNot))); in TF_BUILTIN()
743 SmiConstant(1)); in TF_BUILTIN()
749 SmiConstant(Operation::kDecrement))); in TF_BUILTIN()
[all …]
Dbuiltins-async-generator-gen.cc46 return SmiEqual(state, SmiConstant(JSGeneratorObject::kGeneratorClosed)); in IsGeneratorStateClosed()
53 return SmiGreaterThanOrEqual(state, SmiConstant(0)); in IsGeneratorStateSuspended()
62 return SmiEqual(state, SmiConstant(0)); in IsGeneratorStateSuspendedAtStart()
68 SmiConstant(JSGeneratorObject::kGeneratorExecuting)); in IsGeneratorStateNotExecuting()
77 return WordEqual(is_generator_awaiting, SmiConstant(1)); in IsGeneratorAwaiting()
83 generator, JSAsyncGeneratorObject::kIsAwaitingOffset, SmiConstant(1)); in SetGeneratorAwaiting()
90 generator, JSAsyncGeneratorObject::kIsAwaitingOffset, SmiConstant(0)); in SetGeneratorNotAwaiting()
97 SmiConstant(JSGeneratorObject::kGeneratorClosed)); in CloseGenerator()
125 return SmiNotEqual(resume_type, SmiConstant(JSGeneratorObject::kNext)); in IsAbruptResumeType()
183 SmiConstant(JSAsyncGeneratorObject::kGeneratorExecuting)), in AsyncGeneratorEnqueue()
[all …]
Dbuiltins-typed-array-gen.cc75 StoreObjectField(holder, offset, SmiConstant(0)); in SetupTypedArray()
91 elements, FixedTypedArrayBase::kBasePointerOffset, SmiConstant(0)); in AttachBuffer()
135 TNode<Smi> byte_offset = SmiConstant(0); in TF_BUILTIN()
163 SmiConstant(V8_TYPED_ARRAY_MAX_SIZE_IN_HEAP)), in TF_BUILTIN()
191 SmiConstant(0)); in TF_BUILTIN()
201 SmiConstant(0)); in TF_BUILTIN()
204 StoreObjectFieldNoWriteBarrier(buffer, offset, SmiConstant(0)); in TF_BUILTIN()
212 SmiMod(element_size, SmiConstant(kObjectAlignment)), in TF_BUILTIN()
213 SmiConstant(0)), in TF_BUILTIN()
331 GotoIf(SmiLessThan(smi_converted_length, SmiConstant(0)), &invalid_length); in ConstructByLength()
[all …]
Dbuiltins-intl-gen.cc45 GotoIf(SmiEqual(length, SmiConstant(0)), &return_string); in TF_BUILTIN()
63 GotoIf(SmiGreaterThan(length, SmiConstant(kMaxShortStringLength)), &call_c); in TF_BUILTIN()
195 SmiConstant(0), SmiConstant(0))); in AllocateEmptyJSArray()
Dbuiltins-generator-gen.cc40 TNode<Smi> closed = SmiConstant(JSGeneratorObject::kGeneratorClosed); in GeneratorPrototypeResume()
48 SmiConstant(resume_mode)); in GeneratorPrototypeResume()
67 TNode<Smi> executing = SmiConstant(JSGeneratorObject::kGeneratorExecuting); in GeneratorPrototypeResume()
Dbuiltins-promise-gen.cc40 SmiConstant(Smi::kZero)); in PromiseInit()
42 SmiConstant(Smi::kZero)); in PromiseInit()
45 StoreObjectFieldNoWriteBarrier(promise, offset, SmiConstant(Smi::kZero)); in PromiseInit()
76 SmiConstant(status)); in AllocateAndSetJSPromise()
79 StoreObjectFieldNoWriteBarrier(instance, offset, SmiConstant(0)); in AllocateAndSetJSPromise()
210 IntPtrConstant(0), SmiConstant(0)); in CreatePromiseAllResolveElementContext()
215 context, kPromiseAllResolveElementRemainingSlot, SmiConstant(1)); in CreatePromiseAllResolveElementContext()
226 CSA_ASSERT(this, SmiGreaterThan(index, SmiConstant(0))); in CreatePromiseAllResolveElementFunction()
228 index, SmiConstant(PropertyArray::HashField::kMax))); in CreatePromiseAllResolveElementFunction()
274 SmiOr(flags, SmiConstant(1 << JSPromise::kHasHandlerBit)); in PromiseSetHasHandler()
[all …]
Dbuiltins-array-gen.cc27 to_(this, MachineRepresentation::kTagged, SmiConstant(0)), in ArrayBuiltinsAssembler()
46 a_.Bind(SmiConstant(-1)); in FindIndexResultGenerator()
484 k_.Bind(SmiConstant(0)); in GenerateIteratingArrayBuiltinBody()
573 k_.Bind(SmiConstant(0)); in GenerateIteratingTypedArrayBuiltinBody()
614 GotoIfNumberGreaterThanOrEqual(SmiConstant(-1), k(), &after_loop); in GenerateIteratingArrayBuiltinLoopContinuation()
693 Node* start = SmiConstant(0); in VisitAllTypedArrayElements()
841 TNode<Smi> len = SmiConstant(0); in GenerateArraySpeciesCreate()
854 SmiConstant(Isolate::kProtectorInvalid); in GenerateArraySpeciesCreate()
898 Node* const protector_invalid = SmiConstant(Isolate::kProtectorInvalid); in GenerateArraySpeciesCreate()
903 SmiAbove(CAST(len), SmiConstant(JSArray::kInitialMaxFastElementArray)), in GenerateArraySpeciesCreate()
[all …]
Dbuiltins-lazy-gen.cc37 GotoIfNot(SmiEqual(marker, SmiConstant(expected_marker)), &no_match); in TailCallRuntimeIfMarkerEquals()
62 GotoIf(SmiEqual(marker, SmiConstant(OptimizationMarker::kNone)), in MaybeTailCallOptimizedCodeSlot()
81 SmiConstant(OptimizationMarker::kInOptimizationQueue))); in MaybeTailCallOptimizedCodeSlot()
Dbuiltins-math-gen.cc53 BranchIfSmiLessThanOrEqual(SmiConstant(0), CAST(x), &if_xispositive, in TF_BUILTIN()
65 TNode<Smi> result = TrySmiSub(SmiConstant(0), CAST(x), &if_overflow); in TF_BUILTIN()
413 GotoIf(SmiAbove(smi_index.value(), SmiConstant(0)), &if_cached); in TF_BUILTIN()
421 TNode<Smi> new_smi_index = SmiSub(smi_index.value(), SmiConstant(1)); in TF_BUILTIN()
454 Return(SmiConstant(-1)); in TF_BUILTIN()
457 Return(SmiConstant(1)); in TF_BUILTIN()
Dbuiltins-collections-gen.cc539 GotoIf(SmiGreaterThan(length, SmiConstant(1)), &if_two); in LoadKeyValue()
540 GotoIf(SmiEqual(length, SmiConstant(1)), &if_one); in LoadKeyValue()
566 GotoIf(SmiGreaterThan(length, SmiConstant(1)), &if_two); in LoadKeyValue()
567 GotoIf(SmiEqual(length, SmiConstant(1)), &if_one); in LoadKeyValue()
613 SmiConstant(MessageTemplate::kIteratorValueNotAnObject), maybe_array); in LoadKeyValue()
739 SmiConstant(0)); in AllocateJSCollectionIterator()
1009 GotoIfNot(SmiLessThan(SmiConstant(0), index), &return_zero); in TF_BUILTIN()
1039 Return(SmiConstant(0)); in TF_BUILTIN()
1149 Branch(SmiGreaterThanOrEqual(index, SmiConstant(0)), &if_found, in TF_BUILTIN()
1174 Branch(SmiGreaterThanOrEqual(index, SmiConstant(0)), &if_found, in TF_BUILTIN()
[all …]
Dbuiltins-string-gen.cc964 f_return(SmiConstant(-1)); in StringIndexOf()
967 f_return(SmiConstant(0)); in StringIndexOf()
1041 var_position.Bind(SmiConstant(0)); in Generate()
1067 CAST(result), SmiConstant(0)))); in Generate()
1177 SmiConstant(0))); in IndexOfDollarChar()
1233 SmiEqual(LoadStringLengthAsSmi(string), SmiConstant(0)); in TF_BUILTIN()
1249 GotoIf(SmiLessThan(smi_count, SmiConstant(0)), &invalid_count); in TF_BUILTIN()
1250 GotoIf(SmiEqual(smi_count, SmiConstant(0)), &return_emptystring); in TF_BUILTIN()
1252 GotoIf(SmiGreaterThan(smi_count, SmiConstant(String::kMaxLength)), in TF_BUILTIN()
1298 CSA_ASSERT(this, SmiLessThanOrEqual(count, SmiConstant(String::kMaxLength))); in TF_BUILTIN()
[all …]
Dbuiltins-regexp-gen.cc27 TNode<Smi> RegExpBuiltinsAssembler::SmiZero() { return SmiConstant(0); } in SmiZero()
40 TNode<Smi> max_length = SmiConstant(JSArray::kInitialMaxFastElementArray); in AllocateRegExpResult()
187 GotoIf(SmiEqual(num_results, SmiConstant(1)), &out); in ConstructNewResultFromMatchInfo()
208 GotoIf(SmiEqual(start, SmiConstant(-1)), &next_iter); in ConstructNewResultFromMatchInfo()
228 CSA_ASSERT(this, SmiGreaterThan(num_results, SmiConstant(1))); in ConstructNewResultFromMatchInfo()
242 SmiConstant(JSRegExp::IRREGEXP))); in ConstructNewResultFromMatchInfo()
396 GotoIf(SmiAbove(capture_count, SmiConstant(kOffsetsSize / 2 - 1)), in RegExpExecInternal()
456 SmiConstant(JSRegExp::kUninitializedValue))); in RegExpExecInternal()
559 SmiConstant(RegExpMatchInfo::kLastMatchOverhead)); in RegExpExecInternal()
564 SmiShl(SmiAdd(capture_count, SmiConstant(1)), 1); in RegExpExecInternal()
[all …]
Dbuiltins-internal-gen.cc200 GotoIfNot(SmiToInt32(SmiAnd(flags, SmiConstant(DebugInfo::kBreakAtEntry))), in TF_BUILTIN()
271 return WordEqual(mode, SmiConstant(kDontSaveFPRegs)); in ShouldSkipFPRegs()
275 return WordEqual(remembered_set, SmiConstant(EMIT_REMEMBERED_SET)); in ShouldEmitRememberSet()
462 SmiConstant(0)); in DeleteDictionaryProperty()
466 TNode<Smi> new_nof = SmiSub(nof, SmiConstant(1)); in DeleteDictionaryProperty()
470 TNode<Smi> new_deleted = SmiAdd(num_deleted, SmiConstant(1)); in DeleteDictionaryProperty()
477 GotoIf(SmiLessThan(new_nof, SmiConstant(16)), &shrinking_done); in DeleteDictionaryProperty()
536 GotoIf(SmiNotEqual(language_mode, SmiConstant(LanguageMode::kSloppy)), in TF_BUILTIN()
1115 SmiFromInt32(requested_size), SmiConstant(flags)); in TF_BUILTIN()
Dbuiltins-proxy-gen.cc77 GotoIf(SmiEqual(length, SmiConstant(0)), &if_empty_array); in AllocateJSArrayForCodeStubArguments()
88 GotoIf(SmiGreaterThan(length, SmiConstant(FixedArray::kMaxRegularLength)), in AllocateJSArrayForCodeStubArguments()
600 Branch(SmiEqual(language_mode, SmiConstant(LanguageMode::kStrict)), in TF_BUILTIN()
616 Branch(SmiEqual(language_mode, SmiConstant(LanguageMode::kStrict)), in TF_BUILTIN()
714 trap_result, SmiConstant(access_kind)); in CheckGetSetTrapResult()
Dbuiltins-async-function-gen.cc65 SmiConstant(JSGeneratorObject::kGeneratorClosed))); in AsyncFunctionAwaitResumeClosure()
70 SmiConstant(resume_mode)); in AsyncFunctionAwaitResumeClosure()
Dbuiltins-object-gen.cc229 IntPtrConstant(0), SmiConstant(0)); in GetOwnValuesOrEntries()
362 PACKED_ELEMENTS, array_map, SmiConstant(2), nullptr, in FastGetOwnValuesOrEntries()
556 Branch(SmiEqual(LoadStringLengthAsSmi(CAST(from)), SmiConstant(0)), &done, in ObjectAssignFast()
588 TVARIABLE(Object, var_value, SmiConstant(0)); in ObjectAssignFast()
756 var_length.Bind(SmiConstant(0)); in TF_BUILTIN()
857 var_length.Bind(SmiConstant(0)); in TF_BUILTIN()
1493 Node* executing = SmiConstant(JSGeneratorObject::kGeneratorExecuting); in TF_BUILTIN()
1498 result, JSAsyncGeneratorObject::kIsAwaitingOffset, SmiConstant(0)); in TF_BUILTIN()
Dbuiltins-wasm-gen.cc118 NoContextConstant(), SmiConstant(message_id)); \
/external/v8/src/compiler/
Djs-generic-lowering.cc147 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSLoadProperty()
167 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSLoadNamed()
187 node->InsertInput(zone(), 1, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSLoadGlobal()
205 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSStoreProperty()
225 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSStoreNamed()
244 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSStoreNamedOwn()
262 node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSStoreGlobal()
280 node->ReplaceInput(5, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSStoreDataPropertyInLiteral()
289 node->InsertInput(zone(), 3, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSStoreInArrayLiteral()
489 node->InsertInput(zone(), 1, jsgraph()->SmiConstant(p.feedback().index())); in LowerJSCreateLiteralArray()
[all …]
Djs-type-hint-lowering.cc235 operand, jsgraph()->SmiConstant(-1), effect, in ReduceUnaryOperation()
244 operand, jsgraph()->SmiConstant(1), effect, in ReduceUnaryOperation()
254 operand, jsgraph()->SmiConstant(1), effect, in ReduceUnaryOperation()
263 operand, jsgraph()->SmiConstant(-1), effect, in ReduceUnaryOperation()
Dgraph-assembler.cc33 Node* GraphAssembler::SmiConstant(int32_t value) { in SmiConstant() function in v8::internal::compiler::GraphAssembler
34 return jsgraph()->SmiConstant(value); in SmiConstant()
Djs-graph.h75 Node* SmiConstant(int32_t immediate) { in SmiConstant() function
/external/v8/src/
Dcode-stub-assembler.cc95 csa->CallRuntime(Runtime::kPrintWithNameForAssert, csa->SmiConstant(0), in MaybePrintNodeWithName()
214 return SelectConstant<Smi>(condition, SmiConstant(true_value), in SelectSmiConstant()
215 SmiConstant(false_value)); in SelectSmiConstant()
219 return SmiConstant(Context::kNoContext); in NoContextConstant()
292 return SmiConstant(value); in IntPtrOrSmiConstant()
617 return SmiConstant(constant_value); in SmiTag()
878 var_result = SmiConstant(0); in SmiMul()
900 GotoIf(WordEqual(divisor, SmiConstant(0)), bailout); in TrySmiDiv()
905 Branch(WordEqual(dividend, SmiConstant(0)), &dividend_is_zero, in TrySmiDiv()
910 GotoIf(SmiLessThan(divisor, SmiConstant(0)), bailout); in TrySmiDiv()
[all …]
/external/v8/src/interpreter/
Dinterpreter-generator.cc944 var_right_bigint.value(), SmiConstant(bitwise_op))); in BitwiseBinaryOpWithFeedback()
1084 UpdateFeedback(SmiConstant(BinaryOperationFeedback::kBigInt), feedback_vector, in IGNITION_HANDLER()
1088 SmiConstant(Operation::kBitwiseNot))); in IGNITION_HANDLER()
1142 TVARIABLE(Smi, var_feedback, SmiConstant(BinaryOperationFeedback::kNone)); in UnaryOpWithFeedback()
1187 SmiConstant(BinaryOperationFeedback::kNone))); in UnaryOpWithFeedback()
1200 SmiConstant(BinaryOperationFeedback::kNone))); in UnaryOpWithFeedback()
1234 GotoIf(SmiEqual(smi_value, SmiConstant(0)), &if_zero); in SmiOp()
1237 GotoIf(SmiEqual(smi_value, SmiConstant(Smi::kMinValue)), &if_min_smi); in SmiOp()
1241 var_result = SmiSub(SmiConstant(0), smi_value); in SmiOp()
1261 SmiConstant(Operation::kNegate)); in BigIntOp()
[all …]
Dinterpreter-assembler.cc714 call_count, SmiConstant(1 << FeedbackNexus::CallCountField::kShift)); in IncrementCallCount()
1502 Node* abort_id = SmiConstant(abort_reason); in Abort()
1737 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kSignedSmall)); in ToNumberOrNumeric()
1744 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kNumber)); in ToNumberOrNumeric()
1758 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kBigInt)); in ToNumberOrNumeric()
1766 var_type_feedback.Bind(SmiConstant(BinaryOperationFeedback::kAny)); in ToNumberOrNumeric()
1788 SmiTag(bytecode), SmiConstant(operand_scale())); in DeserializeLazyAndDispatch()

12