Commit 45d8ba10 authored by darin's avatar darin
Browse files

Reviewed by John Sullivan.

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=7404
          remove a bunch of extra implementsCall overrides

        * JavaScriptCore.xcodeproj/project.pbxproj: Sorted files.

        * 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.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a3380497
2006-02-21 Darin Adler <darin@apple.com>
Reviewed by John Sullivan.
- http://bugzilla.opendarwin.org/show_bug.cgi?id=7404
remove a bunch of extra implementsCall overrides
* JavaScriptCore.xcodeproj/project.pbxproj: Sorted files.
* 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.
2006-02-21 Darin Adler <darin@apple.com>
- fixed build
......
......@@ -527,104 +527,18 @@
0867D69AFE84028FC02AAC07 /* Frameworks */ = {
isa = PBXGroup;
children = (
9322A00306C341D3009067BB /* libicucore.dylib */,
51F0EC0705C86C9A00E6DF1B /* libobjc.dylib */,
51F0EB6105C86C6B00E6DF1B /* Foundation.framework */,
6560A4CF04B3B3E7008AE952 /* CoreFoundation.framework */,
6560A63D04B3B69F008AE952 /* CoreServices.framework */,
51F0EB6105C86C6B00E6DF1B /* Foundation.framework */,
9322A00306C341D3009067BB /* libicucore.dylib */,
51F0EC0705C86C9A00E6DF1B /* libobjc.dylib */,
);
name = Frameworks;
sourceTree = "<group>";
};
08FB77AEFE84172EC02AAC07 /* Classes */ = {
isa = PBXGroup;
children = (
65EA4C99092AF9E20093D800 /* JSLock.cpp */,
65EA4C9A092AF9E20093D800 /* JSLock.h */,
65621E6B089E859700760F35 /* property_slot.cpp */,
65621E6C089E859700760F35 /* property_slot.h */,
938772E5038BFE19008635CE /* array_instance.h */,
652C107E08DA7B1E0020887D /* protected_reference.h */,
F692A84E0255597D01FF60F7 /* array_object.h */,
F692A84D0255597D01FF60F7 /* array_object.cpp */,
F692A8500255597D01FF60F7 /* bool_object.cpp */,
704FD35305697E6D003DBED9 /* bool_object.h */,
F692A8530255597D01FF60F7 /* collector.h */,
F692A8520255597D01FF60F7 /* collector.cpp */,
F5BB2BC5030F772101FCFE1D /* completion.h */,
9373524E038DA8C2008635CE /* context.h */,
F692A8560255597D01FF60F7 /* date_object.h */,
F692A8550255597D01FF60F7 /* date_object.cpp */,
F692A8590255597D01FF60F7 /* debugger.h */,
F692A8580255597D01FF60F7 /* debugger.cpp */,
F692A85B0255597D01FF60F7 /* error_object.h */,
F692A85A0255597D01FF60F7 /* error_object.cpp */,
9364B273045B7D6C00A9CAC1 /* fpconst.cpp */,
F692A85D0255597D01FF60F7 /* function_object.h */,
F692A85C0255597D01FF60F7 /* function_object.cpp */,
F692A85F0255597D01FF60F7 /* function.h */,
F692A85E0255597D01FF60F7 /* function.cpp */,
933A349A038AE7C6008635CE /* identifier.h */,
933A349D038AE80F008635CE /* identifier.cpp */,
F692A8620255597D01FF60F7 /* internal.h */,
F692A8610255597D01FF60F7 /* internal.cpp */,
F692A8630255597D01FF60F7 /* interpreter.cpp */,
F692A8640255597D01FF60F7 /* interpreter.h */,
931C6CEF038EE8DE008635CE /* list.h */,
931C6CF0038EE8DE008635CE /* list.cpp */,
F692A8690255597D01FF60F7 /* lookup.h */,
F692A8680255597D01FF60F7 /* lookup.cpp */,
F692A86A0255597D01FF60F7 /* math_object.cpp */,
F692A86B0255597D01FF60F7 /* math_object.h */,
F692A86E0255597D01FF60F7 /* nodes.h */,
F692A86D0255597D01FF60F7 /* nodes.cpp */,
F5FFE656026B47A6018635CA /* nodes2string.cpp */,
F692A8710255597D01FF60F7 /* number_object.h */,
F692A8700255597D01FF60F7 /* number_object.cpp */,
F692A8740255597D01FF60F7 /* object_object.h */,
F692A8730255597D01FF60F7 /* object_object.cpp */,
F692A8760255597D01FF60F7 /* object.h */,
F692A8750255597D01FF60F7 /* object.cpp */,
F692A8780255597D01FF60F7 /* operations.h */,
F692A8770255597D01FF60F7 /* operations.cpp */,
F692A87A0255597D01FF60F7 /* property_map.h */,
F692A8790255597D01FF60F7 /* property_map.cpp */,
65C02FBB0637462A003E7EE6 /* protect.h */,
F5341390030CEEB1018BE7F3 /* reference.cpp */,
F5341391030CEEB1018BE7F3 /* reference.h */,
F54F0800030CD22001B5C2EB /* reference_list.h */,
F5341394030CF5F8018BE7F3 /* reference_list.cpp */,
F692A87B0255597D01FF60F7 /* regexp_object.cpp */,
F692A87C0255597D01FF60F7 /* regexp_object.h */,
F692A87D0255597D01FF60F7 /* regexp.cpp */,
F692A87E0255597D01FF60F7 /* regexp.h */,
9374D3A7038D9D74008635CE /* scope_chain.h */,
9374D3A8038D9D74008635CE /* scope_chain.cpp */,
F692A87F0255597D01FF60F7 /* string_object.cpp */,
F692A8800255597D01FF60F7 /* string_object.h */,
F692A8840255597D01FF60F7 /* types.h */,
F692A8860255597D01FF60F7 /* ustring.h */,
F692A8850255597D01FF60F7 /* ustring.cpp */,
14ABB36E099C076400E2A24F /* value.h */,
F692A8870255597D01FF60F7 /* value.cpp */,
1483B589099BC1950016E4F0 /* JSImmediate.h */,
14760863099C633800437128 /* JSImmediate.cpp */,
14ABB454099C2A0F00E2A24F /* JSType.h */,
);
name = Classes;
sourceTree = "<group>";
};
51856D950562EE9C008B9D83 /* bindings */ = {
isa = PBXGroup;
children = (
700DA117065984CE00747C0B /* WebScriptObjectPrivate.h */,
51863F6F065420E800E9E8DD /* WebScriptObject.h */,
51863FC406542D3100E9E8DD /* WebScriptObject.mm */,
51CA3B4F06CC2166005600E3 /* npapi.h */,
5199B1BD061B65BC0070C006 /* npruntime.cpp */,
5199B1BE061B65BC0070C006 /* npruntime.h */,
51DFF2C906CC36F6006F1ECC /* npruntime_priv.h */,
84ABF1DE070B628C00A3AC05 /* npruntime_impl.h */,
5182A53A06012C3000CBD2F2 /* c_class.cpp */,
5182A53B06012C3000CBD2F2 /* c_class.h */,
5182A45605FFCF4B00CBD2F2 /* c_instance.cpp */,
......@@ -633,8 +547,6 @@
5182A48C05FFFDC400CBD2F2 /* c_runtime.h */,
5182A4FB06010F8200CBD2F2 /* c_utility.cpp */,
5182A47005FFD45000CBD2F2 /* c_utility.h */,
51532CC705F7FD2C00EC779C /* NP_jsobject.cpp */,
517BE7F40610E39600221947 /* NP_jsobject.h */,
517D52DC056BF2F5003851BD /* jni_class.cpp */,
517D52DD056BF2F6003851BD /* jni_class.h */,
517D5347056BFB5D003851BD /* jni_instance.cpp */,
......@@ -646,6 +558,22 @@
511B0876056468BB0080E486 /* jni_runtime.h */,
51856D8F0562EE95008B9D83 /* jni_utility.cpp */,
51856D900562EE95008B9D83 /* jni_utility.h */,
51532CC705F7FD2C00EC779C /* NP_jsobject.cpp */,
517BE7F40610E39600221947 /* NP_jsobject.h */,
51CA3B4F06CC2166005600E3 /* npapi.h */,
5199B1BD061B65BC0070C006 /* npruntime.cpp */,
5199B1BE061B65BC0070C006 /* npruntime.h */,
84ABF1DE070B628C00A3AC05 /* npruntime_impl.h */,
51DFF2C906CC36F6006F1ECC /* npruntime_priv.h */,
518CF93605C72271003CF905 /* objc_class.h */,
518CF93705C72271003CF905 /* objc_class.mm */,
51F0EC1005C86F3500E6DF1B /* objc_header.h */,
51F0EB0005C85A6300E6DF1B /* objc_instance.h */,
51F0EB0505C85A9000E6DF1B /* objc_instance.mm */,
51C4974105C0A5D4006FBFF5 /* objc_runtime.h */,
518CF93805C72271003CF905 /* objc_runtime.mm */,
51F0EC9605C88DC700E6DF1B /* objc_utility.h */,
51F0EC9705C88DC700E6DF1B /* objc_utility.mm */,
704FD44505698F17003DBED9 /* runtime.cpp */,
511B0870056468730080E486 /* runtime.h */,
7073BE3C0581291E005EE2C9 /* runtime_array.cpp */,
......@@ -656,17 +584,11 @@
70B16A270569A10900DB756D /* runtime_object.h */,
5114F47B05E4426200D1BBBD /* runtime_root.cpp */,
5114F47C05E4426200D1BBBD /* runtime_root.h */,
518CF93605C72271003CF905 /* objc_class.h */,
518CF93705C72271003CF905 /* objc_class.mm */,
51F0EC1005C86F3500E6DF1B /* objc_header.h */,
51F0EB0005C85A6300E6DF1B /* objc_instance.h */,
51F0EB0505C85A9000E6DF1B /* objc_instance.mm */,
51C4974105C0A5D4006FBFF5 /* objc_runtime.h */,
518CF93805C72271003CF905 /* objc_runtime.mm */,
51F0EC9605C88DC700E6DF1B /* objc_utility.h */,
51F0EC9705C88DC700E6DF1B /* objc_utility.mm */,
8442A376074175C2000AE2ED /* softlinking.c */,
93E26CCE08B2921900F85226 /* softlinking.h */,
51863F6F065420E800E9E8DD /* WebScriptObject.h */,
51863FC406542D3100E9E8DD /* WebScriptObject.mm */,
700DA117065984CE00747C0B /* WebScriptObjectPrivate.h */,
);
name = bindings;
sourceTree = "<group>";
......@@ -674,32 +596,32 @@
65162EF108E6A21C007556CD /* kxmlcore */ = {
isa = PBXGroup;
children = (
9303F5690991190000AD71B8 /* Noncopyable.h */,
9303F567099118FA00AD71B8 /* OwnPtr.h */,
9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
6592C316098B7DE10003D4F6 /* Vector.h */,
6592C317098B7DE10003D4F6 /* VectorTraits.h */,
657EEBBF094E445E008C9C7B /* HashCountedSet.h */,
65C647B3093EF8D60022C380 /* RefPtr.h */,
6580F795094070560082C219 /* PassRefPtr.h */,
148A1626095D16BB00666D0D /* ListRefPtr.h */,
93AA4F770957251F0084B3A7 /* AlwaysInline.h */,
65E217B708E7EECC0023E5F6 /* Assertions.h */,
65E217B808E7EECC0023E5F6 /* Assertions.mm */,
65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */,
65E217BA08E7EECC0023E5F6 /* FastMalloc.h */,
65D7D19B08F10B5B0015ABD8 /* FastMallocInternal.h */,
6557E8F708EA5D4D0049CDFC /* HashMapPtrSpec.h */,
657EEBBF094E445E008C9C7B /* HashCountedSet.h */,
65DFC92A08EA173A00F7300B /* HashFunctions.h */,
65DFC92B08EA173A00F7300B /* HashMap.h */,
6557E8F708EA5D4D0049CDFC /* HashMapPtrSpec.h */,
65DFC92C08EA173A00F7300B /* HashSet.h */,
65DFC92D08EA173A00F7300B /* HashTable.cpp */,
65DFC92E08EA173A00F7300B /* HashTable.h */,
65DFC92F08EA173A00F7300B /* HashTraits.h */,
148A1626095D16BB00666D0D /* ListRefPtr.h */,
9303F5690991190000AD71B8 /* Noncopyable.h */,
9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
9303F567099118FA00AD71B8 /* OwnPtr.h */,
6580F795094070560082C219 /* PassRefPtr.h */,
65C647B3093EF8D60022C380 /* RefPtr.h */,
6541BD6E08E80A17002CBEE7 /* TCPageMap.h */,
6541BD6F08E80A17002CBEE7 /* TCSpinLock.h */,
6541BD7008E80A17002CBEE7 /* TCSystemAlloc.cpp */,
6541BD7108E80A17002CBEE7 /* TCSystemAlloc.h */,
65E217B708E7EECC0023E5F6 /* Assertions.h */,
65E217B808E7EECC0023E5F6 /* Assertions.mm */,
65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */,
65E217BA08E7EECC0023E5F6 /* FastMalloc.h */,
93AA4F770957251F0084B3A7 /* AlwaysInline.h */,
6592C316098B7DE10003D4F6 /* Vector.h */,
6592C317098B7DE10003D4F6 /* VectorTraits.h */,
);
path = kxmlcore;
sourceTree = "<group>";
......@@ -707,8 +629,87 @@
65417200039E01BA0058BFEB /* kjs */ = {
isa = PBXGroup;
children = (
08FB77AEFE84172EC02AAC07 /* Classes */,
F5C290E50284F960018635CA /* Other Sources */,
938772E5038BFE19008635CE /* array_instance.h */,
F692A84D0255597D01FF60F7 /* array_object.cpp */,
F692A84E0255597D01FF60F7 /* array_object.h */,
F692A8500255597D01FF60F7 /* bool_object.cpp */,
704FD35305697E6D003DBED9 /* bool_object.h */,
F692A8520255597D01FF60F7 /* collector.cpp */,
F692A8530255597D01FF60F7 /* collector.h */,
F5BB2BC5030F772101FCFE1D /* completion.h */,
F68EBB8C0255D4C601FF60F7 /* config.h */,
9373524E038DA8C2008635CE /* context.h */,
F692A8540255597D01FF60F7 /* create_hash_table */,
F692A8550255597D01FF60F7 /* date_object.cpp */,
F692A8560255597D01FF60F7 /* date_object.h */,
F692A8580255597D01FF60F7 /* debugger.cpp */,
F692A8590255597D01FF60F7 /* debugger.h */,
651F6412039D5B5F0078395C /* dtoa.cpp */,
651F6413039D5B5F0078395C /* dtoa.h */,
F692A85A0255597D01FF60F7 /* error_object.cpp */,
F692A85B0255597D01FF60F7 /* error_object.h */,
9364B273045B7D6C00A9CAC1 /* fpconst.cpp */,
F692A85E0255597D01FF60F7 /* function.cpp */,
F692A85F0255597D01FF60F7 /* function.h */,
F692A85C0255597D01FF60F7 /* function_object.cpp */,
F692A85D0255597D01FF60F7 /* function_object.h */,
933A3499038AE7C6008635CE /* grammar.y */,
933A349D038AE80F008635CE /* identifier.cpp */,
933A349A038AE7C6008635CE /* identifier.h */,
F692A8610255597D01FF60F7 /* internal.cpp */,
F692A8620255597D01FF60F7 /* internal.h */,
F692A8630255597D01FF60F7 /* interpreter.cpp */,
F692A8640255597D01FF60F7 /* interpreter.h */,
F5C290E60284F98E018635CA /* JavaScriptCorePrefix.h */,
14760863099C633800437128 /* JSImmediate.cpp */,
1483B589099BC1950016E4F0 /* JSImmediate.h */,
65EA4C99092AF9E20093D800 /* JSLock.cpp */,
65EA4C9A092AF9E20093D800 /* JSLock.h */,
14ABB454099C2A0F00E2A24F /* JSType.h */,
93F1981A08245AAE001E9ABC /* keywords.table */,
F692A8650255597D01FF60F7 /* lexer.cpp */,
F692A8660255597D01FF60F7 /* lexer.h */,
931C6CF0038EE8DE008635CE /* list.cpp */,
931C6CEF038EE8DE008635CE /* list.h */,
F692A8680255597D01FF60F7 /* lookup.cpp */,
F692A8690255597D01FF60F7 /* lookup.h */,
F692A86A0255597D01FF60F7 /* math_object.cpp */,
F692A86B0255597D01FF60F7 /* math_object.h */,
F692A86D0255597D01FF60F7 /* nodes.cpp */,
F692A86E0255597D01FF60F7 /* nodes.h */,
F5FFE656026B47A6018635CA /* nodes2string.cpp */,
F692A8700255597D01FF60F7 /* number_object.cpp */,
F692A8710255597D01FF60F7 /* number_object.h */,
F692A8750255597D01FF60F7 /* object.cpp */,
F692A8760255597D01FF60F7 /* object.h */,
F692A8730255597D01FF60F7 /* object_object.cpp */,
F692A8740255597D01FF60F7 /* object_object.h */,
F692A8770255597D01FF60F7 /* operations.cpp */,
F692A8780255597D01FF60F7 /* operations.h */,
F692A8790255597D01FF60F7 /* property_map.cpp */,
F692A87A0255597D01FF60F7 /* property_map.h */,
65621E6B089E859700760F35 /* property_slot.cpp */,
65621E6C089E859700760F35 /* property_slot.h */,
65C02FBB0637462A003E7EE6 /* protect.h */,
652C107E08DA7B1E0020887D /* protected_reference.h */,
F5341390030CEEB1018BE7F3 /* reference.cpp */,
F5341391030CEEB1018BE7F3 /* reference.h */,
F5341394030CF5F8018BE7F3 /* reference_list.cpp */,
F54F0800030CD22001B5C2EB /* reference_list.h */,
F692A87D0255597D01FF60F7 /* regexp.cpp */,
F692A87E0255597D01FF60F7 /* regexp.h */,
F692A87B0255597D01FF60F7 /* regexp_object.cpp */,
F692A87C0255597D01FF60F7 /* regexp_object.h */,
9374D3A8038D9D74008635CE /* scope_chain.cpp */,
9374D3A7038D9D74008635CE /* scope_chain.h */,
F692A87F0255597D01FF60F7 /* string_object.cpp */,
F692A8800255597D01FF60F7 /* string_object.h */,
45E12D8806A49B0F00E9DF84 /* testkjs.cpp */,
F692A8840255597D01FF60F7 /* types.h */,
F692A8850255597D01FF60F7 /* ustring.cpp */,
F692A8860255597D01FF60F7 /* ustring.h */,
F692A8870255597D01FF60F7 /* value.cpp */,
14ABB36E099C076400E2A24F /* value.h */,
);
path = kjs;
sourceTree = "<group>";
......@@ -716,24 +717,24 @@
65417203039E01F90058BFEB /* pcre */ = {
isa = PBXGroup;
children = (
6541720E039E08B90058BFEB /* dftables.c */,
65417217039E0B280058BFEB /* pcre-config.h */,
6541720F039E08B90058BFEB /* pcre.h */,
93E26BE508B1517100F85226 /* pcre_internal.h */,
93E26BFB08B151D400F85226 /* ucp.h */,
93E26BFC08B151D400F85226 /* ucpinternal.h */,
93E26C0D08B1520900F85226 /* ucptable.c */,
930754BF08B0F68000AB3056 /* pcre_compile.c */,
930754E908B0F78500AB3056 /* pcre_exec.c */,
930754E608B0F77700AB3056 /* pcre_fullinfo.c */,
93E26CF608B29A1C00F85226 /* pcre_get.c */,
930754D108B0F76200AB3056 /* pcre_globals.c */,
93E26BE508B1517100F85226 /* pcre_internal.h */,
93E26BC908B1511900F85226 /* pcre_ord2utf8.c */,
93E26DDB08B2A4F400F85226 /* pcre_printint.c */,
930754CE08B0F74500AB3056 /* pcre_tables.c */,
93E26BD008B1513800F85226 /* pcre_try_flipped.c */,
93E26BCD08B1512600F85226 /* pcre_ucp_findchar.c */,
93E26BD308B1514100F85226 /* pcre_xclass.c */,
6541720E039E08B90058BFEB /* dftables.c */,
93E26BFB08B151D400F85226 /* ucp.h */,
93E26BFC08B151D400F85226 /* ucpinternal.h */,
93E26C0D08B1520900F85226 /* ucptable.c */,
);
name = pcre;
sourceTree = "<group>";
......@@ -754,23 +755,6 @@
name = Resources;
sourceTree = "<group>";
};
F5C290E50284F960018635CA /* Other Sources */ = {
isa = PBXGroup;
children = (
45E12D8806A49B0F00E9DF84 /* testkjs.cpp */,
F692A8540255597D01FF60F7 /* create_hash_table */,
93F1981A08245AAE001E9ABC /* keywords.table */,
933A3499038AE7C6008635CE /* grammar.y */,
F692A8650255597D01FF60F7 /* lexer.cpp */,
F692A8660255597D01FF60F7 /* lexer.h */,
F68EBB8C0255D4C601FF60F7 /* config.h */,
F5C290E60284F98E018635CA /* JavaScriptCorePrefix.h */,
651F6412039D5B5F0078395C /* dtoa.cpp */,
651F6413039D5B5F0078395C /* dtoa.h */,
);
name = "Other Sources";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
......
......@@ -64,11 +64,6 @@ bool RuntimeMethod::getOwnPropertySlot(ExecState *exec, const Identifier& proper
return FunctionImp::getOwnPropertySlot(exec, propertyName, slot);
}
bool RuntimeMethod::implementsCall() const
{
return true;
}
JSValue *RuntimeMethod::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
{
if (_methodList.length() > 0) {
......
......@@ -40,7 +40,6 @@ public:
virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
virtual CodeType codeType() const;
......
......@@ -441,11 +441,6 @@ ArrayProtoFunc::ArrayProtoFunc(ExecState *exec, int i, int len, const Identifier
put(exec,lengthPropertyName,jsNumber(len),DontDelete|ReadOnly|DontEnum);
}
bool ArrayProtoFunc::implementsCall() const
{
return true;
}
static JSValue *getProperty(ExecState *exec, JSObject *obj, unsigned index)
{
PropertySlot slot;
......@@ -951,11 +946,6 @@ JSObject *ArrayObjectImp::construct(ExecState *exec, const List &args)
return new ArrayInstance(exec->lexicalInterpreter()->builtinArrayPrototype(), args);
}
bool ArrayObjectImp::implementsCall() const
{
return true;
}
// ECMA 15.6.1
JSValue *ArrayObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
{
......
......@@ -41,7 +41,6 @@ namespace KJS {
public:
ArrayProtoFunc(ExecState *exec, int i, int len, const Identifier& name);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
enum { ToString, ToLocaleString, Concat, Join, Pop, Push,
......@@ -61,7 +60,6 @@ namespace KJS {
virtual bool implementsConstruct() const;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
};
......
......@@ -67,12 +67,6 @@ BooleanProtoFunc::BooleanProtoFunc(ExecState*, FunctionPrototype* funcProto, int
}
bool BooleanProtoFunc::implementsCall() const
{
return true;
}
// ECMA 15.6.4.2 + 15.6.4.3
JSValue *BooleanProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &/*args*/)
{
......@@ -125,11 +119,6 @@ JSObject *BooleanObjectImp::construct(ExecState *exec, const List &args)
return obj;
}
bool BooleanObjectImp::implementsCall() const
{
return true;
}
// ECMA 15.6.1
JSValue *BooleanObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
{
......
......@@ -58,7 +58,6 @@ namespace KJS {
public:
BooleanProtoFunc(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
enum { ToString, ValueOf };
......@@ -80,7 +79,6 @@ namespace KJS {
virtual bool implementsConstruct() const;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
};
......
......@@ -85,7 +85,6 @@ class DateProtoFunc : public InternalFunctionImp {
public:
DateProtoFunc(ExecState *, int i, int len, const Identifier& date);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
Completion execute(const List &);
......@@ -112,7 +111,6 @@ class DateObjectFuncImp : public InternalFunctionImp {
public:
DateObjectFuncImp(ExecState *, FunctionPrototype *, int i, int len, const Identifier& );
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
enum { Parse, UTC };
......@@ -548,11 +546,6 @@ DateProtoFunc::DateProtoFunc(ExecState *exec, int i, int len, const Identifier&
putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
}
bool DateProtoFunc::implementsCall() const
{
return true;
}
JSValue *DateProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
{
if (!thisObj->inherits(&DateInstance::info))
......@@ -796,11 +789,6 @@ JSObject *DateObjectImp::construct(ExecState *exec, const List &args)
return ret;
}
bool DateObjectImp::implementsCall() const
{
return true;
}
// ECMA 15.9.2
JSValue *DateObjectImp::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const List &/*args*/)
{
......@@ -817,11 +805,6 @@ DateObjectFuncImp::DateObjectFuncImp(ExecState *exec, FunctionPrototype *funcPro
putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
}
bool DateObjectFuncImp::implementsCall() const
{
return true;
}
// ECMA 15.9.4.2 - 3
JSValue *DateObjectFuncImp::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
{
......
......@@ -66,7 +66,6 @@ namespace KJS {
virtual bool implementsConstruct() const;
virtual JSObject *construct(ExecState *, const List &args);
virtual bool implementsCall() const;
virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
Completion execute(const List &);
......
......@@ -64,11 +64,6 @@ ErrorProtoFunc::ErrorProtoFunc(ExecState*, FunctionPrototype* funcProto, const I
putDirect(lengthPropertyName, jsNumber(0), DontDelete|ReadOnly|DontEnum);
}
bool ErrorProtoFunc::implementsCall() const
{
return true;
}
JSValue *ErrorProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &/*args*/)
{
// toString()
......@@ -117,11 +112,6 @@ JSObject *ErrorObjectImp::construct(ExecState *exec, const List &args)
return obj;
}
bool ErrorObjectImp::implementsCall() const
{
return true;
}
// ECMA 15.9.2
JSValue *ErrorObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
{
......@@ -166,11 +156,6 @@ JSObject *NativeErrorImp::construct(ExecState *exec, const List &args)
return obj;
}
bool NativeErrorImp::implementsCall() const
{
return true;
}
JSValue *NativeErrorImp::callAsFunction(ExecState *exec, JSObject */*