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/function_object.cpp

    r12911 r12921  
    5353}
    5454
    55 bool FunctionPrototype::implementsCall() const
    56 {
    57   return true;
    58 }
    59 
    6055// ECMA 15.3.4
    6156JSValue *FunctionPrototype::callAsFunction(ExecState */*exec*/, JSObject */*thisObj*/, const List &/*args*/)
     
    7166{
    7267  putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
    73 }
    74 
    75 
    76 bool FunctionProtoFunc::implementsCall() const
    77 {
    78   return true;
    7968}
    8069
     
    267256}
    268257
    269 
    270 bool FunctionObjectImp::implementsCall() const
    271 {
    272   return true;
    273 }
    274 
    275258// ECMA 15.3.1 The Function Constructor Called as a Function
    276259JSValue *FunctionObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
     
    278261  return construct(exec,args);
    279262}
    280 
Note: See TracChangeset for help on using the changeset viewer.