21 if (!IsJSFunction(*
receiver))
return nullptr;
25 CHECK(function->has_context());
30std::unique_ptr<debug::ScopeIterator>
35 DCHECK(IsJSGeneratorObject(*generator));
43DebugScopeIterator::DebugScopeIterator(
Isolate* isolate,
46 isolate, frame_inspector,
53 : iterator_(isolate, function) {
59 : iterator_(isolate, generator) {
87 return Utils::ToLocal(value);
98 return Utils::ToLocal(name);
static v8::internal::Handle< To > OpenHandle(v8::Local< From > handle)
static v8::internal::DirectHandle< To > OpenDirectHandle(v8::Local< From > handle)
static std::unique_ptr< ScopeIterator > CreateForFunction(v8::Isolate *isolate, v8::Local< v8::Function > func)
static std::unique_ptr< ScopeIterator > CreateForGeneratorObject(v8::Isolate *isolate, v8::Local< v8::Object > generator)
debug::Location GetStartLocation() override
DebugScopeIterator(Isolate *isolate, FrameInspector *frame_inspector)
debug::Location GetEndLocation() override
v8::Local< v8::Object > GetObject() override
bool SetVariableValue(v8::Local< v8::String > name, v8::Local< v8::Value > value) override
v8::Local< v8::Value > GetFunctionDebugName() override
ScopeType GetType() override
v8::internal::ScopeIterator iterator_
int GetScriptId() override
bool HasLocationInfo() override
bool DeclaresLocals(Mode mode) const
Handle< JSObject > ScopeObject(Mode mode)
bool SetVariableValue(Handle< String > variable_name, DirectHandle< Object > new_value)
DirectHandle< Object > GetFunctionDebugName() const
DirectHandle< Script > GetScript() const
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)
v8::Local< T > ToApiHandle(v8::internal::DirectHandle< v8::internal::Object > obj)
#define DCHECK(condition)