Changeset 2483 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Oct 26, 2002, 4:55:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r1863 r2483 69 69 }; 70 70 71 #if defAPPLE_CHANGES71 #if APPLE_CHANGES 72 72 static pthread_once_t interpreterLockOnce = PTHREAD_ONCE_INIT; 73 73 static pthread_mutex_t interpreterLock; … … 686 686 // add this interpreter to the global chain 687 687 // as a root set for garbage collection 688 #if defAPPLE_CHANGES688 #if APPLE_CHANGES 689 689 lockInterpreter(); 690 690 m_interpreter = interp; … … 700 700 globalInit(); 701 701 } 702 #if defAPPLE_CHANGES702 #if APPLE_CHANGES 703 703 unlockInterpreter(); 704 704 #endif 705 705 706 #if ndefAPPLE_CHANGES706 #if !APPLE_CHANGES 707 707 m_interpreter = interp; 708 708 #endif … … 847 847 //fprintf(stderr,"InterpreterImp::clear\n"); 848 848 // remove from global chain (see init()) 849 #if defAPPLE_CHANGES849 #if APPLE_CHANGES 850 850 lockInterpreter(); 851 851 #endif … … 859 859 globalClear(); 860 860 } 861 #if defAPPLE_CHANGES861 #if APPLE_CHANGES 862 862 unlockInterpreter(); 863 863 #endif … … 898 898 Completion InterpreterImp::evaluate(const UString &code, const Value &thisV) 899 899 { 900 #if defAPPLE_CHANGES900 #if APPLE_CHANGES 901 901 lockInterpreter(); 902 902 #endif 903 903 // prevent against infinite recursion 904 904 if (recursion >= 20) { 905 #if defAPPLE_CHANGES905 #if APPLE_CHANGES 906 906 Completion result = Completion(Throw,Error::create(globExec,GeneralError,"Recursion too deep")); 907 907 unlockInterpreter(); … … 922 922 bool cont = dbg->sourceParsed(globExec,sid,code,errLine); 923 923 if (!cont) 924 #if defAPPLE_CHANGES924 #if APPLE_CHANGES 925 925 { 926 pthread_mutex_unlock(&interpreterLock);926 unlockInterpreter(); 927 927 return Completion(Break); 928 928 } … … 936 936 Object err = Error::create(globExec,SyntaxError,errMsg.ascii(),errLine); 937 937 err.put(globExec,"sid",Number(sid)); 938 #if defAPPLE_CHANGES938 #if APPLE_CHANGES 939 939 unlockInterpreter(); 940 940 #endif … … 981 981 recursion--; 982 982 983 #if defAPPLE_CHANGES984 983 #if APPLE_CHANGES 984 unlockInterpreter(); 985 985 #endif 986 986 return res;
Note:
See TracChangeset
for help on using the changeset viewer.