// Copyright 2015 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. #include "src/debug/debug-frames.h" #include "src/accessors.h" #include "src/frames-inl.h" #include "src/wasm/wasm-interpreter.h" #include "src/wasm/wasm-objects-inl.h" namespace v8 { namespace internal { FrameInspector::FrameInspector(StandardFrame* frame, int inlined_frame_index, Isolate* isolate) : frame_(frame), inlined_frame_index_(inlined_frame_index), isolate_(isolate) { // Extract the relevant information from the frame summary and discard it. FrameSummary summary = FrameSummary::Get(frame, inlined_frame_index); is_constructor_ = summary.is_constructor(); source_position_ = summary.SourcePosition(); function_name_ = summary.FunctionName(); script_ = Handle