Changeset 12921 in webkit for trunk/JavaScriptCore


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.
Location:
trunk/JavaScriptCore
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r12919 r12921  
     12006-02-21  Darin Adler  <[email protected]>
     2
     3        Reviewed by John Sullivan.
     4
     5        - http://bugzilla.opendarwin.org/show_bug.cgi?id=7404
     6          remove a bunch of extra implementsCall overrides
     7
     8        * JavaScriptCore.xcodeproj/project.pbxproj: Sorted files.
     9
     10        * kjs/internal.h: Made InternalFunctionImp::callAsFunction pure virtual so that
     11        we'll get a compile error if some derived class neglects to implement it.
     12
     13        * kjs/function.cpp: (KJS::FunctionImp::FunctionImp): Remove unneeded initialization
     14        of param, which is an OwnPtr so it gets initialized by default.
     15
     16        * bindings/runtime_method.cpp:
     17        * bindings/runtime_method.h:
     18        * kjs/array_object.cpp:
     19        * kjs/array_object.h:
     20        * kjs/bool_object.cpp:
     21        * kjs/bool_object.h:
     22        * kjs/date_object.cpp:
     23        * kjs/date_object.h:
     24        * kjs/error_object.cpp:
     25        * kjs/error_object.h:
     26        * kjs/function.cpp:
     27        * kjs/function.h:
     28        * kjs/function_object.cpp:
     29        * kjs/function_object.h:
     30        * kjs/math_object.cpp:
     31        * kjs/math_object.h:
     32        * kjs/number_object.cpp:
     33        * kjs/number_object.h:
     34        * kjs/object_object.cpp:
     35        * kjs/object_object.h:
     36        * kjs/regexp_object.cpp:
     37        * kjs/regexp_object.h:
     38        * kjs/string_object.cpp:
     39        * kjs/string_object.h:
     40        Removed many rendundant implementations of implementsCall from subclasses of
     41        InternalFunctionImp.
     42
    1432006-02-21  Darin Adler  <[email protected]>
    244
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r12859 r12921  
    528528                        isa = PBXGroup;
    529529                        children = (
     530                                6560A4CF04B3B3E7008AE952 /* CoreFoundation.framework */,
     531                                6560A63D04B3B69F008AE952 /* CoreServices.framework */,
     532                                51F0EB6105C86C6B00E6DF1B /* Foundation.framework */,
    530533                                9322A00306C341D3009067BB /* libicucore.dylib */,
    531534                                51F0EC0705C86C9A00E6DF1B /* libobjc.dylib */,
    532                                 51F0EB6105C86C6B00E6DF1B /* Foundation.framework */,
    533                                 6560A4CF04B3B3E7008AE952 /* CoreFoundation.framework */,
    534                                 6560A63D04B3B69F008AE952 /* CoreServices.framework */,
    535535                        );
    536536                        name = Frameworks;
    537                         sourceTree = "<group>";
    538                 };
    539                 08FB77AEFE84172EC02AAC07 /* Classes */ = {
    540                         isa = PBXGroup;
    541                         children = (
    542                                 65EA4C99092AF9E20093D800 /* JSLock.cpp */,
    543                                 65EA4C9A092AF9E20093D800 /* JSLock.h */,
    544                                 65621E6B089E859700760F35 /* property_slot.cpp */,
    545                                 65621E6C089E859700760F35 /* property_slot.h */,
    546                                 938772E5038BFE19008635CE /* array_instance.h */,
    547                                 652C107E08DA7B1E0020887D /* protected_reference.h */,
    548                                 F692A84E0255597D01FF60F7 /* array_object.h */,
    549                                 F692A84D0255597D01FF60F7 /* array_object.cpp */,
    550                                 F692A8500255597D01FF60F7 /* bool_object.cpp */,
    551                                 704FD35305697E6D003DBED9 /* bool_object.h */,
    552                                 F692A8530255597D01FF60F7 /* collector.h */,
    553                                 F692A8520255597D01FF60F7 /* collector.cpp */,
    554                                 F5BB2BC5030F772101FCFE1D /* completion.h */,
    555                                 9373524E038DA8C2008635CE /* context.h */,
    556                                 F692A8560255597D01FF60F7 /* date_object.h */,
    557                                 F692A8550255597D01FF60F7 /* date_object.cpp */,
    558                                 F692A8590255597D01FF60F7 /* debugger.h */,
    559                                 F692A8580255597D01FF60F7 /* debugger.cpp */,
    560                                 F692A85B0255597D01FF60F7 /* error_object.h */,
    561                                 F692A85A0255597D01FF60F7 /* error_object.cpp */,
    562                                 9364B273045B7D6C00A9CAC1 /* fpconst.cpp */,
    563                                 F692A85D0255597D01FF60F7 /* function_object.h */,
    564                                 F692A85C0255597D01FF60F7 /* function_object.cpp */,
    565                                 F692A85F0255597D01FF60F7 /* function.h */,
    566                                 F692A85E0255597D01FF60F7 /* function.cpp */,
    567                                 933A349A038AE7C6008635CE /* identifier.h */,
    568                                 933A349D038AE80F008635CE /* identifier.cpp */,
    569                                 F692A8620255597D01FF60F7 /* internal.h */,
    570                                 F692A8610255597D01FF60F7 /* internal.cpp */,
    571                                 F692A8630255597D01FF60F7 /* interpreter.cpp */,
    572                                 F692A8640255597D01FF60F7 /* interpreter.h */,
    573                                 931C6CEF038EE8DE008635CE /* list.h */,
    574                                 931C6CF0038EE8DE008635CE /* list.cpp */,
    575                                 F692A8690255597D01FF60F7 /* lookup.h */,
    576                                 F692A8680255597D01FF60F7 /* lookup.cpp */,
    577                                 F692A86A0255597D01FF60F7 /* math_object.cpp */,
    578                                 F692A86B0255597D01FF60F7 /* math_object.h */,
    579                                 F692A86E0255597D01FF60F7 /* nodes.h */,
    580                                 F692A86D0255597D01FF60F7 /* nodes.cpp */,
    581                                 F5FFE656026B47A6018635CA /* nodes2string.cpp */,
    582                                 F692A8710255597D01FF60F7 /* number_object.h */,
    583                                 F692A8700255597D01FF60F7 /* number_object.cpp */,
    584                                 F692A8740255597D01FF60F7 /* object_object.h */,
    585                                 F692A8730255597D01FF60F7 /* object_object.cpp */,
    586                                 F692A8760255597D01FF60F7 /* object.h */,
    587                                 F692A8750255597D01FF60F7 /* object.cpp */,
    588                                 F692A8780255597D01FF60F7 /* operations.h */,
    589                                 F692A8770255597D01FF60F7 /* operations.cpp */,
    590                                 F692A87A0255597D01FF60F7 /* property_map.h */,
    591                                 F692A8790255597D01FF60F7 /* property_map.cpp */,
    592                                 65C02FBB0637462A003E7EE6 /* protect.h */,
    593                                 F5341390030CEEB1018BE7F3 /* reference.cpp */,
    594                                 F5341391030CEEB1018BE7F3 /* reference.h */,
    595                                 F54F0800030CD22001B5C2EB /* reference_list.h */,
    596                                 F5341394030CF5F8018BE7F3 /* reference_list.cpp */,
    597                                 F692A87B0255597D01FF60F7 /* regexp_object.cpp */,
    598                                 F692A87C0255597D01FF60F7 /* regexp_object.h */,
    599                                 F692A87D0255597D01FF60F7 /* regexp.cpp */,
    600                                 F692A87E0255597D01FF60F7 /* regexp.h */,
    601                                 9374D3A7038D9D74008635CE /* scope_chain.h */,
    602                                 9374D3A8038D9D74008635CE /* scope_chain.cpp */,
    603                                 F692A87F0255597D01FF60F7 /* string_object.cpp */,
    604                                 F692A8800255597D01FF60F7 /* string_object.h */,
    605                                 F692A8840255597D01FF60F7 /* types.h */,
    606                                 F692A8860255597D01FF60F7 /* ustring.h */,
    607                                 F692A8850255597D01FF60F7 /* ustring.cpp */,
    608                                 14ABB36E099C076400E2A24F /* value.h */,
    609                                 F692A8870255597D01FF60F7 /* value.cpp */,
    610                                 1483B589099BC1950016E4F0 /* JSImmediate.h */,
    611                                 14760863099C633800437128 /* JSImmediate.cpp */,
    612                                 14ABB454099C2A0F00E2A24F /* JSType.h */,
    613                         );
    614                         name = Classes;
    615537                        sourceTree = "<group>";
    616538                };
     
    618540                        isa = PBXGroup;
    619541                        children = (
    620                                 700DA117065984CE00747C0B /* WebScriptObjectPrivate.h */,
    621                                 51863F6F065420E800E9E8DD /* WebScriptObject.h */,
    622                                 51863FC406542D3100E9E8DD /* WebScriptObject.mm */,
    623                                 51CA3B4F06CC2166005600E3 /* npapi.h */,
    624                                 5199B1BD061B65BC0070C006 /* npruntime.cpp */,
    625                                 5199B1BE061B65BC0070C006 /* npruntime.h */,
    626                                 51DFF2C906CC36F6006F1ECC /* npruntime_priv.h */,
    627                                 84ABF1DE070B628C00A3AC05 /* npruntime_impl.h */,
    628542                                5182A53A06012C3000CBD2F2 /* c_class.cpp */,
    629543                                5182A53B06012C3000CBD2F2 /* c_class.h */,
     
    634548                                5182A4FB06010F8200CBD2F2 /* c_utility.cpp */,
    635549                                5182A47005FFD45000CBD2F2 /* c_utility.h */,
    636                                 51532CC705F7FD2C00EC779C /* NP_jsobject.cpp */,
    637                                 517BE7F40610E39600221947 /* NP_jsobject.h */,
    638550                                517D52DC056BF2F5003851BD /* jni_class.cpp */,
    639551                                517D52DD056BF2F6003851BD /* jni_class.h */,
     
    647559                                51856D8F0562EE95008B9D83 /* jni_utility.cpp */,
    648560                                51856D900562EE95008B9D83 /* jni_utility.h */,
     561                                51532CC705F7FD2C00EC779C /* NP_jsobject.cpp */,
     562                                517BE7F40610E39600221947 /* NP_jsobject.h */,
     563                                51CA3B4F06CC2166005600E3 /* npapi.h */,
     564                                5199B1BD061B65BC0070C006 /* npruntime.cpp */,
     565                                5199B1BE061B65BC0070C006 /* npruntime.h */,
     566                                84ABF1DE070B628C00A3AC05 /* npruntime_impl.h */,
     567                                51DFF2C906CC36F6006F1ECC /* npruntime_priv.h */,
     568                                518CF93605C72271003CF905 /* objc_class.h */,
     569                                518CF93705C72271003CF905 /* objc_class.mm */,
     570                                51F0EC1005C86F3500E6DF1B /* objc_header.h */,
     571                                51F0EB0005C85A6300E6DF1B /* objc_instance.h */,
     572                                51F0EB0505C85A9000E6DF1B /* objc_instance.mm */,
     573                                51C4974105C0A5D4006FBFF5 /* objc_runtime.h */,
     574                                518CF93805C72271003CF905 /* objc_runtime.mm */,
     575                                51F0EC9605C88DC700E6DF1B /* objc_utility.h */,
     576                                51F0EC9705C88DC700E6DF1B /* objc_utility.mm */,
    649577                                704FD44505698F17003DBED9 /* runtime.cpp */,
    650578                                511B0870056468730080E486 /* runtime.h */,
     
    657585                                5114F47B05E4426200D1BBBD /* runtime_root.cpp */,
    658586                                5114F47C05E4426200D1BBBD /* runtime_root.h */,
    659                                 518CF93605C72271003CF905 /* objc_class.h */,
    660                                 518CF93705C72271003CF905 /* objc_class.mm */,
    661                                 51F0EC1005C86F3500E6DF1B /* objc_header.h */,
    662                                 51F0EB0005C85A6300E6DF1B /* objc_instance.h */,
    663                                 51F0EB0505C85A9000E6DF1B /* objc_instance.mm */,
    664                                 51C4974105C0A5D4006FBFF5 /* objc_runtime.h */,
    665                                 518CF93805C72271003CF905 /* objc_runtime.mm */,
    666                                 51F0EC9605C88DC700E6DF1B /* objc_utility.h */,
    667                                 51F0EC9705C88DC700E6DF1B /* objc_utility.mm */,
    668587                                8442A376074175C2000AE2ED /* softlinking.c */,
    669588                                93E26CCE08B2921900F85226 /* softlinking.h */,
     589                                51863F6F065420E800E9E8DD /* WebScriptObject.h */,
     590                                51863FC406542D3100E9E8DD /* WebScriptObject.mm */,
     591                                700DA117065984CE00747C0B /* WebScriptObjectPrivate.h */,
    670592                        );
    671593                        name = bindings;
     
    675597                        isa = PBXGroup;
    676598                        children = (
    677                                 9303F5690991190000AD71B8 /* Noncopyable.h */,
    678                                 9303F567099118FA00AD71B8 /* OwnPtr.h */,
    679                                 9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
    680                                 6592C316098B7DE10003D4F6 /* Vector.h */,
    681                                 6592C317098B7DE10003D4F6 /* VectorTraits.h */,
     599                                93AA4F770957251F0084B3A7 /* AlwaysInline.h */,
     600                                65E217B708E7EECC0023E5F6 /* Assertions.h */,
     601                                65E217B808E7EECC0023E5F6 /* Assertions.mm */,
     602                                65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */,
     603                                65E217BA08E7EECC0023E5F6 /* FastMalloc.h */,
     604                                65D7D19B08F10B5B0015ABD8 /* FastMallocInternal.h */,
    682605                                657EEBBF094E445E008C9C7B /* HashCountedSet.h */,
    683                                 65C647B3093EF8D60022C380 /* RefPtr.h */,
    684                                 6580F795094070560082C219 /* PassRefPtr.h */,
    685                                 148A1626095D16BB00666D0D /* ListRefPtr.h */,
    686                                 65D7D19B08F10B5B0015ABD8 /* FastMallocInternal.h */,
    687                                 6557E8F708EA5D4D0049CDFC /* HashMapPtrSpec.h */,
    688606                                65DFC92A08EA173A00F7300B /* HashFunctions.h */,
    689607                                65DFC92B08EA173A00F7300B /* HashMap.h */,
     608                                6557E8F708EA5D4D0049CDFC /* HashMapPtrSpec.h */,
    690609                                65DFC92C08EA173A00F7300B /* HashSet.h */,
    691610                                65DFC92D08EA173A00F7300B /* HashTable.cpp */,
    692611                                65DFC92E08EA173A00F7300B /* HashTable.h */,
    693612                                65DFC92F08EA173A00F7300B /* HashTraits.h */,
     613                                148A1626095D16BB00666D0D /* ListRefPtr.h */,
     614                                9303F5690991190000AD71B8 /* Noncopyable.h */,
     615                                9303F5A409911A5800AD71B8 /* OwnArrayPtr.h */,
     616                                9303F567099118FA00AD71B8 /* OwnPtr.h */,
     617                                6580F795094070560082C219 /* PassRefPtr.h */,
     618                                65C647B3093EF8D60022C380 /* RefPtr.h */,
    694619                                6541BD6E08E80A17002CBEE7 /* TCPageMap.h */,
    695620                                6541BD6F08E80A17002CBEE7 /* TCSpinLock.h */,
    696621                                6541BD7008E80A17002CBEE7 /* TCSystemAlloc.cpp */,
    697622                                6541BD7108E80A17002CBEE7 /* TCSystemAlloc.h */,
    698                                 65E217B708E7EECC0023E5F6 /* Assertions.h */,
    699                                 65E217B808E7EECC0023E5F6 /* Assertions.mm */,
    700                                 65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */,
    701                                 65E217BA08E7EECC0023E5F6 /* FastMalloc.h */,
    702                                 93AA4F770957251F0084B3A7 /* AlwaysInline.h */,
     623                                6592C316098B7DE10003D4F6 /* Vector.h */,
     624                                6592C317098B7DE10003D4F6 /* VectorTraits.h */,
    703625                        );
    704626                        path = kxmlcore;
     
    708630                        isa = PBXGroup;
    709631                        children = (
    710                                 08FB77AEFE84172EC02AAC07 /* Classes */,
    711                                 F5C290E50284F960018635CA /* Other Sources */,
     632                                938772E5038BFE19008635CE /* array_instance.h */,
     633                                F692A84D0255597D01FF60F7 /* array_object.cpp */,
     634                                F692A84E0255597D01FF60F7 /* array_object.h */,
     635                                F692A8500255597D01FF60F7 /* bool_object.cpp */,
     636                                704FD35305697E6D003DBED9 /* bool_object.h */,
     637                                F692A8520255597D01FF60F7 /* collector.cpp */,
     638                                F692A8530255597D01FF60F7 /* collector.h */,
     639                                F5BB2BC5030F772101FCFE1D /* completion.h */,
     640                                F68EBB8C0255D4C601FF60F7 /* config.h */,
     641                                9373524E038DA8C2008635CE /* context.h */,
     642                                F692A8540255597D01FF60F7 /* create_hash_table */,
     643                                F692A8550255597D01FF60F7 /* date_object.cpp */,
     644                                F692A8560255597D01FF60F7 /* date_object.h */,
     645                                F692A8580255597D01FF60F7 /* debugger.cpp */,
     646                                F692A8590255597D01FF60F7 /* debugger.h */,
     647                                651F6412039D5B5F0078395C /* dtoa.cpp */,
     648                                651F6413039D5B5F0078395C /* dtoa.h */,
     649                                F692A85A0255597D01FF60F7 /* error_object.cpp */,
     650                                F692A85B0255597D01FF60F7 /* error_object.h */,
     651                                9364B273045B7D6C00A9CAC1 /* fpconst.cpp */,
     652                                F692A85E0255597D01FF60F7 /* function.cpp */,
     653                                F692A85F0255597D01FF60F7 /* function.h */,
     654                                F692A85C0255597D01FF60F7 /* function_object.cpp */,
     655                                F692A85D0255597D01FF60F7 /* function_object.h */,
     656                                933A3499038AE7C6008635CE /* grammar.y */,
     657                                933A349D038AE80F008635CE /* identifier.cpp */,
     658                                933A349A038AE7C6008635CE /* identifier.h */,
     659                                F692A8610255597D01FF60F7 /* internal.cpp */,
     660                                F692A8620255597D01FF60F7 /* internal.h */,
     661                                F692A8630255597D01FF60F7 /* interpreter.cpp */,
     662                                F692A8640255597D01FF60F7 /* interpreter.h */,
     663                                F5C290E60284F98E018635CA /* JavaScriptCorePrefix.h */,
     664                                14760863099C633800437128 /* JSImmediate.cpp */,
     665                                1483B589099BC1950016E4F0 /* JSImmediate.h */,
     666                                65EA4C99092AF9E20093D800 /* JSLock.cpp */,
     667                                65EA4C9A092AF9E20093D800 /* JSLock.h */,
     668                                14ABB454099C2A0F00E2A24F /* JSType.h */,
     669                                93F1981A08245AAE001E9ABC /* keywords.table */,
     670                                F692A8650255597D01FF60F7 /* lexer.cpp */,
     671                                F692A8660255597D01FF60F7 /* lexer.h */,
     672                                931C6CF0038EE8DE008635CE /* list.cpp */,
     673                                931C6CEF038EE8DE008635CE /* list.h */,
     674                                F692A8680255597D01FF60F7 /* lookup.cpp */,
     675                                F692A8690255597D01FF60F7 /* lookup.h */,
     676                                F692A86A0255597D01FF60F7 /* math_object.cpp */,
     677                                F692A86B0255597D01FF60F7 /* math_object.h */,
     678                                F692A86D0255597D01FF60F7 /* nodes.cpp */,
     679                                F692A86E0255597D01FF60F7 /* nodes.h */,
     680                                F5FFE656026B47A6018635CA /* nodes2string.cpp */,
     681                                F692A8700255597D01FF60F7 /* number_object.cpp */,
     682                                F692A8710255597D01FF60F7 /* number_object.h */,
     683                                F692A8750255597D01FF60F7 /* object.cpp */,
     684                                F692A8760255597D01FF60F7 /* object.h */,
     685                                F692A8730255597D01FF60F7 /* object_object.cpp */,
     686                                F692A8740255597D01FF60F7 /* object_object.h */,
     687                                F692A8770255597D01FF60F7 /* operations.cpp */,
     688                                F692A8780255597D01FF60F7 /* operations.h */,
     689                                F692A8790255597D01FF60F7 /* property_map.cpp */,
     690                                F692A87A0255597D01FF60F7 /* property_map.h */,
     691                                65621E6B089E859700760F35 /* property_slot.cpp */,
     692                                65621E6C089E859700760F35 /* property_slot.h */,
     693                                65C02FBB0637462A003E7EE6 /* protect.h */,
     694                                652C107E08DA7B1E0020887D /* protected_reference.h */,
     695                                F5341390030CEEB1018BE7F3 /* reference.cpp */,
     696                                F5341391030CEEB1018BE7F3 /* reference.h */,
     697                                F5341394030CF5F8018BE7F3 /* reference_list.cpp */,
     698                                F54F0800030CD22001B5C2EB /* reference_list.h */,
     699                                F692A87D0255597D01FF60F7 /* regexp.cpp */,
     700                                F692A87E0255597D01FF60F7 /* regexp.h */,
     701                                F692A87B0255597D01FF60F7 /* regexp_object.cpp */,
     702                                F692A87C0255597D01FF60F7 /* regexp_object.h */,
     703                                9374D3A8038D9D74008635CE /* scope_chain.cpp */,
     704                                9374D3A7038D9D74008635CE /* scope_chain.h */,
     705                                F692A87F0255597D01FF60F7 /* string_object.cpp */,
     706                                F692A8800255597D01FF60F7 /* string_object.h */,
     707                                45E12D8806A49B0F00E9DF84 /* testkjs.cpp */,
     708                                F692A8840255597D01FF60F7 /* types.h */,
     709                                F692A8850255597D01FF60F7 /* ustring.cpp */,
     710                                F692A8860255597D01FF60F7 /* ustring.h */,
     711                                F692A8870255597D01FF60F7 /* value.cpp */,
     712                                14ABB36E099C076400E2A24F /* value.h */,
    712713                        );
    713714                        path = kjs;
     
    717718                        isa = PBXGroup;
    718719                        children = (
     720                                6541720E039E08B90058BFEB /* dftables.c */,
    719721                                65417217039E0B280058BFEB /* pcre-config.h */,
    720722                                6541720F039E08B90058BFEB /* pcre.h */,
    721                                 93E26BE508B1517100F85226 /* pcre_internal.h */,
    722                                 93E26BFB08B151D400F85226 /* ucp.h */,
    723                                 93E26BFC08B151D400F85226 /* ucpinternal.h */,
    724                                 93E26C0D08B1520900F85226 /* ucptable.c */,
    725723                                930754BF08B0F68000AB3056 /* pcre_compile.c */,
    726724                                930754E908B0F78500AB3056 /* pcre_exec.c */,
     
    728726                                93E26CF608B29A1C00F85226 /* pcre_get.c */,
    729727                                930754D108B0F76200AB3056 /* pcre_globals.c */,
     728                                93E26BE508B1517100F85226 /* pcre_internal.h */,
    730729                                93E26BC908B1511900F85226 /* pcre_ord2utf8.c */,
    731730                                93E26DDB08B2A4F400F85226 /* pcre_printint.c */,
     
    734733                                93E26BCD08B1512600F85226 /* pcre_ucp_findchar.c */,
    735734                                93E26BD308B1514100F85226 /* pcre_xclass.c */,
    736                                 6541720E039E08B90058BFEB /* dftables.c */,
     735                                93E26BFB08B151D400F85226 /* ucp.h */,
     736                                93E26BFC08B151D400F85226 /* ucpinternal.h */,
     737                                93E26C0D08B1520900F85226 /* ucptable.c */,
    737738                        );
    738739                        name = pcre;
     
    753754                        );
    754755                        name = Resources;
    755                         sourceTree = "<group>";
    756                 };
    757                 F5C290E50284F960018635CA /* Other Sources */ = {
    758                         isa = PBXGroup;
    759                         children = (
    760                                 45E12D8806A49B0F00E9DF84 /* testkjs.cpp */,
    761                                 F692A8540255597D01FF60F7 /* create_hash_table */,
    762                                 93F1981A08245AAE001E9ABC /* keywords.table */,
    763                                 933A3499038AE7C6008635CE /* grammar.y */,
    764                                 F692A8650255597D01FF60F7 /* lexer.cpp */,
    765                                 F692A8660255597D01FF60F7 /* lexer.h */,
    766                                 F68EBB8C0255D4C601FF60F7 /* config.h */,
    767                                 F5C290E60284F98E018635CA /* JavaScriptCorePrefix.h */,
    768                                 651F6412039D5B5F0078395C /* dtoa.cpp */,
    769                                 651F6413039D5B5F0078395C /* dtoa.h */,
    770                         );
    771                         name = "Other Sources";
    772756                        sourceTree = "<group>";
    773757                };
  • trunk/JavaScriptCore/bindings/runtime_method.cpp

    r12069 r12921  
    6565}
    6666
    67 bool RuntimeMethod::implementsCall() const
    68 {
    69     return true;
    70 }
    71 
    7267JSValue *RuntimeMethod::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
    7368{
  • trunk/JavaScriptCore/bindings/runtime_method.h

    r11962 r12921  
    4141    virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
    4242
    43     virtual bool implementsCall() const;
    4443    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4544
  • trunk/JavaScriptCore/kjs/array_object.cpp

    r12911 r12921  
    440440{
    441441  put(exec,lengthPropertyName,jsNumber(len),DontDelete|ReadOnly|DontEnum);
    442 }
    443 
    444 bool ArrayProtoFunc::implementsCall() const
    445 {
    446   return true;
    447442}
    448443
     
    953948}
    954949
    955 bool ArrayObjectImp::implementsCall() const
    956 {
    957   return true;
    958 }
    959 
    960950// ECMA 15.6.1
    961951JSValue *ArrayObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
  • trunk/JavaScriptCore/kjs/array_object.h

    r12911 r12921  
    4242    ArrayProtoFunc(ExecState *exec, int i, int len, const Identifier& name);
    4343
    44     virtual bool implementsCall() const;
    4544    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4645
     
    6261    virtual bool implementsConstruct() const;
    6362    virtual JSObject *construct(ExecState *exec, const List &args);
    64     virtual bool implementsCall() const;
    6563    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    6664
  • trunk/JavaScriptCore/kjs/bool_object.cpp

    r12911 r12921  
    6868
    6969
    70 bool BooleanProtoFunc::implementsCall() const
    71 {
    72   return true;
    73 }
    74 
    75 
    7670// ECMA 15.6.4.2 + 15.6.4.3
    7771JSValue *BooleanProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &/*args*/)
     
    126120}
    127121
    128 bool BooleanObjectImp::implementsCall() const
    129 {
    130   return true;
    131 }
    132 
    133122// ECMA 15.6.1
    134123JSValue *BooleanObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
  • trunk/JavaScriptCore/kjs/bool_object.h

    r12911 r12921  
    5959    BooleanProtoFunc(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);
    6060
    61     virtual bool implementsCall() const;
    6261    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    6362
     
    8180    virtual JSObject *construct(ExecState *exec, const List &args);
    8281
    83     virtual bool implementsCall() const;
    8482    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    8583  };
  • trunk/JavaScriptCore/kjs/date_object.cpp

    r12911 r12921  
    8686    DateProtoFunc(ExecState *, int i, int len, const Identifier& date);
    8787
    88     virtual bool implementsCall() const;
    8988    virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
    9089
     
    113112    DateObjectFuncImp(ExecState *, FunctionPrototype *, int i, int len, const Identifier& );
    114113
    115     virtual bool implementsCall() const;
    116114    virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
    117115
     
    549547}
    550548
    551 bool DateProtoFunc::implementsCall() const
    552 {
    553     return true;
    554 }
    555 
    556549JSValue *DateProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &args)
    557550{
     
    797790}
    798791
    799 bool DateObjectImp::implementsCall() const
    800 {
    801     return true;
    802 }
    803 
    804792// ECMA 15.9.2
    805793JSValue *DateObjectImp::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const List &/*args*/)
     
    816804{
    817805    putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
    818 }
    819 
    820 bool DateObjectFuncImp::implementsCall() const
    821 {
    822     return true;
    823806}
    824807
  • trunk/JavaScriptCore/kjs/date_object.h

    r12624 r12921  
    6767        virtual bool implementsConstruct() const;
    6868        virtual JSObject *construct(ExecState *, const List &args);
    69         virtual bool implementsCall() const;
    7069        virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
    7170
  • trunk/JavaScriptCore/kjs/error_object.cpp

    r12911 r12921  
    6565}
    6666
    67 bool ErrorProtoFunc::implementsCall() const
    68 {
    69   return true;
    70 }
    71 
    7267JSValue *ErrorProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const List &/*args*/)
    7368{
     
    118113}
    119114
    120 bool ErrorObjectImp::implementsCall() const
    121 {
    122   return true;
    123 }
    124 
    125115// ECMA 15.9.2
    126116JSValue *ErrorObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
     
    167157}
    168158
    169 bool NativeErrorImp::implementsCall() const
    170 {
    171   return true;
    172 }
    173 
    174159JSValue *NativeErrorImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
    175160{
  • trunk/JavaScriptCore/kjs/error_object.h

    r12911 r12921  
    4646  public:
    4747    ErrorProtoFunc(ExecState*, FunctionPrototype*, const Identifier&);
    48     virtual bool implementsCall() const;
    4948    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    5049  };
     
    5857    virtual JSObject *construct(ExecState *exec, const List &args);
    5958
    60     virtual bool implementsCall() const;
    6159    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    6260  };
     
    7775    virtual bool implementsConstruct() const;
    7876    virtual JSObject *construct(ExecState *exec, const List &args);
    79     virtual bool implementsCall() const;
    8077    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    8178
  • trunk/JavaScriptCore/kjs/function.cpp

    r12911 r12921  
    5959  : InternalFunctionImp(static_cast<FunctionPrototype*>
    6060                        (exec->lexicalInterpreter()->builtinFunctionPrototype()), n)
    61   , param(0L)
    6261{
    6362}
     
    6564FunctionImp::~FunctionImp()
    6665{
    67 }
    68 
    69 bool FunctionImp::implementsCall() const
    70 {
    71   return true;
    7266}
    7367
     
    568562{
    569563  return id == Eval ? EvalCode : codeType();
    570 }
    571 
    572 bool GlobalFuncImp::implementsCall() const
    573 {
    574   return true;
    575564}
    576565
  • trunk/JavaScriptCore/kjs/function.h

    r12911 r12921  
    4646    virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName);
    4747
    48     virtual bool implementsCall() const;
    4948    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    5049
     
    147146  public:
    148147    GlobalFuncImp(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);
    149     virtual bool implementsCall() const;
    150148    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    151149    virtual CodeType codeType() const;
  • 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 
  • trunk/JavaScriptCore/kjs/function_object.h

    r12911 r12921  
    4040    virtual ~FunctionPrototype();
    4141
    42     virtual bool implementsCall() const;
    4342    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4443  };
     
    5453    FunctionProtoFunc(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);
    5554
    56     virtual bool implementsCall() const;
    5755    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    5856
     
    7573    virtual JSObject *construct(ExecState *exec, const List &args, const UString &sourceURL, int lineNumber);
    7674    virtual JSObject *construct(ExecState *exec, const List &args);
    77     virtual bool implementsCall() const;
    7875    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    7976  };
  • 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;
  • trunk/JavaScriptCore/kjs/math_object.cpp

    r12911 r12921  
    161161}
    162162
    163 bool MathFuncImp::implementsCall() const
    164 {
    165   return true;
    166 }
    167 
    168163JSValue *MathFuncImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
    169164{
  • trunk/JavaScriptCore/kjs/math_object.h

    r12911 r12921  
    4444  public:
    4545    MathFuncImp(ExecState *exec, int i, int l, const Identifier&);
    46     virtual bool implementsCall() const;
    4746    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4847  private:
  • trunk/JavaScriptCore/kjs/number_object.cpp

    r12911 r12921  
    7777{
    7878  putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
    79 }
    80 
    81 
    82 bool NumberProtoFunc::implementsCall() const
    83 {
    84   return true;
    8579}
    8680
     
    456450}
    457451
    458 bool NumberObjectImp::implementsCall() const
    459 {
    460   return true;
    461 }
    462 
    463452// ECMA 15.7.2
    464453JSValue *NumberObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
  • trunk/JavaScriptCore/kjs/number_object.h

    r12911 r12921  
    5959    NumberProtoFunc(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);
    6060
    61     virtual bool implementsCall() const;
    6261    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    6362
     
    8180    virtual JSObject *construct(ExecState *exec, const List &args);
    8281
    83     virtual bool implementsCall() const;
    8482    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    8583
  • trunk/JavaScriptCore/kjs/object_object.cpp

    r12911 r12921  
    6969}
    7070
    71 
    72 bool ObjectProtoFunc::implementsCall() const
    73 {
    74   return true;
    75 }
    7671
    7772// ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5, 15.2.4.7
     
    205200    return new JSObject(exec->lexicalInterpreter()->builtinObjectPrototype());
    206201  }
    207 }
    208 
    209 bool ObjectObjectImp::implementsCall() const
    210 {
    211   return true;
    212202}
    213203
  • trunk/JavaScriptCore/kjs/object_object.h

    r12911 r12921  
    5050    ObjectProtoFunc(ExecState* exec, FunctionPrototype* funcProto, int i, int len, const Identifier&);
    5151
    52     virtual bool implementsCall() const;
    5352    virtual JSValue *callAsFunction(ExecState *, JSObject *, const List &args);
    5453
     
    7372    virtual bool implementsConstruct() const;
    7473    virtual JSObject *construct(ExecState *, const List &args);
    75     virtual bool implementsCall() const;
    7674    virtual JSValue *callAsFunction(ExecState *, JSObject *, const List &args);
    7775  };
  • trunk/JavaScriptCore/kjs/regexp_object.cpp

    r12911 r12921  
    6767{
    6868  putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
    69 }
    70 
    71 bool RegExpProtoFunc::implementsCall() const
    72 {
    73   return true;
    7469}
    7570
     
    414409}
    415410
    416 bool RegExpObjectImp::implementsCall() const
    417 {
    418   return true;
    419 }
    420 
    421411// ECMA 15.10.3
    422412JSValue *RegExpObjectImp::callAsFunction(ExecState *exec, JSObject * /*thisObj*/, const List &args)
  • trunk/JavaScriptCore/kjs/regexp_object.h

    r12911 r12921  
    4343    RegExpProtoFunc(ExecState*, FunctionPrototype*, int i, int len, const Identifier&);
    4444
    45     virtual bool implementsCall() const;
    4645    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    4746
     
    7473    virtual bool implementsConstruct() const;
    7574    virtual JSObject *construct(ExecState *exec, const List &args);
    76     virtual bool implementsCall() const;
    7775    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    7876
  • trunk/JavaScriptCore/kjs/string_object.cpp

    r12911 r12921  
    173173{
    174174  putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
    175 }
    176 
    177 bool StringProtoFunc::implementsCall() const
    178 {
    179   return true;
    180175}
    181176
     
    720715}
    721716
    722 bool StringObjectImp::implementsCall() const
    723 {
    724   return true;
    725 }
    726 
    727717// ECMA 15.5.1
    728718JSValue *StringObjectImp::callAsFunction(ExecState *exec, JSObject */*thisObj*/, const List &args)
     
    743733{
    744734  putDirect(lengthPropertyName, jsNumber(1), DontDelete|ReadOnly|DontEnum);
    745 }
    746 
    747 bool StringObjectFuncImp::implementsCall() const
    748 {
    749   return true;
    750735}
    751736
  • trunk/JavaScriptCore/kjs/string_object.h

    r12911 r12921  
    7070    StringProtoFunc(ExecState *exec, int i, int len, const Identifier&);
    7171
    72     virtual bool implementsCall() const;
    7372    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    7473
     
    9998    virtual bool implementsConstruct() const;
    10099    virtual JSObject *construct(ExecState *exec, const List &args);
    101     virtual bool implementsCall() const;
    102100    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    103101  };
     
    112110  public:
    113111    StringObjectFuncImp(ExecState*, FunctionPrototype*, const Identifier&);
    114     virtual bool implementsCall() const;
    115112    virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
    116113  };
Note: See TracChangeset for help on using the changeset viewer.