Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
* vim: set ts=8 sts=2 et sw=2 tw=80:
3
* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef debugger_DebuggerMemory_h
8
#define debugger_DebuggerMemory_h
9
10
#include "jsapi.h"
11
12
#include "js/Class.h"
13
#include "js/Value.h"
14
#include "vm/JSContext.h"
15
#include "vm/JSObject.h"
16
17
namespace js {
18
19
class DebuggerMemory : public NativeObject {
20
friend class Debugger;
21
22
static DebuggerMemory* checkThis(JSContext* cx, CallArgs& args);
23
24
Debugger* getDebugger();
25
26
public:
27
static DebuggerMemory* create(JSContext* cx, Debugger* dbg);
28
29
enum { JSSLOT_DEBUGGER, JSSLOT_COUNT };
30
31
static bool construct(JSContext* cx, unsigned argc, Value* vp);
32
static const JSClass class_;
33
static const JSPropertySpec properties[];
34
static const JSFunctionSpec methods[];
35
36
struct CallData;
37
};
38
39
} /* namespace js */
40
41
#endif /* debugger_DebuggerMemory_h */