| Index: src/debug/debug-interface.h
|
| diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
|
| index f76f4020fb3ca9c0d1b9000c289dde8b871b47dc..46cc1678fa87cc89bbe03e51104a254e39fdd432 100644
|
| --- a/src/debug/debug-interface.h
|
| +++ b/src/debug/debug-interface.h
|
| @@ -107,6 +107,19 @@ void SetOutOfMemoryCallback(Isolate* isolate, OutOfMemoryCallback callback,
|
| void* data);
|
|
|
| /**
|
| + * Native wrapper around v8::internal::BreakPoint object.
|
| + */
|
| +class BreakPoint {
|
| + public:
|
| + static Local<BreakPoint> New(Isolate* isolate, Local<String> condition,
|
| + Local<Value> data);
|
| + static MaybeLocal<BreakPoint> Cast(Isolate* isolate,
|
| + v8::Local<v8::Value> break_point);
|
| +
|
| + v8::Local<v8::Value> Data() const;
|
| +};
|
| +
|
| +/**
|
| * Native wrapper around v8::internal::Script object.
|
| */
|
| class Script {
|
| @@ -129,11 +142,15 @@ class Script {
|
| bool GetPossibleBreakpoints(const debug::Location& start,
|
| const debug::Location& end,
|
| std::vector<debug::Location>* locations) const;
|
| + debug::Location SetBreakPoint(const debug::Location& position,
|
| + Local<debug::BreakPoint> break_point) const;
|
|
|
| private:
|
| int GetSourcePosition(const debug::Location& location) const;
|
| };
|
|
|
| +void ClearBreakPoint(v8::Isolate* isolate, Local<BreakPoint> break_point);
|
| +
|
| // Specialization for wasm Scripts.
|
| class WasmScript : public Script {
|
| public:
|
|
|