Home
last modified time | relevance | path

Searched refs:FromInt (Results 1 – 25 of 138) sorted by relevance

123456

/external/v8/src/ic/
Dhandler-configuration-inl.h29 return handle(Smi::FromInt(config), isolate); in LoadNormal()
34 return handle(Smi::FromInt(config), isolate); in LoadGlobal()
39 return handle(Smi::FromInt(config), isolate); in LoadInterceptor()
47 return handle(Smi::FromInt(config), isolate); in LoadField()
52 return handle(Smi::FromInt(config), isolate); in LoadConstant()
57 return handle(Smi::FromInt(config), isolate); in LoadAccessor()
62 return handle(Smi::FromInt(config), isolate); in LoadProxy()
69 return handle(Smi::FromInt(config), isolate); in LoadNativeDataProperty()
76 return handle(Smi::FromInt(config), isolate); in LoadApiGetter()
82 return handle(Smi::FromInt(config), isolate); in LoadModuleExport()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DPR22806_constrain_tuple_like_ctor.pass.cpp38 enum State { FromTuple, FromInt, Copied, Moved }; enumerator
47 explicit ConstructibleFromTupleAndInt(int) : state(FromInt) {} in ConstructibleFromTupleAndInt()
51 enum State { FromTuple, FromInt, Copied, Moved }; enumerator
60 ConvertibleFromTupleAndInt(int) : state(FromInt) {} in ConvertibleFromTupleAndInt()
64 enum State { FromInt, Copied, Moved }; enumerator
70 explicit ConstructibleFromInt(int) : state(FromInt) {} in ConstructibleFromInt()
74 enum State { FromInt, Copied, Moved }; enumerator
79 ConvertibleFromInt(int) : state(FromInt) {} in ConvertibleFromInt()
170 assert(std::get<0>(t2).state == VT::FromInt); in main()
176 assert(std::get<0>(t2).state == VT::FromInt); in main()
/external/v8/src/runtime/
Druntime-numbers.cc92 if (x_value == y_value) return Smi::FromInt(0); in RUNTIME_FUNCTION()
97 return Smi::FromInt(x_value < y_value ? -1 : 1); in RUNTIME_FUNCTION()
108 if (y_value >= 0) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
109 if (x_value >= 0) return Smi::FromInt(1); in RUNTIME_FUNCTION()
153 if (x_scaled < y_scaled) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
154 if (x_scaled > y_scaled) return Smi::FromInt(1); in RUNTIME_FUNCTION()
155 return Smi::FromInt(tie); in RUNTIME_FUNCTION()
162 return Smi::FromInt(Smi::kMaxValue); in RUNTIME_FUNCTION()
Druntime-array.cc174 return Smi::FromInt(len); in RemoveArrayHoles()
204 return Smi::FromInt(Min(limit, static_cast<uint32_t>(array_length))); in RemoveArrayHoles()
431 return Smi::FromInt(result); in RUNTIME_FUNCTION()
438 return Smi::FromInt(length); in RUNTIME_FUNCTION()
455 return Smi::FromInt(estimate); in RUNTIME_FUNCTION()
525 return Smi::FromInt(0); in RUNTIME_FUNCTION()
533 return Smi::FromInt(0); in RUNTIME_FUNCTION()
542 return Smi::FromInt(0); in RUNTIME_FUNCTION()
861 if (len == 0) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
870 if (fp > len) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
[all …]
Druntime-debug.cc88 Smi::FromInt(static_cast<uint8_t>(bytecode))); in RUNTIME_FUNCTION_RETURN_PAIR()
93 Smi::FromInt(static_cast<uint8_t>(bytecode))); in RUNTIME_FUNCTION_RETURN_PAIR()
96 Smi::FromInt(static_cast<uint8_t>(bytecode))); in RUNTIME_FUNCTION_RETURN_PAIR()
309 return Smi::FromInt(n); in RUNTIME_FUNCTION()
402 return Smi::FromInt(result); in RUNTIME_FUNCTION()
428 instances->set(i, Smi::FromInt(script->id())); in RUNTIME_FUNCTION()
467 return Smi::FromInt(usage); in RUNTIME_FUNCTION()
527 handle(Smi::FromInt(position), isolate), NONE); in GetJSPositionInfo()
529 handle(Smi::FromInt(info.line), isolate), NONE); in GetJSPositionInfo()
531 handle(Smi::FromInt(info.column), isolate), NONE); in GetJSPositionInfo()
[all …]
Druntime-function.cc52 return Smi::FromInt(Handle<Script>::cast(script)->id()); in RUNTIME_FUNCTION()
55 return Smi::FromInt(-1); in RUNTIME_FUNCTION()
77 return Smi::FromInt(pos); in RUNTIME_FUNCTION()
Druntime-wasm.cc85 return Smi::FromInt(ret); in RUNTIME_FUNCTION()
173 return Smi::FromInt(wasm::kInvalidExceptionTag); in RUNTIME_FUNCTION()
197 return Smi::FromInt(vals[index]); in RUNTIME_FUNCTION()
201 return Smi::FromInt(0); in RUNTIME_FUNCTION()
/external/v8/src/
Ddateparser.cc59 output->set(YEAR, Smi::FromInt(year)); in Write()
60 output->set(MONTH, Smi::FromInt(month - 1)); // 0-based in Write()
61 output->set(DAY, Smi::FromInt(day)); in Write()
91 output->set(HOUR, Smi::FromInt(hour)); in Write()
92 output->set(MINUTE, Smi::FromInt(minute)); in Write()
93 output->set(SECOND, Smi::FromInt(second)); in Write()
94 output->set(MILLISECOND, Smi::FromInt(millisecond)); in Write()
112 output->set(UTC_OFFSET, Smi::FromInt(total_seconds)); in Write()
Disolate-inl.h145 return array_constructor_cell->value() == Smi::FromInt(kProtectorValid); in NATIVE_CONTEXT_FIELDS()
180 return string_length_cell->value() == Smi::FromInt(kProtectorValid); in IsStringLengthOverflowIntact()
185 return buffer_neutering->value() == Smi::FromInt(kProtectorValid); in IsArrayBufferNeuteringIntact()
190 return array_iterator_cell->value() == Smi::FromInt(kProtectorValid); in IsArrayIteratorLookupChainIntact()
Dfield-type.cc18 return reinterpret_cast<FieldType*>(Smi::FromInt(2)); in None()
23 return reinterpret_cast<FieldType*>(Smi::FromInt(1)); in Any()
Dstring-builder-inl.h77 builder->Add(Smi::FromInt(encoded_slice)); in AddSubjectSlice()
80 builder->Add(Smi::FromInt(-length)); in AddSubjectSlice()
81 builder->Add(Smi::FromInt(from)); in AddSubjectSlice()
Dpending-compilation-error-handler.cc121 handle(Smi::FromInt(location.start_pos()), isolate), in ThrowPendingError()
127 handle(Smi::FromInt(location.end_pos()), isolate), in ThrowPendingError()
/external/v8/src/heap/
Dsetup-heap-internal.cc134 map->set_prototype_validity_cell(Smi::FromInt(Map::kPrototypeChainValid)); in AllocatePartialMap()
424 Smi* value = Smi::FromInt(Map::kPrototypeChainInvalid); in CreateInitialMaps()
653 handle(Smi::FromInt(1), isolate()), "boolean", in CreateInitialObjects()
663 handle(Smi::FromInt(-1), isolate()), "undefined", in CreateInitialObjects()
668 handle(Smi::FromInt(-4), isolate()), "undefined", in CreateInitialObjects()
673 handle(Smi::FromInt(-3), isolate()), "undefined", Oddball::kOther)); in CreateInitialObjects()
676 handle(Smi::FromInt(-5), isolate()), in CreateInitialObjects()
681 handle(Smi::FromInt(-6), isolate()), in CreateInitialObjects()
686 handle(Smi::FromInt(-7), isolate()), "undefined", in CreateInitialObjects()
786 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); in CreateInitialObjects()
[all …]
/external/v8/src/compiler/
Djump-threading.cc54 RpoNumber unvisited() { return RpoNumber::FromInt(-1); } in unvisited()
55 RpoNumber onstack() { return RpoNumber::FromInt(-2); } in onstack()
130 fw = RpoNumber::FromInt(next); in ComputeForwarding()
204 block->set_ao_number(RpoNumber::FromInt(ao)); in ApplyForwarding()
210 block->set_ao_number(RpoNumber::FromInt(ao)); in ApplyForwarding()
/external/v8/src/objects/
Dscope-info.cc212 Smi::FromInt(info)); in Create()
219 Smi::FromInt(var->index())); in Create()
226 Smi::FromInt(properties)); in Create()
250 scope_info->set(info_index, Smi::FromInt(info)); in Create()
260 scope_info->set(index++, Smi::FromInt(var_index)); in Create()
277 scope_info->set(index++, Smi::FromInt(var_index)); in Create()
290 scope_info->set(index++, Smi::FromInt(scope->start_position())); in Create()
291 scope_info->set(index++, Smi::FromInt(scope->end_position())); in Create()
307 scope_info->set(index++, Smi::FromInt(module_vars_count)); in Create()
421 scope_info->set(index++, Smi::FromInt(value)); in CreateForBootstrapping()
[all …]
Djs-array-inl.h51 array->set_length(Smi::FromInt(storage->length())); in SetContent()
67 WRITE_FIELD(this, kKindOffset, Smi::FromInt(static_cast<int>(kind))); in set_kind()
Dliteral-objects.cc360 Smi* value = Smi::FromInt(value_index); in AddNamedProperty()
375 Smi* value = Smi::FromInt(value_index); in AddIndexedProperty()
385 computed_properties_->set(current_computed_index_++, Smi::FromInt(flags)); in AddComputed()
485 Smi::FromInt(ClassBoilerplate::kPrototypeArgumentIndex), isolate); in BuildClassBoilerplate()
490 Handle<Smi> start_position(Smi::FromInt(expr->start_position()), isolate); in BuildClassBoilerplate()
491 Handle<Smi> end_position(Smi::FromInt(expr->end_position()), isolate); in BuildClassBoilerplate()
504 Smi::FromInt(ClassBoilerplate::kConstructorArgumentIndex), isolate); in BuildClassBoilerplate()
Dordered-hash-table.cc33 table->set(kHashTableStartIndex + i, Smi::FromInt(kNotFound)); in Allocate()
114 table->set(new_index + kChainOffset, Smi::FromInt(previous_entry)); in Add()
116 table->set(kHashTableStartIndex + bucket, Smi::FromInt(new_entry)); in Add()
181 new_table->set(kHashTableStartIndex + bucket, Smi::FromInt(new_entry)); in Rehash()
227 if (hash->IsUndefined(isolate)) return Smi::FromInt(-1); in GetHash()
261 table->set(new_index + kChainOffset, Smi::FromInt(previous_entry)); in Add()
263 table->set(kHashTableStartIndex + bucket, Smi::FromInt(new_entry)); in Add()
713 set_index(Smi::FromInt(index)); in Transition()
731 set_index(Smi::FromInt(index)); in HasMore()
Dordered-hash-table.h202 set(kNumberOfBucketsIndex, Smi::FromInt(num)); in SetNumberOfBuckets()
206 set(kNumberOfElementsIndex, Smi::FromInt(num)); in SetNumberOfElements()
210 set(kNumberOfDeletedElementsIndex, Smi::FromInt(num)); in SetNumberOfDeletedElements()
219 return set(kRemovedHolesIndex + index, Smi::FromInt(removed_index)); in SetRemovedIndexAt()
657 void MoveNext() { set_index(Smi::FromInt(Smi::ToInt(index()) + 1)); } in MoveNext()
Dhash-table-inl.h53 set(kNumberOfElementsIndex, Smi::FromInt(nof)); in SetNumberOfElements()
57 set(kNumberOfDeletedElementsIndex, Smi::FromInt(nod)); in SetNumberOfDeletedElements()
Dtemplates-inl.h112 Smi::FromInt(EmbedderFieldCount::update(Smi::ToInt(data()), count))); in set_embedder_field_count()
122 return set_data(Smi::FromInt( in set_immutable_proto()
/external/clang/lib/AST/
DASTDiagnostic.cpp619 void SetIntegerDiff(const llvm::APSInt &FromInt, const llvm::APSInt &ToInt, in SetIntegerDiff() argument
626 FlatTree[CurrentNode].FromArgInfo.Val = FromInt; in SetIntegerDiff()
672 const llvm::APSInt &FromInt, bool IsValidFromInt, QualType FromIntType, in SetFromIntegerAndToDeclarationDiff() argument
677 FlatTree[CurrentNode].FromArgInfo.Val = FromInt; in SetFromIntegerAndToDeclarationDiff()
775 void GetIntegerDiff(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetIntegerDiff() argument
780 FromInt = FlatTree[ReadNode].FromArgInfo.Val; in GetIntegerDiff()
822 llvm::APSInt &FromInt, bool &IsValidFromInt, QualType &FromIntType, in GetFromIntegerAndToDeclarationDiff() argument
827 FromInt = FlatTree[ReadNode].FromArgInfo.Val; in GetFromIntegerAndToDeclarationDiff()
1207 llvm::APSInt FromInt, ToInt; in DiffNonTypes() local
1213 Context, FromIter, FromDefaultNonTypeDecl, FromInt, HasFromInt, in DiffNonTypes()
[all …]
/external/v8/src/builtins/
Dbuiltins-typed-array.cc209 if (len == 0) return Smi::FromInt(-1); in BUILTIN()
220 if (V8_UNLIKELY(array->WasNeutered())) return Smi::FromInt(-1); in BUILTIN()
240 if (len == 0) return Smi::FromInt(-1); in BUILTIN()
252 if (index < 0) return Smi::FromInt(-1); in BUILTIN()
255 if (V8_UNLIKELY(array->WasNeutered())) return Smi::FromInt(-1); in BUILTIN()
Dbuiltins-string.cc222 return Smi::FromInt(-str2_length); in BUILTIN()
224 if (str2_length == 0) return Smi::FromInt(str1_length); in BUILTIN()
233 if (d != 0) return Smi::FromInt(d); in BUILTIN()
244 return Smi::FromInt(flat1.Get(i) - flat2.Get(i)); in BUILTIN()
248 return Smi::FromInt(str1_length - str2_length); in BUILTIN()
422 return (overflows && !ignore_overflow) ? Smi::FromInt(-current_length) in ConvertCaseHelper()
423 : Smi::FromInt(current_length); in ConvertCaseHelper()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DConverter.java36 return new FromInt(); in getConverterFor()
68 return new FromInt(); in getConverter()
174 private static class FromInt extends Converter<String> { class in Converter

123456