Changeset 34412 in webkit for trunk/JavaScriptCore/kjs/lexer.cpp
- Timestamp:
- Jun 6, 2008, 11:03:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/lexer.cpp
r34273 r34412 34 34 #include <wtf/unicode/Unicode.h> 35 35 36 #if USE(MULTIPLE_THREADS)37 #include <wtf/ThreadSpecific.h>38 #endif39 40 36 using namespace WTF; 41 37 using namespace Unicode; … … 52 48 53 49 // a bridge for yacc from the C world to C++ 54 int kjsyylex(void* lvalp, void* llocp, void* lexer)55 { 56 return static_cast<Lexer*>(lexer)->lex(lvalp, llocp);50 int kjsyylex(void* lvalp, void* llocp, void* globalData) 51 { 52 return static_cast<JSGlobalData*>(globalData)->lexer->lex(lvalp, llocp); 57 53 } 58 54 … … 63 59 static const size_t initialReadBufferCapacity = 32; 64 60 static const size_t initialStringTableCapacity = 64; 65 66 Lexer& lexer()67 {68 #if USE(MULTIPLE_THREADS)69 static ThreadSpecific<Lexer> staticLexer;70 return *staticLexer;71 #else72 static Lexer staticLexer;73 return staticLexer;74 #endif75 }76 61 77 62 Lexer::Lexer()
Note:
See TracChangeset
for help on using the changeset viewer.