/external/v8/test/cctest/interpreter/ |
D | test-interpreter.cc | 284 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/ |
D | dateparser.cc | 59 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()
|
D | futex-emulation.cc | 87 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/ |
D | test-macro-assembler-x64.cc | 126 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 …]
|
D | test-array-list.cc | 24 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()
|
D | test-dictionary.cc | 120 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()
|
D | test-elements-kind.cc | 77 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/ |
D | schedule-unittest.cc | 21 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 …]
|
D | live-range-builder.h | 48 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()
|
D | live-range-unittest.cc | 29 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/ |
D | runtime-numbers.cc | 204 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()
|
D | runtime-strings.cc | 144 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 …]
|
D | runtime-test.cc | 166 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()
|
D | runtime-collections.cc | 98 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()
|
D | runtime-typedarray.cc | 54 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()
|
D | runtime-maths.cc | 71 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()
|
D | runtime-debug.cc | 366 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/ |
D | lithium-codegen.cc | 296 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/ |
D | jump-threading.cc | 52 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()
|
D | code-generator.cc | 371 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/ |
D | bytecode-array-iterator-unittest.cc | 33 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/ |
D | heap-inl.h | 640 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/ |
D | ASTDiagnostic.cpp | 544 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/ |
D | full-codegen-x87.cc | 96 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/ |
D | full-codegen-ia32.cc | 96 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 …]
|