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

Side by Side Diff: tools/testrunner/local/utils.py

Issue 143403004: Fix deopt fuzzer variable set up. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | « tools/run-tests.py ('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 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 elif system == 'OpenBSD': 71 elif system == 'OpenBSD':
72 return 'openbsd' 72 return 'openbsd'
73 elif system == 'SunOS': 73 elif system == 'SunOS':
74 return 'solaris' 74 return 'solaris'
75 elif system == 'NetBSD': 75 elif system == 'NetBSD':
76 return 'netbsd' 76 return 'netbsd'
77 else: 77 else:
78 return None 78 return None
79 79
80 80
81 def UseSimulator(arch):
82 machine = platform.machine()
83 return (machine and
84 (arch == "mipsel" or arch == "arm") and
85 not arch.startswith(machine))
86
87
81 # This will default to building the 32 bit VM even on machines that are 88 # This will default to building the 32 bit VM even on machines that are
82 # capable of running the 64 bit VM. 89 # capable of running the 64 bit VM.
83 def DefaultArch(): 90 def DefaultArch():
84 machine = platform.machine() 91 machine = platform.machine()
85 machine = machine.lower() # Windows 7 capitalizes 'AMD64'. 92 machine = machine.lower() # Windows 7 capitalizes 'AMD64'.
86 if machine.startswith('arm'): 93 if machine.startswith('arm'):
87 return 'arm' 94 return 'arm'
88 elif (not machine) or (not re.match('(x|i[3-6])86$', machine) is None): 95 elif (not machine) or (not re.match('(x|i[3-6])86$', machine) is None):
89 return 'ia32' 96 return 'ia32'
90 elif machine == 'i86pc': 97 elif machine == 'i86pc':
91 return 'ia32' 98 return 'ia32'
92 elif machine == 'x86_64': 99 elif machine == 'x86_64':
93 return 'ia32' 100 return 'ia32'
94 elif machine == 'amd64': 101 elif machine == 'amd64':
95 return 'ia32' 102 return 'ia32'
96 else: 103 else:
97 return None 104 return None
98 105
99 106
100 def GuessWordsize(): 107 def GuessWordsize():
101 if '64' in platform.machine(): 108 if '64' in platform.machine():
102 return '64' 109 return '64'
103 else: 110 else:
104 return '32' 111 return '32'
105 112
106 113
107 def IsWindows(): 114 def IsWindows():
108 return GuessOS() == 'windows' 115 return GuessOS() == 'windows'
OLDNEW
« no previous file with comments | « tools/run-tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698