Commit 389288b2 authored by darin's avatar darin

Reviewed by Maciej.

	- rolled in a change from the KJS folks

        * kjs/number_object.h: Use ObjectImp *, not Object, for the proto.
        * kjs/number_object.cpp:
        (NumberInstanceImp::NumberInstanceImp): Use ObjectImp *, not Object, for the proto.
        (NumberPrototypeImp::NumberPrototypeImp): Pass ObjectImp.
        (NumberObjectImp::construct): Use ObjectImp.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 361e7403
2003-01-16 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- rolled in a change from the KJS folks
* kjs/number_object.h: Use ObjectImp *, not Object, for the proto.
* kjs/number_object.cpp:
(NumberInstanceImp::NumberInstanceImp): Use ObjectImp *, not Object, for the proto.
(NumberPrototypeImp::NumberPrototypeImp): Pass ObjectImp.
(NumberObjectImp::construct): Use ObjectImp.
=== Safari-52 === === Safari-52 ===
2003-01-14 Darin Adler <darin@apple.com> 2003-01-14 Darin Adler <darin@apple.com>
......
2003-01-16 Darin Adler <darin@apple.com>
Reviewed by Maciej.
- rolled in a change from the KJS folks
* kjs/number_object.h: Use ObjectImp *, not Object, for the proto.
* kjs/number_object.cpp:
(NumberInstanceImp::NumberInstanceImp): Use ObjectImp *, not Object, for the proto.
(NumberPrototypeImp::NumberPrototypeImp): Pass ObjectImp.
(NumberObjectImp::construct): Use ObjectImp.
=== Safari-52 === === Safari-52 ===
2003-01-14 Darin Adler <darin@apple.com> 2003-01-14 Darin Adler <darin@apple.com>
......
...@@ -36,7 +36,7 @@ using namespace KJS; ...@@ -36,7 +36,7 @@ using namespace KJS;
const ClassInfo NumberInstanceImp::info = {"Number", 0, 0, 0}; const ClassInfo NumberInstanceImp::info = {"Number", 0, 0, 0};
NumberInstanceImp::NumberInstanceImp(const Object &proto) NumberInstanceImp::NumberInstanceImp(ObjectImp *proto)
: ObjectImp(proto) : ObjectImp(proto)
{ {
} }
...@@ -47,7 +47,7 @@ NumberInstanceImp::NumberInstanceImp(const Object &proto) ...@@ -47,7 +47,7 @@ NumberInstanceImp::NumberInstanceImp(const Object &proto)
NumberPrototypeImp::NumberPrototypeImp(ExecState *exec, NumberPrototypeImp::NumberPrototypeImp(ExecState *exec,
ObjectPrototypeImp *objProto, ObjectPrototypeImp *objProto,
FunctionPrototypeImp *funcProto) FunctionPrototypeImp *funcProto)
: NumberInstanceImp(Object(objProto)) : NumberInstanceImp(objProto)
{ {
Value protect(this); Value protect(this);
setInternalValue(NumberImp::zero()); setInternalValue(NumberImp::zero());
...@@ -162,7 +162,7 @@ bool NumberObjectImp::implementsConstruct() const ...@@ -162,7 +162,7 @@ bool NumberObjectImp::implementsConstruct() const
// ECMA 15.7.1 // ECMA 15.7.1
Object NumberObjectImp::construct(ExecState *exec, const List &args) Object NumberObjectImp::construct(ExecState *exec, const List &args)
{ {
Object proto = exec->interpreter()->builtinNumberPrototype(); Object Imp *proto = exec->interpreter()->builtinNumberPrototype().imp();
Object obj(new NumberInstanceImp(proto)); Object obj(new NumberInstanceImp(proto));
Number n; Number n;
......
...@@ -29,7 +29,7 @@ namespace KJS { ...@@ -29,7 +29,7 @@ namespace KJS {
class NumberInstanceImp : public ObjectImp { class NumberInstanceImp : public ObjectImp {
public: public:
NumberInstanceImp(const Object &proto); NumberInstanceImp(ObjectImp *proto);
virtual const ClassInfo *classInfo() const { return &info; } virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info; static const ClassInfo info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment