Ignore:
Timestamp:
Mar 28, 2006, 4:09:20 PM (19 years ago)
Author:
darin
Message:

Reviewed by Geoff.

  • change some code that resulted in init routines on Mac OS X -- if the framework has init routines it will use memory and slow down applications that link with WebKit even in cases where those applications don't use WebKit
  • kjs/date_object.cpp: Changed constants that were derived by multiplying other constants to use immediate numbers instead. Apparently, double constant expressions of the type we had here are evaluated at load time.
  • kjs/list.cpp: Can't use OwnArrayPtr in ListImp because of the global instances of ListImp, so go back to using a plain old pointer. (KJS::List::List): Set overflow to 0 when initializing ListImp. (KJS::List::release): Replace a clear call with a delete and explicit set to 0. (KJS::List::append): Use raw pointers, and do a delete [] instead of finessing it with a swap of OwnArrayPtr. (KJS::List::copyFrom): Remove now-unneeded get(). (KJS::List::copyTail): Ditto.
  • kjs/ustring.cpp: Changed UString::Rep::empty initializer a bit so that it doesn't get a static initializer routine. Had to get rid of one level of constant to get the compiler to understand it could initialize without any code.
  • added a build step that checks for init routines
  • JavaScriptCore.xcodeproj/project.pbxproj: Deleted now-unused custom build rule that was replaced by the generate-derived-sources script a while back. Added a custom build phase that invokes the check-for-global-initializers script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r13466 r13541  
    232232                93F0B3AC09BB4DC00068FCE3 /* Parser.h in Headers */ = {isa = PBXBuildFile; fileRef = 93F0B3AA09BB4DC00068FCE3 /* Parser.h */; };
    233233/* End PBXBuildFile section */
    234 
    235 /* Begin PBXBuildRule section */
    236                 937C34BA0868E21B006F4B22 /* PBXBuildRule */ = {
    237                         isa = PBXBuildRule;
    238                         compilerSpec = com.apple.compilers.proxy.script;
    239                         fileType = sourcecode.yacc;
    240                         isEditable = 1;
    241                         outputFiles = (
    242                                 "$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).h",
    243                                 "$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).cpp",
    244                         );
    245                         script = "bison -d -p kjsyy \"$INPUT_FILE_PATH\" -o \"$DERIVED_FILE_DIR/$INPUT_FILE_BASE.cpp\"\ncat \"$DERIVED_FILE_DIR/$INPUT_FILE_BASE.cpp.h\" \"$DERIVED_FILE_DIR/$INPUT_FILE_BASE.hpp\" > \"$DERIVED_FILE_DIR/$INPUT_FILE_BASE.h\" 2> /dev/null || printf \"\"";
    246                 };
    247 /* End PBXBuildRule section */
    248234
    249235/* Begin PBXBuildStyle section */
     
    952938                                932F5B3F0822A1C700736975 /* Headers */,
    953939                                932F5B910822A1C700736975 /* Sources */,
     940                                9319586B09D9F91A00A56FD4 /* Check For Global Initializers */,
    954941                                932F5BD20822A1C700736975 /* Frameworks */,
    955942                        );
    956943                        buildRules = (
    957                                 937C34BA0868E21B006F4B22 /* PBXBuildRule */,
    958944                        );
    959945                        buildSettings = {
     
    11091095                        shellPath = /bin/sh;
    11101096                        shellScript = "./generate-derived-sources\n";
     1097                };
     1098                9319586B09D9F91A00A56FD4 /* Check For Global Initializers */ = {
     1099                        isa = PBXShellScriptBuildPhase;
     1100                        buildActionMask = 2147483647;
     1101                        files = (
     1102                        );
     1103                        inputPaths = (
     1104                        );
     1105                        name = "Check For Global Initializers";
     1106                        outputPaths = (
     1107                        );
     1108                        runOnlyForDeploymentPostprocessing = 0;
     1109                        shellPath = /bin/sh;
     1110                        shellScript = "if [ -f ../WebKitTools/Scripts/check-for-global-initializers ]; then\n    ../WebKitTools/Scripts/check-for-global-initializers || exit $?\nfi";
    11111111                };
    11121112/* End PBXShellScriptBuildPhase section */
Note: See TracChangeset for help on using the changeset viewer.