Home
last modified time | relevance | path

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

123456789

/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/ic/
Dhandler-configuration-inl.h22 return handle(Smi::FromInt(config), isolate); in LoadField()
30 return handle(Smi::FromInt(config), isolate); in LoadConstant()
38 return handle(Smi::FromInt(config), isolate); in LoadApiGetter()
49 return handle(Smi::FromInt(config), isolate); in EnableAccessCheckOnReceiver()
60 return handle(Smi::FromInt(config), isolate); in EnableNegativeLookupOnReceiver()
68 return handle(Smi::FromInt(config), isolate); in LoadNonExistent()
79 return handle(Smi::FromInt(config), isolate); in LoadElement()
115 return handle(Smi::FromInt(config), isolate); in StoreField()
139 return handle(Smi::FromInt(config), isolate); in TransitionToConstant()
/external/v8/src/runtime/
Druntime-numbers.cc118 return Smi::FromInt(int_value); in RUNTIME_FUNCTION()
134 if (x_value == y_value) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
139 return Smi::FromInt(x_value < y_value ? LESS : GREATER); in RUNTIME_FUNCTION()
150 if (y_value >= 0) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
151 if (x_value >= 0) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
195 if (x_scaled < y_scaled) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
196 if (x_scaled > y_scaled) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
197 return Smi::FromInt(tie); in RUNTIME_FUNCTION()
204 return Smi::FromInt(Smi::kMaxValue); in RUNTIME_FUNCTION()
Druntime-debug.cc426 return Smi::FromInt(static_cast<int>(details.type())); in RUNTIME_FUNCTION()
436 return Smi::FromInt(static_cast<int>(details.attributes())); in RUNTIME_FUNCTION()
475 return Smi::FromInt(n); in RUNTIME_FUNCTION()
585 Smi::FromInt(translated_position)); in RUNTIME_FUNCTION()
602 details->set(kFrameDetailsFlagsIndex, Smi::FromInt(flags)); in RUNTIME_FUNCTION()
718 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count)); in RUNTIME_FUNCTION()
721 details->set(kFrameDetailsLocalCountIndex, Smi::FromInt(local_count)); in RUNTIME_FUNCTION()
725 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position)); in RUNTIME_FUNCTION()
748 details->set(kFrameDetailsFlagsIndex, Smi::FromInt(flags)); in RUNTIME_FUNCTION()
810 return Smi::FromInt(n); in RUNTIME_FUNCTION()
[all …]
Druntime-test.cc232 return Smi::FromInt(4); // 4 == "never". in RUNTIME_FUNCTION()
263 return Smi::FromInt(3); // 3 == "always". in RUNTIME_FUNCTION()
266 return Smi::FromInt(6); // 6 == "maybe deopted". in RUNTIME_FUNCTION()
269 return Smi::FromInt(7); // 7 == "TurboFan compiler". in RUNTIME_FUNCTION()
272 return Smi::FromInt(8); // 8 == "Interpreted". in RUNTIME_FUNCTION()
274 return function->IsOptimized() ? Smi::FromInt(1) // 1 == "yes". in RUNTIME_FUNCTION()
275 : Smi::FromInt(2); // 2 == "no". in RUNTIME_FUNCTION()
293 return Smi::FromInt(function->shared()->opt_count()); in RUNTIME_FUNCTION()
550 return Smi::FromInt(Natives::GetBuiltinsCount()); in RUNTIME_FUNCTION()
644 value = handle(Smi::FromInt(message_obj->start_position()), isolate); in RUNTIME_FUNCTION()
[all …]
Druntime-generator.cc124 return Smi::FromInt(generator->resume_mode()); in RUNTIME_FUNCTION()
132 return Smi::FromInt(generator->continuation()); in RUNTIME_FUNCTION()
141 return Smi::FromInt(generator->source_position()); in RUNTIME_FUNCTION()
Druntime-collections.cc99 holder->set_kind(Smi::FromInt(kind)); in RUNTIME_FUNCTION()
111 result->set_index(Smi::FromInt(Smi::cast(holder->index())->value())); in RUNTIME_FUNCTION()
112 result->set_kind(Smi::FromInt(Smi::cast(holder->kind())->value())); in RUNTIME_FUNCTION()
195 holder->set_kind(Smi::FromInt(kind)); in RUNTIME_FUNCTION()
207 result->set_index(Smi::FromInt(Smi::cast(holder->index())->value())); in RUNTIME_FUNCTION()
208 result->set_kind(Smi::FromInt(Smi::cast(holder->kind())->value())); in RUNTIME_FUNCTION()
Druntime-typedarray.cc320 return Smi::FromInt(TYPED_ARRAY_SET_NON_TYPED_ARRAY); in RUNTIME_FUNCTION()
353 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_SAME_TYPE); in RUNTIME_FUNCTION()
364 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING); in RUNTIME_FUNCTION()
366 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING); in RUNTIME_FUNCTION()
375 return Smi::FromInt(FLAG_typed_array_max_size_in_heap); in RUNTIME_FUNCTION()
Druntime-array.cc133 if (object->IsJSProxy()) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
172 return Smi::FromInt(result); in RUNTIME_FUNCTION()
179 return Smi::FromInt(length); in RUNTIME_FUNCTION()
196 return Smi::FromInt(estimate); in RUNTIME_FUNCTION()
579 if (len == 0) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
588 if (fp > len) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
636 return Smi::FromInt(-1); 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.h138 return has_instance_cell->value() == Smi::FromInt(kProtectorValid); in IsHasInstanceLookupChainIntact()
143 return has_instance_cell->value() == Smi::FromInt(kProtectorValid); in IsStringLengthOverflowIntact()
148 return fast_iteration->value() == Smi::FromInt(kProtectorValid); in IsFastArrayIterationIntact()
153 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()
Dpending-compilation-error-handler.cc63 handle(Smi::FromInt(location.start_pos()), isolate), in ThrowPendingError()
68 handle(Smi::FromInt(location.end_pos()), isolate), in ThrowPendingError()
/external/v8/src/compiler/
Djump-threading.cc52 RpoNumber unvisited() { return RpoNumber::FromInt(-1); } in unvisited()
53 RpoNumber onstack() { return RpoNumber::FromInt(-2); } in onstack()
114 if (next < code->InstructionBlockCount()) fw = RpoNumber::FromInt(next); in ComputeForwarding()
187 block->set_ao_number(RpoNumber::FromInt(ao)); in ApplyForwarding()
193 block->set_ao_number(RpoNumber::FromInt(ao)); in ApplyForwarding()
/external/v8/src/ast/
Dcompile-time-value.cc31 result->set(kLiteralTypeSlot, Smi::FromInt(OBJECT_LITERAL_FAST_ELEMENTS)); in GetValue()
33 result->set(kLiteralTypeSlot, Smi::FromInt(OBJECT_LITERAL_SLOW_ELEMENTS)); in GetValue()
39 result->set(kLiteralTypeSlot, Smi::FromInt(ARRAY_LITERAL)); in GetValue()
Dscopeinfo.cc191 scope_info->set(index++, Smi::FromInt(first_slot_index)); in Create()
219 Smi::FromInt(info)); in Create()
226 Smi::FromInt(var->index())); in Create()
232 Smi::FromInt(properties)); in Create()
247 scope_info->set(index++, Smi::FromInt(var_index)); in Create()
258 scope_info->set(index++, Smi::FromInt(var_index)); in Create()
276 scope_info->set(index++, Smi::FromInt(module_vars_count)); in Create()
368 scope_info->set(index++, Smi::FromInt(first_slot_index)); in CreateGlobalThisBinding()
378 scope_info->set(index++, Smi::FromInt(value)); in CreateGlobalThisBinding()
383 scope_info->set(index++, Smi::FromInt(receiver_index)); in CreateGlobalThisBinding()
/external/v8/src/crankshaft/
Dlithium-codegen.cc342 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); in PopulateDeoptimizationData()
343 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); in PopulateDeoptimizationData()
366 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); in PopulateDeoptimizationData()
367 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); in PopulateDeoptimizationData()
373 data->SetTranslationIndex(i, Smi::FromInt(env->translation_index())); in PopulateDeoptimizationData()
375 Smi::FromInt(env->arguments_stack_height())); in PopulateDeoptimizationData()
376 data->SetPc(i, Smi::FromInt(env->pc_offset())); in PopulateDeoptimizationData()
/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/full-codegen/x64/
Dfull-codegen-x64.cc98 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); in Generate()
129 Smi::FromInt(1)); in Generate()
355 Smi::FromInt(-delta)); in EmitProfilingCounterDecrement()
362 __ Move(kScratchRegister, Smi::FromInt(reset_value)); in EmitProfilingCounterReset()
750 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitVariableDeclaration()
798 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitFunctionDeclaration()
851 __ Push(Smi::FromInt(DeclareGlobalsFlags())); in DeclareGlobals()
1040 __ Push(Smi::FromInt(1)); // Smi(1) indicates slow check in VisitForInStatement()
1105 __ SmiAddConstant(Operand(rsp, 0 * kPointerSize), Smi::FromInt(1)); in VisitForInStatement()
1313 __ Push(Smi::FromInt(expr->literal_index())); in VisitObjectLiteral()
[all …]
/external/v8/src/full-codegen/x87/
Dfull-codegen-x87.cc98 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); in Generate()
128 Immediate(Smi::FromInt(1))); in Generate()
355 Immediate(Smi::FromInt(delta))); in EmitProfilingCounterDecrement()
363 Immediate(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
733 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitVariableDeclaration()
780 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitFunctionDeclaration()
828 __ Push(Smi::FromInt(DeclareGlobalsFlags())); in DeclareGlobals()
1007 __ push(Immediate(Smi::FromInt(1))); // Smi(1) indicates slow check in VisitForInStatement()
1070 __ add(Operand(esp, 0 * kPointerSize), Immediate(Smi::FromInt(1))); in VisitForInStatement()
1276 __ push(Immediate(Smi::FromInt(expr->literal_index()))); in VisitObjectLiteral()
[all …]
/external/v8/src/full-codegen/ia32/
Dfull-codegen-ia32.cc98 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); in Generate()
128 Immediate(Smi::FromInt(1))); in Generate()
358 Immediate(Smi::FromInt(delta))); in EmitProfilingCounterDecrement()
366 Immediate(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
736 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitVariableDeclaration()
784 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitFunctionDeclaration()
836 __ Push(Smi::FromInt(DeclareGlobalsFlags())); in DeclareGlobals()
1015 __ push(Immediate(Smi::FromInt(1))); // Smi(1) indicates slow check in VisitForInStatement()
1078 __ add(Operand(esp, 0 * kPointerSize), Immediate(Smi::FromInt(1))); in VisitForInStatement()
1284 __ push(Immediate(Smi::FromInt(expr->literal_index()))); in VisitObjectLiteral()
[all …]
/external/v8/src/debug/
Dliveedit.cc334 Handle<Object>(Smi::FromInt(char_pos1), isolate)); in WriteChunk()
337 Handle<Object>(Smi::FromInt(char_pos1 + char_len1), in WriteChunk()
341 Handle<Object>(Smi::FromInt(char_pos2 + char_len2), in WriteChunk()
727 Smi::FromInt(message_location.start_pos()), isolate); in GatherCompileInfo()
728 Handle<Smi> end_pos(Smi::FromInt(message_location.end_pos()), isolate); in GatherCompileInfo()
1251 SetElementSloppy(result, i, Handle<Smi>(Smi::FromInt(status), isolate)); in CheckActivation()
1296 Smi::FromInt(StackFrame::INTERNAL); in SetUpFrameDropperFrame()
1385 Smi* padding_object = Smi::FromInt(LiveEdit::kFramePaddingValue); in DropFrames()
1396 Smi::FromInt(padding_counter - shortage_bytes / kPointerSize); in DropFrames()
1483 Smi::FromInt( in FrameUsesNewTarget()
[all …]
/external/v8/src/interpreter/
Dbytecode-generator.cc157 builder()->LoadLiteral(Smi::FromInt(token)); in RecordCommand()
172 builder()->LoadLiteral(Smi::FromInt(-1)); in RecordFallThroughPath()
183 builder()->LoadLiteral(Smi::FromInt(entry.token)); in ApplyDeferredCommands()
529 pairs->set(array_index++, Smi::FromInt(declaration.first.ToInt())); in AllocateDeclarationPairs()
703 ->LoadLiteral(Smi::FromInt(static_cast<int>(i))) in BuildIndexedJump()
734 ->LoadLiteral(Smi::FromInt(JSGeneratorObject::kGeneratorExecuting)) in VisitIterationHeader()
764 .LoadLiteral(Smi::FromInt(JSGeneratorObject::kGeneratorExecuting)) in VisitGeneratorPrologue()
900 ->LoadLiteral(Smi::FromInt(entry->module_request)) in VisitModuleNamespaceImports()
928 .LoadLiteral(Smi::FromInt(encoded_flags)) in VisitDeclarations()
1424 ->LoadLiteral(Smi::FromInt(expr->start_position())) in VisitClassLiteralForRuntimeDefinition()
[all …]
/external/v8/src/wasm/
Dwasm-objects.cc113 static_cast<Object*>(Smi::FromInt(maximum))); in New()
141 Smi::FromInt(table_index)); in DEFINE_GETTER()
172 static_cast<Object*>(Smi::FromInt(maximum))); in New()
290 function->SetInternalField(kIndex, Smi::FromInt(func_index)); in New()
313 set(kID_instance_id, Smi::FromInt(instance_id_counter++)); in InitId()
/external/v8/src/full-codegen/arm64/
Dfull-codegen-arm64.cc109 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); in Generate()
143 __ Add(x10, x10, Operand(Smi::FromInt(1))); in Generate()
370 __ Subs(x3, x3, Smi::FromInt(delta)); in EmitProfilingCounterDecrement()
378 __ Mov(x3, Smi::FromInt(reset_value)); in EmitProfilingCounterReset()
783 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitVariableDeclaration()
832 globals_->Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone()); in VisitFunctionDeclaration()
889 if (Smi::FromInt(DeclareGlobalsFlags())) { in DeclareGlobals()
891 __ Mov(flags, Smi::FromInt(DeclareGlobalsFlags())); in DeclareGlobals()
1072 __ Mov(x1, Smi::FromInt(1)); // Smi(1) indicates slow check. in VisitForInStatement()
1139 __ Add(x0, x0, Smi::FromInt(1)); in VisitForInStatement()
[all …]

123456789