[inspector] Prepare to simpler async stepping
Add should_pause to V8StackTraceId in preparation for async stepping simplification [1]. [1] https://chromium-review.googlesource.com/c/v8/v8/+/1783724 BUG=chromium:1000475 TBR=yangguo@chromium.org Change-Id: I3a90d33322c83f624a3d28c18ebdfff80b2cd904 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1799453 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#63696}
This commit is contained in:
parent
8d4fbc33f4
commit
aaf4714310
@ -229,9 +229,12 @@ class V8_EXPORT V8InspectorClient {
|
||||
struct V8_EXPORT V8StackTraceId {
|
||||
uintptr_t id;
|
||||
std::pair<int64_t, int64_t> debugger_id;
|
||||
bool should_pause = false;
|
||||
|
||||
V8StackTraceId();
|
||||
V8StackTraceId(uintptr_t id, const std::pair<int64_t, int64_t> debugger_id);
|
||||
V8StackTraceId(uintptr_t id, const std::pair<int64_t, int64_t> debugger_id,
|
||||
bool should_pause);
|
||||
~V8StackTraceId() = default;
|
||||
|
||||
bool IsInvalid() const;
|
||||
|
@ -115,6 +115,11 @@ V8StackTraceId::V8StackTraceId(uintptr_t id,
|
||||
const std::pair<int64_t, int64_t> debugger_id)
|
||||
: id(id), debugger_id(debugger_id) {}
|
||||
|
||||
V8StackTraceId::V8StackTraceId(uintptr_t id,
|
||||
const std::pair<int64_t, int64_t> debugger_id,
|
||||
bool should_pause)
|
||||
: id(id), debugger_id(debugger_id), should_pause(should_pause) {}
|
||||
|
||||
bool V8StackTraceId::IsInvalid() const { return !id; }
|
||||
|
||||
StackFrame::StackFrame(v8::Isolate* isolate, v8::Local<v8::StackFrame> v8Frame)
|
||||
|
Loading…
Reference in New Issue
Block a user