11#if V8_ENABLE_WEBASSEMBLY
21 inlined_frame_index_(inlined_frame_index),
32 if (summary.IsJavaScript()) {
33 function_ = summary.AsJavaScript().function();
36#if V8_ENABLE_WEBASSEMBLY
39 DCHECK(js_frame || frame->is_wasm());
78#if V8_ENABLE_WEBASSEMBLY
80#if V8_ENABLE_DRUMBRAKE
81 if (IsWasmInterpreter()) {
82 auto wasm_frame = WasmInterpreterEntryFrame::cast(
frame_);
90 auto wasm_frame = WasmFrame::cast(
frame_);
93 wasm_frame->function_index());
99#if V8_ENABLE_WEBASSEMBLY
100bool FrameInspector::IsWasm() {
return frame_->is_wasm(); }
101#if V8_ENABLE_DRUMBRAKE
102bool FrameInspector::IsWasmInterpreter() {
103 return frame_->is_wasm_interpreter_entry();
112 return info->ContextSlotIndex(parameter_name) != -1;
118 DCHECK(shared->HasBytecodeArray());
120 shared->HasDebugInfo(isolate));
130 if (function->shared() !=
shared_)
continue;
135 ?
shared_->GetDebugInfo(isolate)->DebugBytecodeArray(isolate)
136 :
shared_->GetBytecodeArray(isolate);
virtual Tagged< Object > context() const
Tagged< Object > GetExpression(int index) const
static DeoptimizedFrameInfo * DebuggerInspectableFrame(JavaScriptFrame *frame, int jsframe_index, Isolate *isolate)
Handle< Object > receiver_
Handle< Object > GetParameter(int index)
int inlined_frame_index() const
Handle< Object > GetExpression(int index)
bool ParameterIsShadowedByContextLocal(DirectHandle< ScopeInfo > info, DirectHandle< String > parameter_name)
FrameInspector(CommonFrame *frame, int inlined_frame_index, Isolate *isolate)
Handle< JSFunction > function_
JavaScriptFrame * javascript_frame()
DirectHandle< String > GetFunctionName()
std::unique_ptr< DeoptimizedFrameInfo > deoptimized_frame_
Handle< Object > GetContext()
static FrameSummary Get(const CommonFrame *frame, int index)
bool is_constructor() const
Handle< Object > script() const
Handle< Object > receiver() const
void EnsureSourcePositionsAvailable()
int SourcePosition() const
void PatchBytecodeArray(Tagged< BytecodeArray > bytecode_array)
static DirectHandle< String > GetDebugName(DirectHandle< JSFunction > function)
Tagged< JSFunction > function() const override
bool is_optimized() const
static JavaScriptFrame * cast(StackFrame *frame)
void VisitThread(Isolate *isolate, ThreadLocalTop *top) override
RedirectActiveFunctions(Isolate *isolate, Tagged< SharedFunctionInfo > shared, Mode mode)
Tagged< SharedFunctionInfo > shared_
bool is_javascript() const
bool is_interpreted() const
RecordWriteMode const mode_
Tagged< SharedFunctionInfo > shared_
V8_INLINE IndirectHandle< T > handle(Tagged< T > object, Isolate *isolate)
kWasmInternalFunctionIndirectPointerTag instance_data
DirectHandle< String > GetWasmFunctionDebugName(Isolate *isolate, DirectHandle< WasmTrustedInstanceData > instance_data, uint32_t func_index)
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)
#define DCHECK_NOT_NULL(val)
#define DCHECK_IMPLIES(v1, v2)
#define DCHECK(condition)