/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
D | arg_test.cc | 43 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 …]
|
D | arg.h | 284 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/ |
D | jump-threading.cc | 26 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 …]
|
D | spill-placer.cc | 291 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()
|
D | mid-tier-register-allocator.cc | 156 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/ |
D | builtins.cc | 95 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/ |
D | temporal-parser.cc | 54 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/ |
D | scheduler.cc | 414 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/ |
D | unwinding-info-writer-arm.cc | 18 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/ |
D | unwinding-info-writer-s390.cc | 17 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/ |
D | unwinding-info-writer-ppc.cc | 17 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/ |
D | unwinding-info-writer-arm64.cc | 21 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/ |
D | unwinding-info-writer-x64.cc | 18 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/ |
D | translation-array.cc | 113 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/ |
D | regexp-match-info-inl.h | 24 return Smi::ToInt(obj); in TQ_OBJECT_CONSTRUCTORS_IMPL() 55 return Smi::ToInt(obj); in Capture()
|
D | compilation-cache-table-inl.h | 76 int language_unchecked = Smi::ToInt(val.get(2)); in HashForObject() 79 int position = Smi::ToInt(val.get(3)); in HashForObject()
|
D | js-regexp-inl.h | 43 return Smi::ToInt(DataAt(kIrregexpCaptureCountIndex)); in capture_count() 51 return Smi::ToInt(DataAt(kIrregexpMaxRegisterCountIndex)); in max_register_count()
|
D | feedback-vector.cc | 44 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 …]
|
D | feedback-vector-inl.h | 204 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()
|
D | dictionary-inl.h | 92 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()
|
D | js-regexp.cc | 111 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()
|
D | ordered-hash-table.h | 97 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/ |
D | string-builder.cc | 23 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/ |
D | objects-debug.cc | 753 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/ |
D | pending-optimization-table.cc | 70 FunctionStatusFlags status(Smi::ToInt(Handle<Tuple2>::cast(entry)->value2())); in IsHeuristicOptimizationAllowed() 98 FunctionStatusFlags status(Smi::ToInt(Handle<Tuple2>::cast(entry)->value2())); in MarkedForOptimization()
|