Lines Matching defs:object
49 std::unique_ptr<TqObject> object)
50 : type_check_result(type_check_result), object(std::move(object)) {}
52 // How we discovered the object's type, or why we failed to do so.
56 // type for the object.
57 std::unique_ptr<TqObject> object;
60 // by |object|.
161 // If we can't read the Map pointer from the object, then we likely can't
187 // Create a basic result that says that the object is a HeapObject and we
200 if (result.object->IsSuperclassOf(hint_result.object.get())) {
211 if (result.object->IsSuperclassOf(guess_result.object.get())) {
219 // An object visitor that accumulates the first few characters of a string.
224 const TqString* object) {
226 object->Visit(&visitor);
257 void ReadStringCharacters(const TqString* object, uintptr_t data_address) {
258 int32_t length = GetOrFinish(object->GetLengthValue(accessor_));
268 void ReadSeqString(const TString* object) {
269 ReadStringCharacters<TChar>(object, object->GetCharsAddress());
272 void VisitSeqOneByteString(const TqSeqOneByteString* object) override {
273 ReadSeqString<char>(object);
276 void VisitSeqTwoByteString(const TqSeqTwoByteString* object) override {
277 ReadSeqString<char16_t>(object);
280 void VisitConsString(const TqConsString* object) override {
281 uintptr_t first_address = GetOrFinish(object->GetFirstValue(accessor_));
285 .object;
290 uintptr_t second = GetOrFinish(object->GetSecondValue(accessor_));
294 .object->Visit(this);
297 void VisitSlicedString(const TqSlicedString* object) override {
298 uintptr_t parent = GetOrFinish(object->GetParentValue(accessor_));
299 int32_t length = GetOrFinish(object->GetLengthValue(accessor_));
301 GetOrFinish(object->GetOffsetValue(accessor_)));
306 .object->Visit(this);
309 void VisitThinString(const TqThinString* object) override {
310 uintptr_t actual = GetOrFinish(object->GetActualValue(accessor_));
313 .object->Visit(this);
316 bool IsExternalStringCached(const TqExternalString* object) {
319 Value<uintptr_t> map_ptr = object->GetMapValue(accessor_);
345 void ReadExternalString(const TqExternalString* object) {
349 if (IsExternalStringCached(object)) {
351 GetOrFinish(object->GetResourceDataValue(accessor_));
361 ReadStringCharacters<TChar>(object, data_address);
371 const TqExternalOneByteString* object) override {
372 ReadExternalString<char>(object);
376 const TqExternalTwoByteString* object) override {
377 ReadExternalString<char16_t>(object);
380 void VisitObject(const TqObject* object) override {
381 // If we fail to find a specific type for a sub-object within a cons string,
461 // An object visitor that supplies extra information for some types.
464 // Returns a descriptive string and a list of properties for the given object.
466 // the Torque-generated data about the object.
468 Visit(const TqObject* object, d::MemoryAccessor accessor,
471 object->Visit(&visitor);
475 void VisitString(const TqString* object) override {
476 auto str = ReadStringVisitor::Visit(accessor_, heap_addresses_, object);
482 void VisitExternalString(const TqExternalString* object) override {
483 VisitString(object);
492 object->GetResourceAddress(), 1,
498 void VisitJSObject(const TqJSObject* object) override {
502 auto map_ptr = object->GetMapValue(accessor_);
509 // On JSObject instances, this value is the start of in-object properties.
515 // The total size of the object in memory. This may include over-allocated
526 "in-object properties", kObjectAsStoredInHeap, kObject,
527 object->GetMapAddress() + start_offset.value * i::kTaggedSize,
546 // A brief description of the object.
556 // Regardless of whether we can read the object itself, maybe we can find its
562 auto props = typed.object->GetProperties(accessor);
567 AddInfoVisitor::Visit(typed.object.get(), accessor, heap_addresses);
585 brief = AppendAddressAndType(brief, address, typed.object->GetName());
591 guessed_types.push_back(guess.object->GetName());
595 typed.type_check_result, brief, typed.object->GetName(), std::move(props),
777 _v8_debug_helper_GetObjectProperties(uintptr_t object,
781 return di::GetObjectProperties(object, memory_accessor, heap_addresses,