Changeset 12921 in webkit for trunk/JavaScriptCore/kjs/internal.h


Ignore:
Timestamp:
Feb 21, 2006, 8:57:53 AM (19 years ago)
Author:
darin
Message:

Reviewed by John Sullivan.

  • kjs/internal.h: Made InternalFunctionImp::callAsFunction pure virtual so that we'll get a compile error if some derived class neglects to implement it.
  • kjs/function.cpp: (KJS::FunctionImp::FunctionImp): Remove unneeded initialization of param, which is an OwnPtr so it gets initialized by default.
  • bindings/runtime_method.cpp:
  • bindings/runtime_method.h:
  • kjs/array_object.cpp:
  • kjs/array_object.h:
  • kjs/bool_object.cpp:
  • kjs/bool_object.h:
  • kjs/date_object.cpp:
  • kjs/date_object.h:
  • kjs/error_object.cpp:
  • kjs/error_object.h:
  • kjs/function.cpp:
  • kjs/function.h:
  • kjs/function_object.cpp:
  • kjs/function_object.h:
  • kjs/math_object.cpp:
  • kjs/math_object.h:
  • kjs/number_object.cpp:
  • kjs/number_object.h:
  • kjs/object_object.cpp:
  • kjs/object_object.h:
  • kjs/regexp_object.cpp:
  • kjs/regexp_object.h:
  • kjs/string_object.cpp:
  • kjs/string_object.h: Removed many rendundant implementations of implementsCall from subclasses of InternalFunctionImp.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/internal.h

    r12918 r12921  
    344344  };
    345345
    346 
    347 
    348346  class InternalFunctionImp : public JSObject {
    349347  public:
     
    353351
    354352    virtual bool implementsCall() const;
    355 
     353    virtual JSValue* callAsFunction(ExecState*, JSObject* thisObjec, const List& args) = 0;
    356354    virtual bool implementsHasInstance() const;
    357     virtual bool hasInstance(ExecState *exec, JSValue *value);
    358 
    359     virtual const ClassInfo *classInfo() const { return &info; }
     355    virtual bool hasInstance(ExecState*, JSValue*);
     356
     357    virtual const ClassInfo* classInfo() const { return &info; }
    360358    static const ClassInfo info;
    361359    const Identifier& functionName() const { return m_name; }
     360
    362361  private:
    363362    Identifier m_name;
Note: See TracChangeset for help on using the changeset viewer.