Changeset 2935 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Dec 4, 2002, 4:12:34 PM (22 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r2883 r2935 70 70 }; 71 71 72 #if APPLE_CHANGES73 72 static pthread_once_t interpreterLockOnce = PTHREAD_ONCE_INIT; 74 73 static pthread_mutex_t interpreterLock; … … 95 94 } 96 95 97 #endif98 96 99 97 … … 504 502 // add this interpreter to the global chain 505 503 // as a root set for garbage collection 506 #if APPLE_CHANGES507 504 lockInterpreter(); 508 505 m_interpreter = interp; 509 #endif510 506 if (s_hook) { 511 507 prev = s_hook; … … 518 514 globalInit(); 519 515 } 520 #if APPLE_CHANGES521 516 unlockInterpreter(); 522 #endif 523 524 #if !APPLE_CHANGES 525 m_interpreter = interp; 526 #endif 517 527 518 global = glob; 528 519 globExec = new ExecState(m_interpreter,0); … … 534 525 535 526 recursion = 0; 527 } 528 529 void InterpreterImp::lock() 530 { 531 lockInterpreter(); 532 } 533 534 void InterpreterImp::unlock() 535 { 536 unlockInterpreter(); 536 537 } 537 538 -
trunk/JavaScriptCore/kjs/internal.h
r2821 r2935 224 224 225 225 void initGlobalObject(); 226 static void lock(); 227 static void unlock(); 226 228 227 229 void mark(); -
trunk/JavaScriptCore/kjs/interpreter.cpp
r2851 r2935 90 90 } 91 91 92 void Interpreter::lock() 93 { 94 InterpreterImp::lock(); 95 } 96 97 void Interpreter::unlock() 98 { 99 InterpreterImp::unlock(); 100 } 101 92 102 ExecState *Interpreter::globalExec() 93 103 { -
trunk/JavaScriptCore/kjs/interpreter.h
r2851 r2935 146 146 void initGlobalObject(); 147 147 148 static void lock(); 149 static void unlock(); 150 148 151 /** 149 152 * Returns the execution state object which can be used to execute … … 211 214 */ 212 215 Object builtinArray() const; 213 214 216 215 217 /**
Note:
See TracChangeset
for help on using the changeset viewer.