js/src/vm/DebuggerMemory.cpp

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:94a3ce792c86
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * vim: set ts=8 sts=4 et sw=4 tw=99:
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 #include "vm/DebuggerMemory.h"
8
9 namespace js {
10
11 /* static */ bool
12 DebuggerMemory::construct(JSContext *cx, unsigned argc, Value *vp)
13 {
14 JS_ReportErrorNumber(cx, js_GetErrorMessage, nullptr, JSMSG_NO_CONSTRUCTOR,
15 "Debugger.Memory");
16 return false;
17 }
18
19 /* static */ const Class DebuggerMemory::class_ = {
20 "Memory",
21 JSCLASS_HAS_PRIVATE | JSCLASS_IMPLEMENTS_BARRIERS |
22 JSCLASS_HAS_RESERVED_SLOTS(JSSLOT_DEBUGGER_MEMORY_COUNT),
23
24 JS_PropertyStub, // addProperty
25 JS_DeletePropertyStub, // delProperty
26 JS_PropertyStub, // getProperty
27 JS_StrictPropertyStub, // setProperty
28 JS_EnumerateStub, // enumerate
29 JS_ResolveStub, // resolve
30 JS_ConvertStub, // convert
31
32 nullptr, // finalize
33 nullptr, // call
34 nullptr, // hasInstance
35 nullptr, // construct
36 nullptr // trace
37 };
38
39 /* static */ const JSPropertySpec DebuggerMemory::properties[] = {
40 JS_PS_END
41 };
42
43 /* static */ const JSFunctionSpec DebuggerMemory::methods[] = {
44 JS_FS_END
45 };
46
47 } /* namespace js */

mercurial