forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsrtDebugEventObject.h
More file actions
33 lines (28 loc) · 1.04 KB
/
JsrtDebugEventObject.h
File metadata and controls
33 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//---------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
//----------------------------------------------------------------------------
#pragma once
class JsrtDebugEventObject
{
public:
JsrtDebugEventObject(Js::ScriptContext *scriptContext);
~JsrtDebugEventObject();
Js::DynamicObject* GetEventDataObject();
private:
Js::DynamicObject* eventDataObject;
Js::ScriptContext *scriptContext;
};
class DebugDocumentManager
{
public:
DebugDocumentManager(JsrtDebug* debugObject);
~DebugDocumentManager();
void AddDocument(UINT bpId, Js::DebugDocument* debugDocument);
void ClearDebugDocument(Js::ScriptContext * scriptContext);
void RemoveBreakpoint(UINT breakpointId);
private:
JsrtDebug* debugObject;
typedef JsUtil::BaseDictionary<uint, Js::DebugDocument*, ArenaAllocator> BreakpointDebugDocumentDictionary;
BreakpointDebugDocumentDictionary* breakpointDebugDocumentDictionary;
BreakpointDebugDocumentDictionary* GetBreakpointDictionary();
};