/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/debug/debug-stack-trace-iterator.h
55 строк
2 KB
Michaël Zasso
deps: update V8 to 11.3.244.4
31 мар 2023, 17:15
31 мар 2023, 17:15
f226350
Код
Авторство
О чём код?
// Copyright 2017 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_STACK_TRACE_ITERATOR_H_ #define V8_DEBUG_DEBUG_STACK_TRACE_ITERATOR_H_ #include <memory> #include "src/debug/debug-frames.h" #include "src/debug/debug-interface.h" #include "src/execution/frames.h" namespace v8 { namespace internal { class DebugStackTraceIterator final : public debug::StackTraceIterator { public: DebugStackTraceIterator(Isolate* isolate, int index); ~DebugStackTraceIterator() override; bool Done() const override; void Advance() override; int GetContextId() const override; v8::MaybeLocal<v8::Value> GetReceiver() const override; v8::Local<v8::Value> GetReturnValue() const override; v8::Local<v8::String> GetFunctionDebugName() const override; v8::Local<v8::debug::Script> GetScript() const override; debug::Location GetSourceLocation() const override; debug::Location GetFunctionLocation() const override; v8::Local<v8::Function> GetFunction() const override; std::unique_ptr<v8::debug::ScopeIterator> GetScopeIterator() const override; bool CanBeRestarted() const override; v8::MaybeLocal<v8::Value> Evaluate(v8::Local<v8::String> source, bool throw_on_side_effect) override; void PrepareRestart(); Handle<SharedFunctionInfo> GetSharedFunctionInfo() const; private: void UpdateInlineFrameIndexAndResumableFnOnStack(); Isolate* isolate_; DebuggableStackFrameIterator iterator_; std::unique_ptr<FrameInspector> frame_inspector_; int inlined_frame_index_; bool is_top_frame_; bool resumable_fn_on_stack_; }; } // namespace internal } // namespace v8 #endif // V8_DEBUG_DEBUG_STACK_TRACE_ITERATOR_H_