Home
last modified time | relevance | path

Searched refs:ToInt (Results 1 – 25 of 136) sorted by relevance

123456

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Darg_test.cc43 TEST_F(FormatArgImplTest, ToInt) { in TEST_F() argument
45 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(1), &out)); in TEST_F()
47 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(-1), &out)); in TEST_F()
50 FormatArgImplFriend::ToInt(FormatArgImpl(static_cast<char>(64)), &out)); in TEST_F()
52 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
55 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
61 EXPECT_TRUE(FormatArgImplFriend::ToInt( in TEST_F()
67 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(false), &out)); in TEST_F()
69 EXPECT_TRUE(FormatArgImplFriend::ToInt(FormatArgImpl(true), &out)); in TEST_F()
71 EXPECT_FALSE(FormatArgImplFriend::ToInt(FormatArgImpl(2.2), &out)); in TEST_F()
[all …]
Darg.h284 static bool ToInt(Arg arg, int* out) {
446 static bool ToInt(Data arg, int* out, std::true_type /* is_integral */,
453 static bool ToInt(Data arg, int* out, std::false_type,
461 static bool ToInt(Data, int*, std::false_type, std::false_type) {
470 return ToInt<T>(arg, static_cast<int*>(out), std::is_integral<T>(),
/third_party/node/deps/v8/src/compiler/backend/
Djump-threading.cc26 if (result[num.ToInt()] == unvisited()) { in PushIfUnvisited()
28 result[num.ToInt()] = onstack(); in PushIfUnvisited()
33 RpoNumber to_to = result[to.ToInt()]; in Forward()
36 TRACE(" xx %d\n", from.ToInt()); in Forward()
37 result[from.ToInt()] = from; in Forward()
39 TRACE(" fw %d -> %d (recurse)\n", from.ToInt(), to.ToInt()); in Forward()
41 result[to.ToInt()] = onstack(); in Forward()
44 TRACE(" fw %d -> %d (cycle)\n", from.ToInt(), to.ToInt()); in Forward()
45 result[from.ToInt()] = to; // break the cycle. in Forward()
48 TRACE(" fw %d -> %d (forward)\n", from.ToInt(), to.ToInt()); in Forward()
[all …]
Dspill-placer.cc291 for (int i = last_block_.ToInt(); i >= first_block_.ToInt(); --i) { in FirstBackwardPass()
337 for (int i = first_block_.ToInt(); i <= last_block_.ToInt(); ++i) { in ForwardPass()
394 for (int i = last_block_.ToInt(); i >= first_block_.ToInt(); --i) { in SecondBackwardPass()
Dmid-tier-register-allocator.cc156 return block_states_[rpo_number.ToInt()]; in block_state()
184 int ToInt() const { in ToInt() function in v8::internal::compiler::RegisterIndex
192 return 1ull << ToInt(); in ToBit()
195 return 3ull << ToInt(); in ToBit()
260 blocks_covered_.Add(block.ToInt()); in AddBlock()
432 int block_rpo = block->rpo_number().ToInt(); in IsLiveAt()
1222 return *register_data_[reg.ToInt()]; in reg_data()
1241 register_data_[reg.ToInt()] = nullptr; in ResetDataFor()
1248 DCHECK_LT(reg.ToInt(), register_data_.size()); in HasRegisterData()
1249 return register_data_[reg.ToInt()] != nullptr; in HasRegisterData()
[all …]
/third_party/node/deps/v8/src/builtins/
Dbuiltins.cc95 ToInt(builtin)); in GetContinuationBytecodeOffset()
100 id.ToInt() - BytecodeOffset::kFirstBuiltinContinuationId); in GetBuiltinFromBytecodeOffset()
171 Address* location = &isolate_->builtin_table()[Builtins::ToInt(builtin)]; in builtin_slot()
178 &isolate_->builtin_tier0_table()[Builtins::ToInt(builtin)]; in builtin_tier0_slot()
189 isolate_->builtin_table()[Builtins::ToInt(builtin)] = code.ptr(); in set_code()
193 Address ptr = isolate_->builtin_table()[Builtins::ToInt(builtin)]; in code()
198 Address* location = &isolate_->builtin_table()[Builtins::ToInt(builtin)]; in code_handle()
205 return builtin_metadata[ToInt(builtin)].data.parameter_count; in GetStackParameterCount()
247 int index = ToInt(builtin); in name()
285 return builtin_metadata[ToInt(builtin)].data.cpp_entry; in CppEntryOf()
[all …]
/third_party/node/deps/v8/src/temporal/
Dtemporal-parser.cc54 inline constexpr int32_t ToInt(base::uc32 c) { return c - '0'; } in ToInt() function
94 *out = ToInt(str[s]) * 10 + ToInt(str[s + 1]); in ScanHour()
109 *out = ToInt(str[s]) * 10 + ToInt(str[s + 1]); in ScanMinuteSecond()
166 *out = ToInt(str[cur++]); in ScanFractionalPart()
168 *out = 10 * (*out) + ToInt(str[cur++]); in ScanFractionalPart()
283 *out = sign * (ToInt(str[s + 1]) * 100000 + ToInt(str[s + 2]) * 10000 + in ScanDateExtendedYear()
284 ToInt(str[s + 3]) * 1000 + ToInt(str[s + 4]) * 100 + in ScanDateExtendedYear()
285 ToInt(str[s + 5]) * 10 + ToInt(str[s + 6])); in ScanDateExtendedYear()
297 *out = ToInt(str[s]) * 1000 + ToInt(str[s + 1]) * 100 + in ScanDateFourDigitYear()
298 ToInt(str[s + 2]) * 10 + ToInt(str[s + 3]); in ScanDateFourDigitYear()
[all …]
/third_party/node/deps/v8/src/compiler/
Dscheduler.cc414 TRACE("Create block id:%d for #%d:%s\n", block->id().ToInt(), node->id(), in BuildBlockForNode()
606 node->op()->mnemonic(), block->id().ToInt()); in TraceConnect()
609 node->op()->mnemonic(), block->id().ToInt(), succ->id().ToInt()); in TraceConnect()
902 if (loop != nullptr && !loop->members->Contains(succ->id().ToInt())) { in ComputeAndInsertSpecialRPO()
976 current->id().ToInt(), loop_depth); in ComputeAndInsertSpecialRPO()
982 TRACE("id:%d is not in a loop (depth == %d)\n", current->id().ToInt(), in ComputeAndInsertSpecialRPO()
986 current->id().ToInt(), current->loop_header()->id().ToInt(), in ComputeAndInsertSpecialRPO()
1020 if (!loops_[loop_num].members->Contains(member->id().ToInt())) { in ComputeLoopInfo()
1021 loops_[loop_num].members->Add(member->id().ToInt()); in ComputeLoopInfo()
1033 if (!loops_[loop_num].members->Contains(pred->id().ToInt())) { in ComputeLoopInfo()
[all …]
/third_party/node/deps/v8/src/compiler/backend/arm/
Dunwinding-info-writer-arm.cc18 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
21 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
38 int successor_index = successor.ToInt(); in EndInstructionBlock()
/third_party/node/deps/v8/src/compiler/backend/s390/
Dunwinding-info-writer-s390.cc17 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
20 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
38 int successor_index = successor.ToInt(); in EndInstructionBlock()
/third_party/node/deps/v8/src/compiler/backend/ppc/
Dunwinding-info-writer-ppc.cc17 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
20 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
39 int successor_index = successor.ToInt(); in EndInstructionBlock()
/third_party/node/deps/v8/src/compiler/backend/arm64/
Dunwinding-info-writer-arm64.cc21 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
24 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
42 int successor_index = successor.ToInt(); in EndInstructionBlock()
/third_party/node/deps/v8/src/compiler/backend/x64/
Dunwinding-info-writer-x64.cc18 DCHECK_LT(block->rpo_number().ToInt(), in BeginInstructionBlock()
21 block_initial_states_[block->rpo_number().ToInt()]; in BeginInstructionBlock()
43 int successor_index = successor.ToInt(); in EndInstructionBlock()
/third_party/node/deps/v8/src/deoptimizer/
Dtranslation-array.cc113 Add(bytecode_offset.ToInt()); in BeginBuiltinContinuationFrame()
125 Add(bytecode_offset.ToInt()); in BeginJSToWasmBuiltinContinuationFrame()
137 Add(bytecode_offset.ToInt()); in BeginJavaScriptBuiltinContinuationFrame()
148 Add(bytecode_offset.ToInt()); in BeginJavaScriptBuiltinContinuationWithCatchFrame()
158 Add(bytecode_offset.ToInt()); in BeginConstructStubFrame()
178 Add(bytecode_offset.ToInt()); in BeginInterpretedFrame()
/third_party/node/deps/v8/src/objects/
Dregexp-match-info-inl.h24 return Smi::ToInt(obj); in TQ_OBJECT_CONSTRUCTORS_IMPL()
55 return Smi::ToInt(obj); in Capture()
Dcompilation-cache-table-inl.h76 int language_unchecked = Smi::ToInt(val.get(2)); in HashForObject()
79 int position = Smi::ToInt(val.get(3)); in HashForObject()
Djs-regexp-inl.h43 return Smi::ToInt(DataAt(kIrregexpCaptureCountIndex)); in capture_count()
51 return Smi::ToInt(DataAt(kIrregexpMaxRegisterCountIndex)); in max_register_count()
Dfeedback-vector.cc44 if (slot_count() <= slot.ToInt()) return false; in HasTypeProfileSlot()
68 int index = VectorICComputer::index(0, slot.ToInt()); in GetKind()
70 return VectorICComputer::decode(data, slot.ToInt()); in GetKind()
74 int index = VectorICComputer::index(0, slot.ToInt()); in SetKind()
76 int new_data = VectorICComputer::encode(data, slot.ToInt(), kind); in SetKind()
204 return slot.ToInt() < slot_count() && in HasTypeProfileSlot()
501 CHECK_GT(vector.length(), start_slot.WithOffset(1).ToInt()); in SetFeedbackPair()
961 uint32_t value = static_cast<uint32_t>(Smi::ToInt(call_count)); in GetCallCount()
970 uint32_t count = static_cast<uint32_t>(Smi::ToInt(call_count)); in SetSpeculationMode()
984 uint32_t value = static_cast<uint32_t>(Smi::ToInt(call_count)); in GetSpeculationMode()
[all …]
Dfeedback-vector-inl.h204 const int i = slot.ToInt(); in SynchronizedGet()
215 const int i = slot.ToInt(); in SynchronizedSet()
343 return next_slot_.ToInt() < metadata().slot_count(); in HasNext()
350 next_slot_ = FeedbackSlot(next_slot_.ToInt() + entry_size()); in Next()
Ddictionary-inl.h92 return Smi::ToInt(this->get(kNextEnumerationIndexIndex)); in next_enumeration_index()
104 int hash = Smi::ToInt(hash_obj); in Hash()
132 return 0 != (Smi::ToInt(max_index_object) & kRequiresSlowElementsMask); in requires_slow_elements()
139 uint32_t value = static_cast<uint32_t>(Smi::ToInt(max_index_object)); in max_number_key()
Djs-regexp.cc111 return static_cast<uint32_t>(Smi::ToInt(DataAt(kIrregexpBacktrackLimit))); in backtrack_limit()
207 return Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)) == 0; in MarkedForTierUp()
213 int tier_up_ticks = Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)) + 1; in ResetLastTierUpTick()
221 int tier_up_ticks = Smi::ToInt(DataAt(kIrregexpTicksUntilTierUpIndex)); in TierUpTick()
Dordered-hash-table.h97 return Smi::ToInt(get(NumberOfElementsIndex())); in NumberOfElements()
101 return Smi::ToInt(get(NumberOfDeletedElementsIndex())); in NumberOfDeletedElements()
113 return Smi::ToInt(get(NumberOfBucketsIndex())); in NumberOfBuckets()
137 return Smi::ToInt(get(RemovedHolesIndex() + index)); in RemovedIndexAt()
222 int entry_int = Smi::ToInt(entry); in HashToEntryRaw()
230 int next_entry_int = Smi::ToInt(next_entry); in NextChainEntryRaw()
/third_party/node/deps/v8/src/strings/
Dstring-builder.cc23 int encoded_slice = Smi::ToInt(element); in StringBuilderConcatHelper()
34 pos = Smi::ToInt(obj); in StringBuilderConcatHelper()
66 int smi_value = Smi::ToInt(elt); in StringBuilderConcatLength()
81 pos = Smi::ToInt(next_smi); in StringBuilderConcatLength()
/third_party/node/deps/v8/src/diagnostics/
Dobjects-debug.cc753 int mappedIndex = Smi::ToInt(mapped); in SloppyArgumentsElementsVerify()
801 int month = Smi::ToInt(this->month()); in JSDateVerify()
805 int day = Smi::ToInt(this->day()); in JSDateVerify()
809 int hour = Smi::ToInt(this->hour()); in JSDateVerify()
813 int min = Smi::ToInt(this->min()); in JSDateVerify()
817 int sec = Smi::ToInt(this->sec()); in JSDateVerify()
821 int weekday = Smi::ToInt(this->weekday()); in JSDateVerify()
825 CHECK(Smi::ToInt(cache_stamp()) <= in JSDateVerify()
826 Smi::ToInt(isolate->date_cache()->stamp())); in JSDateVerify()
1015 int value = Smi::ToInt(number); in OddballVerify()
[all …]
/third_party/node/deps/v8/src/codegen/
Dpending-optimization-table.cc70 FunctionStatusFlags status(Smi::ToInt(Handle<Tuple2>::cast(entry)->value2())); in IsHeuristicOptimizationAllowed()
98 FunctionStatusFlags status(Smi::ToInt(Handle<Tuple2>::cast(entry)->value2())); in MarkedForOptimization()

123456