b8238f8977
All debugging-related information is now stored inside a dedicated object, which is only allocated if debugging support is needed. This is also where later a reference to the interpreter will be stored for executing to-be-debugged functions and providing stack inspection. R=titzer@chromium.org, ahaas@chromium.org BUG=chromium:613110 Review-Url: https://codereview.chromium.org/2050953003 Cr-Commit-Position: refs/heads/master@{#37055}
40 lines
1012 B
C++
40 lines
1012 B
C++
// Copyright 2016 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_WASM_DEBUG_H_
|
|
#define V8_WASM_DEBUG_H_
|
|
|
|
#include "src/handles.h"
|
|
#include "src/objects.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
namespace wasm {
|
|
|
|
class WasmDebugInfo : public FixedArray {
|
|
public:
|
|
static Handle<WasmDebugInfo> New(Handle<JSObject> wasm);
|
|
|
|
static bool IsDebugInfo(Object* object);
|
|
static WasmDebugInfo* cast(Object* object);
|
|
|
|
JSObject* wasm_object();
|
|
|
|
bool SetBreakPoint(int byte_offset);
|
|
|
|
// Disassemble the specified function from this module.
|
|
Handle<String> DisassembleFunction(int func_index);
|
|
|
|
// Get the offset table for the specified function.
|
|
// Returns an array with three entries per instruction: byte offset, line and
|
|
// column.
|
|
Handle<FixedArray> GetFunctionOffsetTable(int func_index);
|
|
};
|
|
|
|
} // namespace wasm
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_WASM_DEBUG_H_
|