OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import itertools | 6 import itertools |
7 import js2c | 7 import js2c |
8 import multiprocessing | 8 import multiprocessing |
9 import optparse | 9 import optparse |
10 import os | 10 import os |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 _DATETIME_FORMAT = ( | 204 _DATETIME_FORMAT = ( |
205 "%GetImplFromInitializedIntlObject(new Intl.DateTimeFormat('en-US'))") | 205 "%GetImplFromInitializedIntlObject(new Intl.DateTimeFormat('en-US'))") |
206 _NUMBER_FORMAT = ( | 206 _NUMBER_FORMAT = ( |
207 "%GetImplFromInitializedIntlObject(new Intl.NumberFormat('en-US'))") | 207 "%GetImplFromInitializedIntlObject(new Intl.NumberFormat('en-US'))") |
208 | 208 |
209 | 209 |
210 # Custom definitions for function input that does not throw. | 210 # Custom definitions for function input that does not throw. |
211 # Format: "FunctionName": ["arg0", "arg1", ..., argslength]. | 211 # Format: "FunctionName": ["arg0", "arg1", ..., argslength]. |
212 # None means "fall back to autodetected value". | 212 # None means "fall back to autodetected value". |
213 CUSTOM_KNOWN_GOOD_INPUT = { | 213 CUSTOM_KNOWN_GOOD_INPUT = { |
214 "AddProperty": [None, 10, None, None, None], | 214 "AddNamedProperty": [None, "\"bla\"", None, None, None], |
215 "AddPropertyForTemplate": [None, 10, None, None, None], | 215 "AddPropertyForTemplate": [None, 10, None, None, None], |
216 "Apply": ["function() {}", None, None, None, None, None], | 216 "Apply": ["function() {}", None, None, None, None, None], |
217 "ArrayBufferSliceImpl": [None, None, 0, None], | 217 "ArrayBufferSliceImpl": [None, None, 0, None], |
218 "ArrayConcat": ["[1, 'a']", None], | 218 "ArrayConcat": ["[1, 'a']", None], |
219 "BreakIteratorAdoptText": [_BREAK_ITERATOR, None, None], | 219 "BreakIteratorAdoptText": [_BREAK_ITERATOR, None, None], |
220 "BreakIteratorBreakType": [_BREAK_ITERATOR, None], | 220 "BreakIteratorBreakType": [_BREAK_ITERATOR, None], |
221 "BreakIteratorCurrent": [_BREAK_ITERATOR, None], | 221 "BreakIteratorCurrent": [_BREAK_ITERATOR, None], |
222 "BreakIteratorFirst": [_BREAK_ITERATOR, None], | 222 "BreakIteratorFirst": [_BREAK_ITERATOR, None], |
223 "BreakIteratorNext": [_BREAK_ITERATOR, None], | 223 "BreakIteratorNext": [_BREAK_ITERATOR, None], |
224 "CompileString": [None, "false", None], | 224 "CompileString": [None, "false", None], |
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 for i in range(len(processes)): | 1399 for i in range(len(processes)): |
1400 processes[i].join() | 1400 processes[i].join() |
1401 except KeyboardInterrupt: | 1401 except KeyboardInterrupt: |
1402 stop_running.set() | 1402 stop_running.set() |
1403 for i in range(len(processes)): | 1403 for i in range(len(processes)): |
1404 processes[i].join() | 1404 processes[i].join() |
1405 return 0 | 1405 return 0 |
1406 | 1406 |
1407 if __name__ == "__main__": | 1407 if __name__ == "__main__": |
1408 sys.exit(Main()) | 1408 sys.exit(Main()) |
OLD | NEW |