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

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

Issue 464473002: Add "own" symbols support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes for 64-bit builds Created 6 years, 4 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/createprivateownsymbol.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 js2c 7 import js2c
8 import multiprocessing 8 import multiprocessing
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 29 matching lines...) Expand all
40 # functions they define are so trivial that it's unclear how much benefit 40 # functions they define are so trivial that it's unclear how much benefit
41 # that would provide: 41 # that would provide:
42 # ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION 42 # ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION
43 # FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 43 # FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
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 = 428 50 EXPECTED_FUNCTION_COUNT = 429
51 EXPECTED_FUZZABLE_COUNT = 331 51 EXPECTED_FUZZABLE_COUNT = 332
52 EXPECTED_CCTEST_COUNT = 7 52 EXPECTED_CCTEST_COUNT = 7
53 EXPECTED_UNKNOWN_COUNT = 16 53 EXPECTED_UNKNOWN_COUNT = 16
54 EXPECTED_BUILTINS_COUNT = 808 54 EXPECTED_BUILTINS_COUNT = 808
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 DCHECK. 61 "CompileForOnStackReplacement", # Riddled with DCHECK.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 "ArrayConcat": ["[1, 'a']", None], 219 "ArrayConcat": ["[1, 'a']", None],
220 "BreakIteratorAdoptText": [_BREAK_ITERATOR, None, None], 220 "BreakIteratorAdoptText": [_BREAK_ITERATOR, None, None],
221 "BreakIteratorBreakType": [_BREAK_ITERATOR, None], 221 "BreakIteratorBreakType": [_BREAK_ITERATOR, None],
222 "BreakIteratorCurrent": [_BREAK_ITERATOR, None], 222 "BreakIteratorCurrent": [_BREAK_ITERATOR, None],
223 "BreakIteratorFirst": [_BREAK_ITERATOR, None], 223 "BreakIteratorFirst": [_BREAK_ITERATOR, None],
224 "BreakIteratorNext": [_BREAK_ITERATOR, None], 224 "BreakIteratorNext": [_BREAK_ITERATOR, None],
225 "CompileString": [None, "false", None], 225 "CompileString": [None, "false", None],
226 "CreateBreakIterator": ["'en-US'", "{type: 'string'}", None, None], 226 "CreateBreakIterator": ["'en-US'", "{type: 'string'}", None, None],
227 "CreateJSFunctionProxy": [None, "function() {}", None, None, None], 227 "CreateJSFunctionProxy": [None, "function() {}", None, None, None],
228 "CreatePrivateSymbol": ["\"foo\"", None], 228 "CreatePrivateSymbol": ["\"foo\"", None],
229 "CreatePrivateOwnSymbol": ["\"foo\"", None],
229 "CreateSymbol": ["\"foo\"", None], 230 "CreateSymbol": ["\"foo\"", None],
230 "DateParseString": [None, "new Array(8)", None], 231 "DateParseString": [None, "new Array(8)", None],
231 "DefineAccessorPropertyUnchecked": [None, None, "function() {}", 232 "DefineAccessorPropertyUnchecked": [None, None, "function() {}",
232 "function() {}", 2, None], 233 "function() {}", 2, None],
233 "FunctionBindArguments": [None, None, "undefined", None, None], 234 "FunctionBindArguments": [None, None, "undefined", None, None],
234 "GetBreakLocations": [None, 0, None], 235 "GetBreakLocations": [None, 0, None],
235 "GetDefaultReceiver": ["function() {}", None], 236 "GetDefaultReceiver": ["function() {}", None],
236 "GetImplFromInitializedIntlObject": ["new Intl.NumberFormat('en-US')", None], 237 "GetImplFromInitializedIntlObject": ["new Intl.NumberFormat('en-US')", None],
237 "InternalCompare": [_COLLATOR, None, None, None], 238 "InternalCompare": [_COLLATOR, None, None, None],
238 "InternalDateFormat": [_DATETIME_FORMAT, None, None], 239 "InternalDateFormat": [_DATETIME_FORMAT, None, None],
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 for i in range(len(processes)): 1403 for i in range(len(processes)):
1403 processes[i].join() 1404 processes[i].join()
1404 except KeyboardInterrupt: 1405 except KeyboardInterrupt:
1405 stop_running.set() 1406 stop_running.set()
1406 for i in range(len(processes)): 1407 for i in range(len(processes)):
1407 processes[i].join() 1408 processes[i].join()
1408 return 0 1409 return 0
1409 1410
1410 if __name__ == "__main__": 1411 if __name__ == "__main__":
1411 sys.exit(Main()) 1412 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/mjsunit/runtime-gen/createprivateownsymbol.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698