source: webkit/trunk/JavaScriptCore/kjs/GetterSetter.cpp@ 35007

Last change on this file since 35007 was 35007, checked in by [email protected], 17 years ago

JavaScriptCore:

2008-07-04 Sam Weinig <[email protected]>

Rubber-stamped by Dan Bernstein.

Split Error and GetterSetter out of JSObject.h.

  • API/JSCallbackObjectFunctions.h:
  • GNUmakefile.am:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • JavaScriptCoreSources.bkl:
  • kjs/AllInOneFile.cpp:
  • kjs/ClassInfo.h: Copied from JavaScriptCore/kjs/JSObject.h.
  • kjs/Error.cpp: Copied from JavaScriptCore/kjs/JSObject.cpp.
  • kjs/Error.h: Copied from JavaScriptCore/kjs/JSObject.h.
  • kjs/GetterSetter.cpp:
  • kjs/GetterSetter.h: Copied from JavaScriptCore/kjs/JSObject.h.
  • kjs/JSObject.cpp:
  • kjs/JSObject.h:
  • kjs/nodes.h:

JavaScriptGlue:

2008-07-04 Sam Weinig <[email protected]>

Rubber-stamped by Dan Bernstein.

  • JSObject.h: Rename the header guard as it now conflicts with the JSObject in JavaScriptCore.

WebCore:

2008-07-04 Sam Weinig <[email protected]>

Rubber-stamped by Dan Bernstein.

Split Error and GetterSetter out of JSObject.h.

  • ForwardingHeaders/kjs/Error.h: Added.
  • bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  • bindings/js/JSClipboardCustom.cpp:
  • bindings/js/JSDOMWindowBase.cpp:
  • bindings/js/JSEventTargetBase.cpp:
  • bindings/js/JSHTMLDocumentCustom.cpp:
  • bindings/js/JSXMLHttpRequestCustom.cpp:
  • bindings/scripts/CodeGeneratorJS.pm:
  • bridge/NP_jsobject.cpp:
  • bridge/jni/jni_instance.cpp:
  • bridge/jni/jni_runtime.cpp:
  • bridge/objc/objc_instance.mm:
  • bridge/objc/objc_runtime.mm:
  • bridge/objc/objc_utility.h:
  • bridge/runtime_array.cpp:
  • bridge/runtime_method.cpp:
  • bridge/runtime_object.cpp:
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/*
2 * Copyright (C) 1999-2002 Harri Porten ([email protected])
3 * Copyright (C) 2001 Peter Kelly ([email protected])
4 * Copyright (C) 2004, 2007, 2008 Apple Inc. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23#include "config.h"
24#include "GetterSetter.h"
25
26#include <wtf/Assertions.h>
27
28namespace KJS {
29
30void GetterSetter::mark()
31{
32 JSCell::mark();
33
34 if (m_getter && !m_getter->marked())
35 m_getter->mark();
36 if (m_setter && !m_setter->marked())
37 m_setter->mark();
38}
39
40JSValue* GetterSetter::toPrimitive(ExecState*, JSType) const
41{
42 ASSERT_NOT_REACHED();
43 return jsNull();
44}
45
46bool GetterSetter::getPrimitiveNumber(ExecState*, double& number, JSValue*& value)
47{
48 ASSERT_NOT_REACHED();
49 number = 0;
50 value = 0;
51 return true;
52}
53
54bool GetterSetter::toBoolean(ExecState*) const
55{
56 ASSERT_NOT_REACHED();
57 return false;
58}
59
60double GetterSetter::toNumber(ExecState*) const
61{
62 ASSERT_NOT_REACHED();
63 return 0.0;
64}
65
66UString GetterSetter::toString(ExecState*) const
67{
68 ASSERT_NOT_REACHED();
69 return UString::null();
70}
71
72JSObject* GetterSetter::toObject(ExecState* exec) const
73{
74 ASSERT_NOT_REACHED();
75 return jsNull()->toObject(exec);
76}
77
78} // namespace KJS
Note: See TracBrowser for help on using the repository browser.