Changeset 29588 in webkit for trunk/JavaScriptCore/kjs/object_object.h
- Timestamp:
- Jan 17, 2008, 11:27:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object_object.h
r21889 r29588 1 // -*- c-basic-offset: 2 -*-2 1 /* 3 * This file is part of the KDE libraries4 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 4 * 6 5 * This library is free software; you can redistribute it and/or … … 27 26 namespace KJS { 28 27 29 class FunctionPrototype; 28 /** 29 * @internal 30 * 31 * The initial value of Object.prototype (and thus all objects created 32 * with the Object constructor 33 */ 34 class ObjectPrototype : public JSObject { 35 public: 36 ObjectPrototype(ExecState*, FunctionPrototype*); 37 }; 30 38 31 /** 32 * @internal 33 * 34 * The initial value of Object.prototype (and thus all objects created 35 * with the Object constructor 36 */ 37 class ObjectPrototype : public JSObject { 38 public: 39 ObjectPrototype(ExecState *exec, FunctionPrototype *funcProto); 40 }; 39 /** 40 * @internal 41 * 42 * The initial value of the the global variable's "Object" property 43 */ 44 class ObjectObjectImp : public InternalFunctionImp { 45 public: 46 ObjectObjectImp(ExecState*, ObjectPrototype*, FunctionPrototype*); 41 47 42 /** 43 * @internal 44 * 45 * Class to implement all methods that are properties of the 46 * Object.prototype object 47 */ 48 class ObjectProtoFunc : public InternalFunctionImp { 49 public: 50 ObjectProtoFunc(ExecState* exec, FunctionPrototype* funcProto, int i, int len, const Identifier&); 48 virtual bool implementsConstruct() const; 49 virtual JSObject* construct(ExecState*, const List&); 50 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&); 51 }; 51 52 52 virtual JSValue *callAsFunction(ExecState *, JSObject *, const List &args); 53 } // namespace KJS 53 54 54 enum { ToString, ToLocaleString, ValueOf, HasOwnProperty, IsPrototypeOf, PropertyIsEnumerable, 55 DefineGetter, DefineSetter, LookupGetter, LookupSetter }; 56 private: 57 int id; 58 }; 59 60 /** 61 * @internal 62 * 63 * The initial value of the the global variable's "Object" property 64 */ 65 class ObjectObjectImp : public InternalFunctionImp { 66 public: 67 68 ObjectObjectImp(ExecState *exec, 69 ObjectPrototype *objProto, 70 FunctionPrototype *funcProto); 71 72 virtual bool implementsConstruct() const; 73 virtual JSObject *construct(ExecState *, const List &args); 74 virtual JSValue *callAsFunction(ExecState *, JSObject *, const List &args); 75 }; 76 77 } // namespace 78 79 #endif 55 #endif // _OBJECT_OBJECT_H_
Note:
See TracChangeset
for help on using the changeset viewer.