Home
last modified time | relevance | path

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

123456789

/external/v8/test/cctest/interpreter/
Dtest-interpreter.cc284 builder.LoadLiteral(Smi::FromInt(i)).Return(); in TEST()
290 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(i)); in TEST()
299 builder.LoadLiteral(Smi::FromInt(0x12345678)).Return(); in TEST()
305 CHECK_EQ(Smi::cast(*return_val), Smi::FromInt(0x12345678)); in TEST()
449 builder.LoadLiteral(Smi::FromInt(200)); in TEST()
452 builder.LoadLiteral(Smi::FromInt(100)); in TEST()
455 builder.LoadLiteral(Smi::FromInt(0)); in TEST()
549 builder.LoadLiteral(Smi::FromInt(lhs)) in TEST()
551 .LoadLiteral(Smi::FromInt(rhs)) in TEST()
584 builder.LoadLiteral(Smi::FromInt(lhs)) in TEST()
[all …]
/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()
Dfutex-emulation.cc87 return Smi::FromInt(Result::kNotEqual); in Wait()
160 result = Smi::FromInt(Result::kOk); in Wait()
168 result = Smi::FromInt(Result::kTimedOut); in Wait()
212 return Smi::FromInt(waiters_woken); in Wake()
229 return Smi::FromInt(Result::kNotEqual); in WakeOrRequeue()
250 return Smi::FromInt(waiters_woken); in WakeOrRequeue()
273 return Smi::FromInt(waiters); in NumWaitersForTesting()
/external/v8/test/cctest/
Dtest-macro-assembler-x64.cc126 Smi* smi_from_int = Smi::FromInt(static_cast<int32_t>(number)); in TEST()
160 TestMoveSmi(masm, &exit, 1, Smi::FromInt(0)); in TEST()
161 TestMoveSmi(masm, &exit, 2, Smi::FromInt(127)); in TEST()
162 TestMoveSmi(masm, &exit, 3, Smi::FromInt(128)); in TEST()
163 TestMoveSmi(masm, &exit, 4, Smi::FromInt(255)); in TEST()
164 TestMoveSmi(masm, &exit, 5, Smi::FromInt(256)); in TEST()
165 TestMoveSmi(masm, &exit, 6, Smi::FromInt(Smi::kMaxValue)); in TEST()
166 TestMoveSmi(masm, &exit, 7, Smi::FromInt(-1)); in TEST()
167 TestMoveSmi(masm, &exit, 8, Smi::FromInt(-128)); in TEST()
168 TestMoveSmi(masm, &exit, 9, Smi::FromInt(-129)); in TEST()
[all …]
Dtest-array-list.cc24 array = ArrayList::Add(array, handle(Smi::FromInt(100), isolate)); in TEST()
27 array = ArrayList::Add(array, handle(Smi::FromInt(200), isolate), in TEST()
28 handle(Smi::FromInt(300), isolate)); in TEST()
33 array->Set(2, Smi::FromInt(400)); in TEST()
Dtest-dictionary.cc120 set(EntryToIndex(entry), Smi::FromInt(key)); in insert()
121 set(EntryToIndex(entry) + 1, Smi::FromInt(value)); in insert()
125 Handle<Object> key_obj(Smi::FromInt(key), GetIsolate()); in lookup()
147 t->Rehash(handle(Smi::FromInt(0), isolate)); in TEST()
160 t->Rehash(handle(Smi::FromInt(0), isolate)); in TEST()
239 Handle<Object> value = handle(Smi::FromInt(0), isolate); in TEST()
Dtest-elements-kind.cc77 Handle<Object> value(Smi::FromInt(42), isolate); in TEST()
108 Handle<Object> value(Smi::FromInt(42), isolate); in TEST()
151 Handle<Object> value(Smi::FromInt(42), isolate); in TEST()
202 Handle<Object> value(Smi::FromInt(42), isolate); in TEST()
234 Handle<Object> value(Smi::FromInt(42), isolate); in TEST()
292 Handle<Object> value_smi(Smi::FromInt(42), isolate); in TEST()
366 Handle<Object> value_smi(Smi::FromInt(42), isolate); in TEST()
415 Handle<Object> value_smi(Smi::FromInt(42), isolate); in TEST()
/external/v8/test/unittests/compiler/
Dschedule-unittest.cc21 BasicBlock b(zone(), BasicBlock::Id::FromInt(id)); in TEST_F()
31 BasicBlock b(zone(), BasicBlock::Id::FromInt(0)); in TEST_F()
37 BasicBlock b0(zone(), BasicBlock::Id::FromInt(0)); in TEST_F()
38 BasicBlock b1(zone(), BasicBlock::Id::FromInt(1)); in TEST_F()
39 BasicBlock b2(zone(), BasicBlock::Id::FromInt(2)); in TEST_F()
55 BasicBlock b0(zone(), BasicBlock::Id::FromInt(0)); in TEST_F()
56 BasicBlock b1(zone(), BasicBlock::Id::FromInt(1)); in TEST_F()
57 BasicBlock b2(zone(), BasicBlock::Id::FromInt(2)); in TEST_F()
58 BasicBlock b3(zone(), BasicBlock::Id::FromInt(3)); in TEST_F()
90 schedule.GetBlockById(BasicBlock::Id::FromInt(0))); in TEST_F()
[all …]
Dlive-range-builder.h48 LifetimePosition start = LifetimePosition::FromInt(pair.first); in Build()
49 LifetimePosition end = LifetimePosition::FromInt(pair.second); in Build()
55 new (zone_) UsePosition(LifetimePosition::FromInt(pos), nullptr, in Build()
Dlive-range-unittest.cc29 return range->SplitAt(LifetimePosition::FromInt(pos), zone()); in Split()
40 top->Splinter(LifetimePosition::FromInt(start), in Splinter()
41 LifetimePosition::FromInt(end), zone()); in Splinter()
79 range->AddUseInterval(LifetimePosition::FromInt(0), in TEST_F()
80 LifetimePosition::FromInt(0), zone()), in TEST_F()
442 vreg->Splinter(LifetimePosition::FromInt(4), LifetimePosition::FromInt(12), in TEST_F()
448 LiveRange* child = vreg->SplitAt(LifetimePosition::FromInt(50), zone()); in TEST_F()
453 splinter->SplitAt(LifetimePosition::FromInt(8), zone()); in TEST_F()
/external/v8/src/runtime/
Druntime-numbers.cc204 return Smi::FromInt(int_value); in RUNTIME_FUNCTION()
233 if (x_value == y_value) return Smi::FromInt(EQUAL); in RUNTIME_FUNCTION()
238 return Smi::FromInt(x_value < y_value ? LESS : GREATER); in RUNTIME_FUNCTION()
249 if (y_value >= 0) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
250 if (x_value >= 0) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
294 if (x_scaled < y_scaled) return Smi::FromInt(LESS); in RUNTIME_FUNCTION()
295 if (x_scaled > y_scaled) return Smi::FromInt(GREATER); in RUNTIME_FUNCTION()
296 return Smi::FromInt(tie); in RUNTIME_FUNCTION()
303 return Smi::FromInt(Smi::kMaxValue); in RUNTIME_FUNCTION()
Druntime-strings.cc144 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
148 return Smi::FromInt(position); in RUNTIME_FUNCTION()
195 if (!index->ToArrayIndex(&start_index)) return Smi::FromInt(-1); in RUNTIME_FUNCTION()
205 return Smi::FromInt(start_index); in RUNTIME_FUNCTION()
237 return Smi::FromInt(position); in RUNTIME_FUNCTION()
248 if (str1.is_identical_to(str2)) return Smi::FromInt(0); // Equal. in RUNTIME_FUNCTION()
254 if (str2_length == 0) return Smi::FromInt(0); // Equal. in RUNTIME_FUNCTION()
255 return Smi::FromInt(-str2_length); in RUNTIME_FUNCTION()
257 if (str2_length == 0) return Smi::FromInt(str1_length); in RUNTIME_FUNCTION()
266 if (d != 0) return Smi::FromInt(d); in RUNTIME_FUNCTION()
[all …]
Druntime-test.cc166 return Smi::FromInt(4); // 4 == "never". in RUNTIME_FUNCTION()
186 return Smi::FromInt(3); // 3 == "always". in RUNTIME_FUNCTION()
189 return Smi::FromInt(6); // 6 == "maybe deopted". in RUNTIME_FUNCTION()
192 return Smi::FromInt(7); // 7 == "TurboFan compiler". in RUNTIME_FUNCTION()
194 return function->IsOptimized() ? Smi::FromInt(1) // 1 == "yes". in RUNTIME_FUNCTION()
195 : Smi::FromInt(2); // 2 == "no". in RUNTIME_FUNCTION()
212 return Smi::FromInt(function->shared()->opt_count()); in RUNTIME_FUNCTION()
380 return Smi::FromInt(Natives::GetBuiltinsCount() + in RUNTIME_FUNCTION()
Druntime-collections.cc98 holder->set_index(Smi::FromInt(0)); in RUNTIME_FUNCTION()
99 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()
194 holder->set_index(Smi::FromInt(0)); 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.cc54 CHECK(Smi::FromInt(0) == array_buffer->byte_length()); in RUNTIME_FUNCTION()
138 holder->SetInternalField(i, Smi::FromInt(0)); in RUNTIME_FUNCTION()
212 holder->SetInternalField(i, Smi::FromInt(0)); in RUNTIME_FUNCTION()
238 holder->set_byte_offset(Smi::FromInt(0)); in RUNTIME_FUNCTION()
315 return Smi::FromInt(TYPED_ARRAY_SET_NON_TYPED_ARRAY); in RUNTIME_FUNCTION()
348 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_SAME_TYPE); in RUNTIME_FUNCTION()
359 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_OVERLAPPING); in RUNTIME_FUNCTION()
361 return Smi::FromInt(TYPED_ARRAY_SET_TYPED_ARRAY_NONOVERLAPPING); in RUNTIME_FUNCTION()
370 return Smi::FromInt(FLAG_typed_array_max_size_in_heap); in RUNTIME_FUNCTION()
428 holder->SetInternalField(i, Smi::FromInt(0)); in RUNTIME_FUNCTION()
Druntime-maths.cc71 RUNTIME_ASSERT(result->byte_length() == Smi::FromInt(2 * sizeof(double))); in RUNTIME_FUNCTION()
74 return Smi::FromInt(fdlibm::rempio2(x, y)); in RUNTIME_FUNCTION()
169 return Smi::FromInt(1); in RUNTIME_FUNCTION()
198 return Smi::FromInt(0); in RUNTIME_FUNCTION()
205 return Smi::FromInt(static_cast<int>(value + 0.5)); in RUNTIME_FUNCTION()
Druntime-debug.cc366 return Smi::FromInt(static_cast<int>(details.type())); in RUNTIME_FUNCTION()
376 return Smi::FromInt(static_cast<int>(details.attributes())); in RUNTIME_FUNCTION()
387 return Smi::FromInt(details.dictionary_index()); in RUNTIME_FUNCTION()
444 return Smi::FromInt(0); in RUNTIME_FUNCTION()
455 return Smi::FromInt(n); in RUNTIME_FUNCTION()
641 details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count)); in RUNTIME_FUNCTION()
644 details->set(kFrameDetailsLocalCountIndex, Smi::FromInt(local_count)); in RUNTIME_FUNCTION()
648 details->set(kFrameDetailsSourcePositionIndex, Smi::FromInt(position)); in RUNTIME_FUNCTION()
671 details->set(kFrameDetailsFlagsIndex, Smi::FromInt(flags)); in RUNTIME_FUNCTION()
753 return Smi::FromInt(n); in RUNTIME_FUNCTION()
[all …]
/external/v8/src/crankshaft/
Dlithium-codegen.cc296 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); in PopulateDeoptimizationData()
297 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); in PopulateDeoptimizationData()
303 data->SetSharedFunctionInfo(Smi::FromInt(0)); in PopulateDeoptimizationData()
305 data->SetWeakCellCache(Smi::FromInt(0)); in PopulateDeoptimizationData()
317 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); in PopulateDeoptimizationData()
318 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); in PopulateDeoptimizationData()
324 data->SetTranslationIndex(i, Smi::FromInt(env->translation_index())); in PopulateDeoptimizationData()
326 Smi::FromInt(env->arguments_stack_height())); in PopulateDeoptimizationData()
327 data->SetPc(i, Smi::FromInt(env->pc_offset())); in PopulateDeoptimizationData()
/external/v8/src/compiler/
Djump-threading.cc52 RpoNumber unvisited() { return RpoNumber::FromInt(-1); } in unvisited()
53 RpoNumber onstack() { return RpoNumber::FromInt(-2); } in onstack()
105 if (next < code->InstructionBlockCount()) fw = RpoNumber::FromInt(next); in ComputeForwarding()
178 block->set_ao_number(RpoNumber::FromInt(ao)); in ApplyForwarding()
184 block->set_ao_number(RpoNumber::FromInt(ao)); in ApplyForwarding()
Dcode-generator.cc371 Smi::FromInt(static_cast<int>(inlined_function_count_))); in PopulateDeoptimizationData()
372 data->SetOptimizationId(Smi::FromInt(info->optimization_id())); in PopulateDeoptimizationData()
377 data->SetSharedFunctionInfo(Smi::FromInt(0)); in PopulateDeoptimizationData()
392 data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); in PopulateDeoptimizationData()
393 data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); in PopulateDeoptimizationData()
396 data->SetOsrAstId(Smi::FromInt(osr_ast_id.ToInt())); in PopulateDeoptimizationData()
397 data->SetOsrPcOffset(Smi::FromInt(-1)); in PopulateDeoptimizationData()
406 i, Smi::FromInt(deoptimization_states_[i]->translation_id())); in PopulateDeoptimizationData()
407 data->SetArgumentsStackHeight(i, Smi::FromInt(0)); in PopulateDeoptimizationData()
408 data->SetPc(i, Smi::FromInt(deoptimization_state->pc_offset())); in PopulateDeoptimizationData()
[all …]
/external/v8/test/unittests/interpreter/
Dbytecode-array-iterator-unittest.cc33 Smi* zero = Smi::FromInt(0); in TEST_F()
34 Smi* smi_0 = Smi::FromInt(64); in TEST_F()
35 Smi* smi_1 = Smi::FromInt(-65536); in TEST_F()
71 CHECK_EQ(Smi::FromInt(iterator.GetImmediateOperand(0)), smi_0); in TEST_F()
/external/v8/src/heap/
Dheap-inl.h640 set_instanceof_cache_function(Smi::FromInt(0)); in ClearInstanceofCache()
650 set_instanceof_cache_map(Smi::FromInt(0)); in CompletelyClearInstanceofCache()
651 set_instanceof_cache_function(Smi::FromInt(0)); in CompletelyClearInstanceofCache()
669 set_last_script_id(Smi::FromInt(last_id)); in NextScriptId()
675 DCHECK(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); in SetArgumentsAdaptorDeoptPCOffset()
676 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); in SetArgumentsAdaptorDeoptPCOffset()
681 DCHECK(construct_stub_deopt_pc_offset() == Smi::FromInt(0)); in SetConstructStubDeoptPCOffset()
682 set_construct_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); in SetConstructStubDeoptPCOffset()
687 DCHECK(getter_stub_deopt_pc_offset() == Smi::FromInt(0)); in SetGetterStubDeoptPCOffset()
688 set_getter_stub_deopt_pc_offset(Smi::FromInt(pc_offset)); in SetGetterStubDeoptPCOffset()
[all …]
/external/clang/lib/AST/
DASTDiagnostic.cpp544 llvm::APSInt FromInt, ToInt; member
611 void SetNode(llvm::APSInt FromInt, llvm::APSInt ToInt, in SetNode() argument
613 FlatTree[CurrentNode].FromInt = FromInt; in SetNode()
714 void GetNode(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetNode() argument
716 FromInt = FlatTree[ReadNode].FromInt; in GetNode()
1048 llvm::APSInt FromInt, ToInt; in DiffNonTypes() local
1054 FromExpr, FromInt, FromValueDecl); in DiffNonTypes()
1068 HasFromInt = GetInt(Context, FromIter, FromExpr, FromInt, in DiffNonTypes()
1075 Tree.SetNode(FromInt, ToInt, HasFromInt, HasToInt); in DiffNonTypes()
1076 Tree.SetSame(FromInt == ToInt); in DiffNonTypes()
[all …]
/external/v8/src/full-codegen/x87/
Dfull-codegen-x87.cc96 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); in Generate()
264 Immediate(Smi::FromInt(num_parameters))); in Generate()
268 Immediate(Smi::FromInt(rest_index))); in Generate()
288 Immediate(Smi::FromInt(num_parameters))); in Generate()
354 __ Move(eax, Immediate(Smi::FromInt(0))); in ClearAccumulator()
361 Immediate(Smi::FromInt(delta))); in EmitProfilingCounterDecrement()
369 Immediate(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
792 __ push(Immediate(Smi::FromInt(0))); // Indicates no initial value. in VisitVariableDeclaration()
795 Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes()))); in VisitVariableDeclaration()
844 Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes()))); in VisitFunctionDeclaration()
[all …]
/external/v8/src/full-codegen/ia32/
Dfull-codegen-ia32.cc96 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); in Generate()
267 Immediate(Smi::FromInt(num_parameters))); in Generate()
271 Immediate(Smi::FromInt(rest_index))); in Generate()
291 Immediate(Smi::FromInt(num_parameters))); in Generate()
357 __ Move(eax, Immediate(Smi::FromInt(0))); in ClearAccumulator()
364 Immediate(Smi::FromInt(delta))); in EmitProfilingCounterDecrement()
372 Immediate(Smi::FromInt(reset_value))); in EmitProfilingCounterReset()
795 __ push(Immediate(Smi::FromInt(0))); // Indicates no initial value. in VisitVariableDeclaration()
798 Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes()))); in VisitVariableDeclaration()
852 Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes()))); in VisitFunctionDeclaration()
[all …]

123456789