source: webkit/trunk/JavaScriptCore/kjs/SavedBuiltins.h@ 18517

Last change on this file since 18517 was 17437, checked in by darin, 19 years ago

Reviewed by John Sullivan.

  • kjs/SavedBuiltins.h: Added needed include.
  • wtf/OwnPtr.h: (WTF::OwnPtr::set): Fixed mistake in assertion.
File size: 2.7 KB
Line 
1// -*- c-basic-offset: 2 -*-
2/*
3 * This file is part of the KDE libraries
4 * Copyright (C) 1999-2001 Harri Porten ([email protected])
5 * Copyright (C) 2001 Peter Kelly ([email protected])
6 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22 *
23 */
24
25#ifndef SavedBuiltins_H
26#define SavedBuiltins_H
27
28#include "protect.h"
29
30namespace KJS {
31
32class SavedBuiltinsInternal;
33
34class SavedBuiltins {
35 friend class Interpreter;
36public:
37 SavedBuiltins();
38 ~SavedBuiltins();
39private:
40 SavedBuiltinsInternal *_internal;
41};
42
43class SavedBuiltinsInternal {
44 friend class Interpreter;
45private:
46 ProtectedPtr<JSObject> m_Object;
47 ProtectedPtr<JSObject> m_Function;
48 ProtectedPtr<JSObject> m_Array;
49 ProtectedPtr<JSObject> m_Boolean;
50 ProtectedPtr<JSObject> m_String;
51 ProtectedPtr<JSObject> m_Number;
52 ProtectedPtr<JSObject> m_Date;
53 ProtectedPtr<JSObject> m_RegExp;
54 ProtectedPtr<JSObject> m_Error;
55
56 ProtectedPtr<JSObject> m_ObjectPrototype;
57 ProtectedPtr<JSObject> m_FunctionPrototype;
58 ProtectedPtr<JSObject> m_ArrayPrototype;
59 ProtectedPtr<JSObject> m_BooleanPrototype;
60 ProtectedPtr<JSObject> m_StringPrototype;
61 ProtectedPtr<JSObject> m_NumberPrototype;
62 ProtectedPtr<JSObject> m_DatePrototype;
63 ProtectedPtr<JSObject> m_RegExpPrototype;
64 ProtectedPtr<JSObject> m_ErrorPrototype;
65
66 ProtectedPtr<JSObject> m_EvalError;
67 ProtectedPtr<JSObject> m_RangeError;
68 ProtectedPtr<JSObject> m_ReferenceError;
69 ProtectedPtr<JSObject> m_SyntaxError;
70 ProtectedPtr<JSObject> m_TypeError;
71 ProtectedPtr<JSObject> m_UriError;
72
73 ProtectedPtr<JSObject> m_EvalErrorPrototype;
74 ProtectedPtr<JSObject> m_RangeErrorPrototype;
75 ProtectedPtr<JSObject> m_ReferenceErrorPrototype;
76 ProtectedPtr<JSObject> m_SyntaxErrorPrototype;
77 ProtectedPtr<JSObject> m_TypeErrorPrototype;
78 ProtectedPtr<JSObject> m_UriErrorPrototype;
79};
80
81} // namespace
82
83#endif // SavedBuiltins_H
Note: See TracBrowser for help on using the repository browser.