%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_DEBUG_DEBUG_PROPERTY_ITERATOR_H_ #define V8_DEBUG_DEBUG_PROPERTY_ITERATOR_H_ #include "src/debug/debug-interface.h" #include "src/execution/isolate.h" #include "src/handles/handles.h" #include "src/objects/prototype.h" #include "include/v8.h" namespace v8 { namespace internal { class JSReceiver; class DebugPropertyIterator final : public debug::PropertyIterator { public: V8_WARN_UNUSED_RESULT static std::unique_ptr<DebugPropertyIterator> Create( Isolate* isolate, Handle<JSReceiver> receiver); ~DebugPropertyIterator() override = default; DebugPropertyIterator(const DebugPropertyIterator&) = delete; DebugPropertyIterator& operator=(const DebugPropertyIterator&) = delete; bool Done() const override; V8_WARN_UNUSED_RESULT Maybe<bool> Advance() override; v8::Local<v8::Name> name() const override; bool is_native_accessor() override; bool has_native_getter() override; bool has_native_setter() override; v8::Maybe<v8::PropertyAttribute> attributes() override; v8::Maybe<v8::debug::PropertyDescriptor> descriptor() override; bool is_own() override; bool is_array_index() override; private: DebugPropertyIterator(Isolate* isolate, Handle<JSReceiver> receiver); V8_WARN_UNUSED_RESULT bool FillKeysForCurrentPrototypeAndStage(); bool should_move_to_next_stage() const; void CalculateNativeAccessorFlags(); Handle<Name> raw_name() const; void AdvanceToPrototype(); V8_WARN_UNUSED_RESULT bool AdvanceInternal(); Isolate* isolate_; PrototypeIterator prototype_iterator_; enum Stage { kExoticIndices = 0, kEnumerableStrings = 1, kAllProperties = 2 }; Stage stage_ = kExoticIndices; size_t current_key_index_ = 0; Handle<FixedArray> keys_; size_t exotic_length_ = 0; bool calculated_native_accessor_flags_ = false; int native_accessor_flags_ = 0; bool is_own_ = true; bool is_done_ = false; }; } // namespace internal } // namespace v8 #endif // V8_DEBUG_DEBUG_PROPERTY_ITERATOR_H_