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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 # TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION | 44 # TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
45 | 45 |
46 # Counts of functions in each detection state. These are used to assert | 46 # Counts of functions in each detection state. These are used to assert |
47 # that the parser doesn't bit-rot. Change the values as needed when you add, | 47 # that the parser doesn't bit-rot. Change the values as needed when you add, |
48 # remove or change runtime functions, but make sure we don't lose our ability | 48 # remove or change runtime functions, but make sure we don't lose our ability |
49 # to parse them! | 49 # to parse them! |
50 EXPECTED_FUNCTION_COUNT = 362 | 50 EXPECTED_FUNCTION_COUNT = 362 |
51 EXPECTED_FUZZABLE_COUNT = 329 | 51 EXPECTED_FUZZABLE_COUNT = 329 |
52 EXPECTED_CCTEST_COUNT = 6 | 52 EXPECTED_CCTEST_COUNT = 6 |
53 EXPECTED_UNKNOWN_COUNT = 5 | 53 EXPECTED_UNKNOWN_COUNT = 5 |
54 EXPECTED_BUILTINS_COUNT = 827 | 54 EXPECTED_BUILTINS_COUNT = 826 |
55 | 55 |
56 | 56 |
57 # Don't call these at all. | 57 # Don't call these at all. |
58 BLACKLISTED = [ | 58 BLACKLISTED = [ |
59 "Abort", # Kills the process. | 59 "Abort", # Kills the process. |
60 "AbortJS", # Kills the process. | 60 "AbortJS", # Kills the process. |
61 "CompileForOnStackReplacement", # Riddled with ASSERTs. | 61 "CompileForOnStackReplacement", # Riddled with ASSERTs. |
62 "IS_VAR", # Not implemented in the runtime. | 62 "IS_VAR", # Not implemented in the runtime. |
63 "ListNatives", # Not available in Release mode. | 63 "ListNatives", # Not available in Release mode. |
64 "SetAllocationTimeout", # Too slow for fuzzing. | 64 "SetAllocationTimeout", # Too slow for fuzzing. |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 for i in range(len(processes)): | 1306 for i in range(len(processes)): |
1307 processes[i].join() | 1307 processes[i].join() |
1308 except KeyboardInterrupt: | 1308 except KeyboardInterrupt: |
1309 stop_running.set() | 1309 stop_running.set() |
1310 for i in range(len(processes)): | 1310 for i in range(len(processes)): |
1311 processes[i].join() | 1311 processes[i].join() |
1312 return 0 | 1312 return 0 |
1313 | 1313 |
1314 if __name__ == "__main__": | 1314 if __name__ == "__main__": |
1315 sys.exit(Main()) | 1315 sys.exit(Main()) |
OLD | NEW |