DebuggerMemory.h (1052B)
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 "js/Class.h" 11 #include "js/Value.h" 12 #include "vm/JSContext.h" 13 #include "vm/JSObject.h" 14 15 namespace js { 16 17 class DebuggerMemory : public NativeObject { 18 friend class Debugger; 19 20 static DebuggerMemory* checkThis(JSContext* cx, CallArgs& args); 21 22 Debugger* getDebugger(); 23 24 public: 25 static DebuggerMemory* create(JSContext* cx, Debugger* dbg); 26 27 enum { JSSLOT_DEBUGGER, JSSLOT_COUNT }; 28 29 static bool construct(JSContext* cx, unsigned argc, Value* vp); 30 static const JSClass class_; 31 static const JSPropertySpec properties[]; 32 static const JSFunctionSpec methods[]; 33 34 struct CallData; 35 }; 36 37 } /* namespace js */ 38 39 #endif /* debugger_DebuggerMemory_h */