Home
last modified time | relevance | path

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

123456

/external/v8/src/
Dobjects-debug.cc20 if (IsSmi()) { in ObjectVerify()
33 CHECK(p->IsSmi()); in VerifyPointer()
39 CHECK(IsSmi()); in SmiVerify()
299 if (r.IsSmi()) DCHECK(value->IsSmi()); in JSObjectVerify()
425 CHECK(next_link()->IsUndefined() || next_link()->IsSmi() || in TransitionArrayVerify()
462 CHECK(value()->IsUndefined() || value()->IsSmi() || value()->IsHeapNumber()); in JSDateVerify()
463 CHECK(year()->IsUndefined() || year()->IsSmi() || year()->IsNaN()); in JSDateVerify()
464 CHECK(month()->IsUndefined() || month()->IsSmi() || month()->IsNaN()); in JSDateVerify()
465 CHECK(day()->IsUndefined() || day()->IsSmi() || day()->IsNaN()); in JSDateVerify()
466 CHECK(weekday()->IsUndefined() || weekday()->IsSmi() || weekday()->IsNaN()); in JSDateVerify()
[all …]
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()
257 DCHECK(element->IsSmi() || element->IsString()); in AddElement()
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()
Dproperty-details.h176 bool IsSmi() const { return kind_ == kSmi; } in IsSmi() function
177 bool IsSmiOrTagged() const { return IsSmi() || IsTagged(); } in IsSmiOrTagged()
179 bool IsSmiOrInteger32() const { return IsSmi() || IsInteger32(); } in IsSmiOrInteger32()
186 IsSmi() || IsInteger32() || IsDouble(); in IsSpecialization()
Dobjects-printer.cc27 if (IsSmi()) { in Print()
718 if (!year()->IsSmi()) { in JSDatePrint()
725 weekdays[weekday()->IsSmi() ? Smi::cast(weekday())->value() + 1 : 0], in JSDatePrint()
726 year()->IsSmi() ? Smi::cast(year())->value() : -1, in JSDatePrint()
727 month()->IsSmi() ? Smi::cast(month())->value() : -1, in JSDatePrint()
728 day()->IsSmi() ? Smi::cast(day())->value() : -1, in JSDatePrint()
729 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, in JSDatePrint()
730 min()->IsSmi() ? Smi::cast(min())->value() : -1, in JSDatePrint()
731 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); in JSDatePrint()
1091 if (transition_info()->IsSmi()) { in AllocationSitePrint()
[all …]
Djson-stringifier.h251 if (key->IsSmi()) key = factory()->NumberToString(key); in ApplyToJsonFunction()
306 if (object->IsSmi()) { in Serialize_()
371 if (key->IsSmi()) key = factory()->NumberToString(key); in SerializeGeneric()
392 if (value->IsSmi()) return SerializeSmi(Smi::cast(*value)); in SerializeJSValue()
583 if (key->IsSmi()) { in SerializeJSObject()
Dcontext-measure.cc73 if ((*current)->IsSmi()) continue; in VisitPointers()
Dconversions-inl.h120 if (number->IsSmi()) return Smi::cast(number)->value(); in NumberToInt32()
126 if (number->IsSmi()) return Smi::cast(number)->value(); in NumberToUint32()
133 if (number->IsSmi()) { in TryNumberToSize()
Darguments.h172 DCHECK(values[T::kIsolateIndex]->IsSmi()); in PropertyCallbackArguments()
245 DCHECK(values[T::kIsolateIndex]->IsSmi()); in FunctionCallbackArguments()
/external/v8/src/runtime/
Druntime-utils.h48 RUNTIME_ASSERT(args[index]->IsSmi()); \
81 RUNTIME_ASSERT(args[index]->IsSmi()); \
88 RUNTIME_ASSERT(args[index]->IsSmi()); \
106 RUNTIME_ASSERT(args[index]->IsSmi()); \
Druntime-numbers.cc23 if (args[0]->IsSmi()) { in RUNTIME_FUNCTION()
197 if (obj->IsSmi()) { in RUNTIME_FUNCTION()
311 return isolate->heap()->ToBoolean(obj->IsSmi()); in RUNTIME_FUNCTION()
Druntime-array.cc24 RUNTIME_ASSERT(length->IsSmi() && Smi::cast(length)->value() == 0); in RUNTIME_FUNCTION()
164 DCHECK(array->length()->IsSmi()); in RUNTIME_FUNCTION()
257 if (argument_one->IsSmi()) { in ArrayConstructorCommon()
Druntime-maths.cc147 if (args[1]->IsSmi()) { in RUNTIME_FUNCTION()
185 DCHECK(input->IsSmi()); in RUNTIME_FUNCTION()
/external/v8/src/crankshaft/
Dhydrogen-representation-changes.cc59 return from_rep.IsInteger32() && to_rep.IsSmi() && SmiValuesAre32Bits(); in IsNonDeoptingIntToSmiChange()
131 } else if (phi->representation().IsSmi()) { in Run()
150 if (phi->representation().IsSmi() && in Run()
183 input->representation().IsSmi() && in Run()
Dhydrogen-canonicalize.cc26 } else if (instr->representation().IsSmi()) { in Run()
/external/v8/test/cctest/
Dtest-transitions.cc62 CHECK(map0->raw_transitions()->IsSmi()); in TEST()
113 CHECK(map0->raw_transitions()->IsSmi()); in TEST()
156 CHECK(map0->raw_transitions()->IsSmi()); in TEST()
200 CHECK(map0->raw_transitions()->IsSmi()); in TEST()
247 CHECK(map0->raw_transitions()->IsSmi()); in TEST()
Dtest-dictionary.cc85 CHECK(key->GetIdentityHash()->IsSmi()); in TestHashMap()
92 CHECK(JSReceiver::GetOrCreateIdentityHash(key)->IsSmi()); in TestHashMap()
95 CHECK(key->GetIdentityHash()->IsSmi()); in TestHashMap()
/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.cc864 LInstruction* result = instr->representation().IsSmi() ? in DoAdd()
948 return instr->representation().IsSmi() ? in DoBitwise()
984 if (r.IsInteger32() || r.IsSmi() || r.IsDouble()) { in DoBranch()
989 if (type.IsBoolean() || type.IsSmi() || type.IsJSArray() || in DoBranch()
1105 if (from.IsSmi()) { in DoChange()
1118 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
1120 } else if (to.IsSmi()) { in DoChange()
1122 if (val->type().IsSmi()) { in DoChange()
1128 if (val->type().IsSmi() || val->representation().IsSmi()) { in DoChange()
1138 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
[all …]
/external/v8/src/ic/
Dic-state.cc282 } else if (object->IsSmi()) { in UpdateKind()
404 if (value->IsSmi()) return SMI; in NewInputState()
415 if (value->IsSmi()) return SMI; in NewInputState()
452 if (x->IsSmi() && y->IsSmi()) return SMI; in TargetState()
/external/v8/src/crankshaft/ppc/
Dlithium-codegen-ppc.cc429 if (IsSmi(const_op)) { in EmitLoadIntegerConstant()
455 bool LCodeGen::IsSmi(LConstantOperand* op) const { in IsSmi() function in v8::internal::LCodeGen
456 return chunk_->LookupLiteralRepresentation(op).IsSmi(); in IsSmi()
493 if (r.IsSmi()) { in ToOperand()
1422 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1444 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1497 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1506 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1511 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
1523 if (instr->hydrogen()->representation().IsSmi()) { in DoMulI()
[all …]
/external/v8/src/crankshaft/x64/
Dlithium-codegen-x64.cc460 return chunk_->LookupLiteralRepresentation(op).IsSmi(); in IsSmiConstant()
1321 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1372 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1379 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1394 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1404 ? !instr->hydrogen_value()->representation().IsSmi() in DoMulI()
1413 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1421 if (instr->hydrogen_value()->representation().IsSmi()) { in DoMulI()
1573 if (instr->hydrogen_value()->representation().IsSmi()) { in DoShiftI()
1612 if (instr->hydrogen_value()->representation().IsSmi()) { in DoSubI()
[all …]
Dlithium-x64.cc711 if (SmiValuesAre31Bits() && instr->representation().IsSmi() && in DoShift()
960 bool easy_case = !r.IsTagged() || type.IsBoolean() || type.IsSmi() || in DoBranch()
1287 if (SmiValuesAre32Bits() && instr->representation().IsSmi()) { in DoBitwise()
1535 if (SmiValuesAre32Bits() && instr->representation().IsSmi()) { in DoSub()
1567 if (SmiValuesAre32Bits() && instr->representation().IsSmi()) { in DoAdd()
1611 if (instr->representation().IsSmi()) { in DoMathMinMax()
1852 if (from.IsSmi()) { in DoChange()
1863 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
1865 } else if (to.IsSmi()) { in DoChange()
1867 if (val->type().IsSmi()) { in DoChange()
[all …]
/external/v8/src/crankshaft/mips64/
Dlithium-mips64.cc698 if (instr->representation().IsSmi() && constant_value > 0) { in DoShift()
941 bool easy_case = !r.IsTagged() || type.IsBoolean() || type.IsSmi() || in DoBranch()
1514 instr->representation().IsSmi() in DoMul()
1555 instr->representation().IsSmi() in DoSub()
1586 instr->representation().IsSmi() in DoAdd()
1844 if (from.IsSmi()) { in DoChange()
1855 if (!val->representation().IsSmi()) result = AssignEnvironment(result); in DoChange()
1857 } else if (to.IsSmi()) { in DoChange()
1859 if (val->type().IsSmi()) { in DoChange()
1865 if (val->type().IsSmi() || val->representation().IsSmi()) { in DoChange()
[all …]
Dlithium-gap-resolver-mips64.cc230 if (cgen_->IsSmi(constant_source)) { in EmitMove()
244 if (cgen_->IsSmi(constant_source)) { in EmitMove()

123456