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 ===
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 ===
2003-01-14 Darin Adler <darin@apple.com>
......
......@@ -36,7 +36,7 @@ using namespace KJS;
const ClassInfo NumberInstanceImp::info = {"Number", 0, 0, 0};
NumberInstanceImp::NumberInstanceImp(const Object &proto)
NumberInstanceImp::NumberInstanceImp(ObjectImp *proto)
: ObjectImp(proto)
{
}
......@@ -47,7 +47,7 @@ NumberInstanceImp::NumberInstanceImp(const Object &proto)
NumberPrototypeImp::NumberPrototypeImp(ExecState *exec,
ObjectPrototypeImp *objProto,
FunctionPrototypeImp *funcProto)
: NumberInstanceImp(Object(objProto))
: NumberInstanceImp(objProto)
{
Value protect(this);
setInternalValue(NumberImp::zero());
......@@ -162,7 +162,7 @@ bool NumberObjectImp::implementsConstruct() const
// ECMA 15.7.1
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));
Number n;
......
......@@ -29,7 +29,7 @@ namespace KJS {
class NumberInstanceImp : public ObjectImp {
public:
NumberInstanceImp(const Object &proto);
NumberInstanceImp(ObjectImp *proto);
virtual const ClassInfo *classInfo() const { return &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