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/. */
7 #ifndef debugger_DebuggerMemory_h
8 #define debugger_DebuggerMemory_h
14 #include "vm/JSContext.h"
15 #include "vm/JSObject.h"
19 class DebuggerMemory
: public NativeObject
{
20 friend class Debugger
;
22 static DebuggerMemory
* checkThis(JSContext
* cx
, CallArgs
& args
);
24 Debugger
* getDebugger();
27 static DebuggerMemory
* create(JSContext
* cx
, Debugger
* dbg
);
29 enum { JSSLOT_DEBUGGER
, JSSLOT_COUNT
};
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
[];
41 #endif /* debugger_DebuggerMemory_h */