Changeset 34673 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 19, 2008, 3:23:11 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r34664 r34673 1 2008-06-19 Alexey Proskuryakov <[email protected]> 2 3 Reviewed by Darin. 4 5 Get rid of some threadInstance calls. 6 7 * kjs/JSGlobalObject.cpp: 8 (KJS::JSGlobalObject::init): 9 * kjs/Parser.cpp: 10 (KJS::Parser::parse): 11 * kjs/Shell.cpp: 12 (jscmain): 13 1 14 2008-06-19 Alexey Proskuryakov <[email protected]> 2 15 -
trunk/JavaScriptCore/kjs/JSGlobalObject.cpp
r34659 r34673 129 129 d()->debugger = 0; 130 130 131 d()->globalData = &JSGlobalData::threadInstance();131 d()->globalData = (Heap::heap(this) == JSGlobalData::sharedInstance().heap) ? &JSGlobalData::sharedInstance() : &JSGlobalData::threadInstance(); 132 132 133 133 d()->globalExec.set(new ExecState(this, thisValue, d()->globalScopeChain.node())); -
trunk/JavaScriptCore/kjs/Parser.cpp
r34628 r34673 62 62 *errMsg = 0; 63 63 64 Lexer& lexer = * JSGlobalData::threadInstance().lexer;64 Lexer& lexer = *exec->lexer(); 65 65 66 66 if (startingLineNumber <= 0) … … 70 70 *sourceId = ++m_sourceId; 71 71 72 int parseError = kjsyyparse(& JSGlobalData::threadInstance());72 int parseError = kjsyyparse(&exec->globalData()); 73 73 bool lexError = lexer.sawError(); 74 74 lexer.clear(); -
trunk/JavaScriptCore/kjs/Shell.cpp
r34659 r34673 453 453 454 454 #ifndef NDEBUG 455 JSGlobalData::threadInstance().heap->collect();455 globalObject->globalData()->heap->collect(); 456 456 #endif 457 457
Note:
See TracChangeset
for help on using the changeset viewer.