Changeset 83860 in webkit
- Timestamp:
- Apr 14, 2011 8:47:38 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r83827 r83860 1 2011-04-14 Satish Sampath <satish@chromium.org> 2 3 Reviewed by Anders Carlsson. 4 5 Don't emit RegExp tables for chromium where they are not used 6 https://bugs.webkit.org/show_bug.cgi?id=58544 7 8 * JavaScriptCore.gyp/JavaScriptCore.gyp: 9 * create_regex_tables: Added the "--notables" command line argument. 10 1 11 2011-04-14 Patrick Gansterer <paroga@webkit.org> 2 12 -
trunk/Source/JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp
r80389 r83860 207 207 '../create_regex_tables', 208 208 ], 209 'arguments': [ 210 '--no-tables', 211 ], 209 212 'outputs': [ 210 213 '<(INTERMEDIATE_DIR)/RegExpJitTables.h', 211 214 ], 212 'action': ['python', '<@(_inputs)', '<@(_ outputs)'],215 'action': ['python', '<@(_inputs)', '<@(_arguments)', '<@(_outputs)'], 213 216 }, 214 217 ], -
trunk/Source/JavaScriptCore/create_regex_tables
r78042 r83860 36 36 arrays = ""; 37 37 functions = ""; 38 emitTables = (len(sys.argv) < 2 or sys.argv[1] != "--no-tables") 38 39 39 40 for name, classes in types.items(): … … 57 58 ranges.sort(); 58 59 59 if classes["UseTable"] and (not "Inverse" in classes):60 if emitTables and classes["UseTable"] and (not "Inverse" in classes): 60 61 array = ("static const char _%sData[65536] = {\n" % name); 61 62 i = 0 … … 88 89 function += ("CharacterClass* %sCreate()\n" % name) 89 90 function += ("{\n") 90 if classes["UseTable"]:91 if emitTables and classes["UseTable"]: 91 92 if "Inverse" in classes: 92 93 function += (" CharacterClass* characterClass = new CharacterClass(CharacterClassTable::create(_%sData, true));\n" % (classes["Inverse"]))
Note: See TracChangeset
for help on using the changeset viewer.