Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: tools/generate-runtime-tests.py

Issue 290633010: Move microtask queueing logic from JavaScript to C++ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Handle comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mjsunit/runtime-gen/setmicrotaskpending.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 multiprocessing 7 import multiprocessing
8 import optparse 8 import optparse
9 import os 9 import os
10 import random 10 import random
(...skipping 14 matching lines...) Expand all
25 FUNCTIONEND = "}\n" 25 FUNCTIONEND = "}\n"
26 26
27 WORKSPACE = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "..")) 27 WORKSPACE = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
28 BASEPATH = os.path.join(WORKSPACE, "test", "mjsunit", "runtime-gen") 28 BASEPATH = os.path.join(WORKSPACE, "test", "mjsunit", "runtime-gen")
29 THIS_SCRIPT = os.path.relpath(sys.argv[0]) 29 THIS_SCRIPT = os.path.relpath(sys.argv[0])
30 30
31 # Counts of functions in each detection state. These are used to assert 31 # Counts of functions in each detection state. These are used to assert
32 # that the parser doesn't bit-rot. Change the values as needed when you add, 32 # that the parser doesn't bit-rot. Change the values as needed when you add,
33 # remove or change runtime functions, but make sure we don't lose our ability 33 # remove or change runtime functions, but make sure we don't lose our ability
34 # to parse them! 34 # to parse them!
35 EXPECTED_FUNCTION_COUNT = 338 35 EXPECTED_FUNCTION_COUNT = 337
36 EXPECTED_FUZZABLE_COUNT = 305 36 EXPECTED_FUZZABLE_COUNT = 304
37 EXPECTED_CCTEST_COUNT = 6 37 EXPECTED_CCTEST_COUNT = 6
38 EXPECTED_UNKNOWN_COUNT = 5 38 EXPECTED_UNKNOWN_COUNT = 5
39 39
40 40
41 # Don't call these at all. 41 # Don't call these at all.
42 BLACKLISTED = [ 42 BLACKLISTED = [
43 "Abort", # Kills the process. 43 "Abort", # Kills the process.
44 "AbortJS", # Kills the process. 44 "AbortJS", # Kills the process.
45 "CompileForOnStackReplacement", # Riddled with ASSERTs. 45 "CompileForOnStackReplacement", # Riddled with ASSERTs.
46 "IS_VAR", # Not implemented in the runtime. 46 "IS_VAR", # Not implemented in the runtime.
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 for i in range(len(processes)): 1122 for i in range(len(processes)):
1123 processes[i].join() 1123 processes[i].join()
1124 except KeyboardInterrupt: 1124 except KeyboardInterrupt:
1125 stop_running.set() 1125 stop_running.set()
1126 for i in range(len(processes)): 1126 for i in range(len(processes)):
1127 processes[i].join() 1127 processes[i].join()
1128 return 0 1128 return 0
1129 1129
1130 if __name__ == "__main__": 1130 if __name__ == "__main__":
1131 sys.exit(Main()) 1131 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/mjsunit/runtime-gen/setmicrotaskpending.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698