Home
last modified time | relevance | path

Searched refs:IsSmi (Results 1 – 25 of 155) sorted by relevance

1234567

/external/v8/src/
Dobjects-debug.cc27 if (IsSmi()) { in ObjectVerify()
40 CHECK(p->IsSmi()); in VerifyPointer()
46 CHECK(IsSmi()); in SmiVerify()
358 if (r.IsSmi()) DCHECK(value->IsSmi()); in JSObjectVerify()
470 CHECK(next_link()->IsUndefined(GetIsolate()) || next_link()->IsSmi() || in TransitionArrayVerify()
500 CHECK(value()->IsUndefined(isolate) || value()->IsSmi() || in JSDateVerify()
502 CHECK(year()->IsUndefined(isolate) || year()->IsSmi() || year()->IsNaN()); in JSDateVerify()
503 CHECK(month()->IsUndefined(isolate) || month()->IsSmi() || month()->IsNaN()); in JSDateVerify()
504 CHECK(day()->IsUndefined(isolate) || day()->IsSmi() || day()->IsNaN()); in JSDateVerify()
505 CHECK(weekday()->IsUndefined(isolate) || weekday()->IsSmi() || in JSDateVerify()
[all …]
Dlayout-descriptor-inl.h51 CHECK((!IsSmi() && (*layout_word_index < length())) || in GetIndexes()
52 (IsSmi() && (*layout_word_index < 1))); in GetIndexes()
127 bool LayoutDescriptor::IsSlowLayout() { return !IsSmi(); } in IsSlowLayout()
136 if (object->IsSmi()) { in cast_gc_safe()
Dstring-builder.h36 if (element->IsSmi()) { in StringBuilderConcatHelper()
48 DCHECK(obj->IsSmi()); in StringBuilderConcatHelper()
74 if (elt->IsSmi()) { in StringBuilderConcatLength()
90 if (!next_smi->IsSmi()) return -1; in StringBuilderConcatLength()
157 DCHECK(!value->IsSmi()); in Add()
165 DCHECK(value->IsSmi()); in Add()
256 DCHECK(element->IsSmi() || element->IsString()); in AddElement()
Dobjects-printer.cc31 if (IsSmi()) { in Print()
836 if (!year()->IsSmi()) { in JSDatePrint()
843 weekdays[weekday()->IsSmi() ? Smi::cast(weekday())->value() + 1 : 0], in JSDatePrint()
844 year()->IsSmi() ? Smi::cast(year())->value() : -1, in JSDatePrint()
845 month()->IsSmi() ? Smi::cast(month())->value() : -1, in JSDatePrint()
846 day()->IsSmi() ? Smi::cast(day())->value() : -1, in JSDatePrint()
847 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, in JSDatePrint()
848 min()->IsSmi() ? Smi::cast(min())->value() : -1, in JSDatePrint()
849 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); in JSDatePrint()
1388 if (transition_info()->IsSmi()) { in AllocationSitePrint()
[all …]
Dproperty-details.h175 bool IsSmi() const { return kind_ == kSmi; } in IsSmi() function
176 bool IsSmiOrTagged() const { return IsSmi() || IsTagged(); } in IsSmiOrTagged()
178 bool IsSmiOrInteger32() const { return IsSmi() || IsInteger32(); } in IsSmiOrInteger32()
185 IsSmi() || IsInteger32() || IsDouble(); in IsSpecialization()
Dconversions-inl.h156 if (number->IsSmi()) return Smi::cast(number)->value(); in NumberToInt32()
161 if (number->IsSmi()) return Smi::cast(number)->value(); in NumberToUint32()
166 if (number->IsSmi()) { in PositiveNumberToUint32()
181 if (number->IsSmi()) return Smi::cast(number)->value(); in NumberToInt64()
188 if (number->IsSmi()) { in TryNumberToSize()
Disolate-inl.h81 (exception->IsNumber() || exception->IsSmi()); in is_catchable_by_wasm()
132 return species_cell->value()->IsSmi() && in NATIVE_CONTEXT_FIELDS()
Dapi-arguments.h96 DCHECK(values[T::kIsolateIndex]->IsSmi()); in PropertyCallbackArguments()
179 DCHECK(values[T::kIsolateIndex]->IsSmi()); in FunctionCallbackArguments()
Dcontext-measure.cc73 if ((*current)->IsSmi()) continue; in VisitPointers()
/external/v8/src/runtime/
Druntime-utils.h39 CHECK(args[index]->IsSmi()); \
67 CHECK(args[index]->IsSmi()); \
98 CHECK(args[index]->IsSmi()); \
Druntime-numbers.cc111 if (obj->IsSmi()) { in RUNTIME_FUNCTION()
212 return isolate->heap()->ToBoolean(obj->IsSmi()); in RUNTIME_FUNCTION()
Druntime-wasm.cc113 DCHECK(JSReceiver::GetDataProperty(&it)->IsSmi()); in ThrowRuntimeError()
185 CHECK(arg_buffer_obj->IsSmi()); in RUNTIME_FUNCTION()
Druntime-array.cc25 CHECK(length->IsSmi()); in RUNTIME_FUNCTION()
169 DCHECK(array->length()->IsSmi()); in RUNTIME_FUNCTION()
275 if (argument_one->IsSmi()) { in ArrayConstructorCommon()
483 if (V8_LIKELY(from_index->IsSmi())) { in RUNTIME_FUNCTION()
/external/v8/src/crankshaft/
Dhydrogen-representation-changes.cc57 return from_rep.IsInteger32() && to_rep.IsSmi() && SmiValuesAre32Bits(); in IsNonDeoptingIntToSmiChange()
134 } else if (phi->representation().IsSmi()) { in Run()
164 } else if (phi->representation().IsSmi() && in Run()
214 input->representation().IsSmi() && in Run()
Dhydrogen-canonicalize.cc28 } else if (instr->representation().IsSmi()) { in Run()
Dhydrogen-instructions.cc87 if (representation().IsSmi() && HasNonSmiUse()) { in InferRepresentation()
148 if (r.IsSmi()) { in ConvertAndSetOverflow()
971 if (index_rep.IsTagged() && actual_index->type().IsSmi()) { in InferRepresentation()
974 if (length_rep.IsTagged() && actual_length->type().IsSmi()) { in InferRepresentation()
997 if (r.IsSmi()) result->ClampToSmi(); in InferRange()
1178 if (r.IsSmi()) result->ClampToSmi(); in InferRange()
1677 if (representation().IsSmi() || type().IsSmi()) { in InferRange()
1693 (to().IsSmi() || in InferRange()
1716 if (to().IsSmi()) result->ClampToSmi(); in InferRange()
1738 Range* range = r.IsSmi() in InferRange()
[all …]
/external/v8/src/ast/
Dast-value-factory.h169 bool IsNumber() const { return IsSmi() || IsHeapNumber(); } in IsNumber()
187 if (IsSmi()) return smi_; in AsNumber()
193 CHECK(IsSmi()); in AsSmi()
198 if (IsSmi()) { in ToUint32()
218 bool IsSmi() const { return type_ == SMI || type_ == SMI_WITH_DOT; } in IsSmi() function
/external/v8/src/crankshaft/arm64/
Dlithium-gap-resolver-arm64.cc230 if (cgen_->IsSmi(constant_source)) { in EmitMove()
243 if (cgen_->IsSmi(constant_source)) { in EmitMove()
253 if (handle->IsSmi()) { in EmitMove()
Dlithium-arm64.cc795 LInstruction* result = instr->representation().IsSmi() ? in DoAdd()
885 return instr->representation().IsSmi() ? in DoBitwise()
921 if (r.IsInteger32() || r.IsSmi() || r.IsDouble()) { in DoBranch()
926 if (type.IsBoolean() || type.IsSmi() || type.IsJSArray() || in DoBranch()
1032 if (from.IsSmi()) { in DoChange()
1045 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
1047 } else if (to.IsSmi()) { in DoChange()
1049 if (val->type().IsSmi()) { in DoChange()
1055 if (val->type().IsSmi() || val->representation().IsSmi()) { in DoChange()
1065 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
[all …]
/external/v8/src/ic/
Dic-state.cc294 } else if (object->IsSmi()) { in UpdateKind()
415 if (value->IsSmi()) return SMI; in NewInputState()
428 if (value->IsSmi()) return SMI; in NewInputState()
468 if (x->IsSmi() && y->IsSmi()) return SMI; in TargetState()
/external/v8/src/crankshaft/s390/
Dlithium-codegen-s390.cc424 if (IsSmi(const_op)) { in EmitLoadIntegerConstant()
446 bool LCodeGen::IsSmi(LConstantOperand* op) const { in IsSmi() function in v8::internal::LCodeGen
447 return chunk_->LookupLiteralRepresentation(op).IsSmi(); in IsSmi()
479 if (r.IsSmi()) { in ToOperand()
1356 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1376 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1429 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1440 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1450 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1455 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
[all …]
/external/v8/src/crankshaft/x64/
Dlithium-x64.cc662 if (SmiValuesAre31Bits() && instr->representation().IsSmi() && in DoShift()
905 bool easy_case = !r.IsTagged() || type.IsBoolean() || type.IsSmi() || in DoBranch()
1238 if (SmiValuesAre32Bits() && instr->representation().IsSmi()) { in DoBitwise()
1494 if (SmiValuesAre32Bits() && instr->representation().IsSmi()) { in DoSub()
1526 if (SmiValuesAre32Bits() && instr->representation().IsSmi()) { in DoAdd()
1570 if (instr->representation().IsSmi()) { in DoMathMinMax()
1773 if (from.IsSmi()) { in DoChange()
1784 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
1786 } else if (to.IsSmi()) { in DoChange()
1788 if (val->type().IsSmi()) { in DoChange()
[all …]
Dlithium-codegen-x64.cc450 return chunk_->LookupLiteralRepresentation(op).IsSmi(); in IsSmiConstant()
1275 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1326 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1333 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1348 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1358 ? !instr->hydrogen_value()->representation().IsSmi() in DoMulI()
1367 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1375 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1527 if (instr->hydrogen_value()->representation().IsSmi()) { in DoShiftI()
1566 if (instr->hydrogen_value()->representation().IsSmi()) { in DoSubI()
[all …]
/external/v8/src/crankshaft/ppc/
Dlithium-codegen-ppc.cc441 if (IsSmi(const_op)) { in EmitLoadIntegerConstant()
467 bool LCodeGen::IsSmi(LConstantOperand* op) const { in IsSmi() function in v8::internal::LCodeGen
468 return chunk_->LookupLiteralRepresentation(op).IsSmi(); in IsSmi()
505 if (r.IsSmi()) { in ToOperand()
1404 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1426 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1479 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1488 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1493 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1505 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
[all …]
/external/v8/src/crankshaft/mips64/
Dlithium-mips64.cc646 if (instr->representation().IsSmi() && constant_value > 0) { in DoShift()
883 bool easy_case = !r.IsTagged() || type.IsBoolean() || type.IsSmi() || in DoBranch()
1446 instr->representation().IsSmi() in DoMul()
1487 instr->representation().IsSmi() in DoSub()
1518 instr->representation().IsSmi() in DoAdd()
1737 if (from.IsSmi()) { in DoChange()
1748 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
1750 } else if (to.IsSmi()) { in DoChange()
1752 if (val->type().IsSmi()) { in DoChange()
1758 if (val->type().IsSmi() || val->representation().IsSmi()) { in DoChange()
[all …]

1234567