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

Side by Side Diff: tools/utils.py

Issue 1559223003: Treat R19 is a C preserved register, fixing crashing on Linux ARM64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« runtime/vm/constants_arm64.h ('K') | « tools/build.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 # This file contains a set of utilities functions used by other Python-based 5 # This file contains a set of utilities functions used by other Python-based
6 # scripts. 6 # scripts.
7 7
8 import commands 8 import commands
9 import datetime 9 import datetime
10 import json 10 import json
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 def CheckedInSdkExecutable(): 619 def CheckedInSdkExecutable():
620 name = 'dart' 620 name = 'dart'
621 if IsWindows(): 621 if IsWindows():
622 name = 'dart.exe' 622 name = 'dart.exe'
623 elif GuessOS() == 'linux': 623 elif GuessOS() == 'linux':
624 arch = GuessArchitecture() 624 arch = GuessArchitecture()
625 if arch == 'mips': 625 if arch == 'mips':
626 name = 'dart-mips' 626 name = 'dart-mips'
627 elif arch == 'arm': 627 elif arch == 'arm':
628 name = 'dart-arm' 628 name = 'dart-arm'
629 elif arch == 'arm64':
630 name = 'dart-arm'
629 return os.path.join(CheckedInSdkPath(), 'bin', name) 631 return os.path.join(CheckedInSdkPath(), 'bin', name)
630 632
631 633
632 def CheckedInSdkCheckExecutable(): 634 def CheckedInSdkCheckExecutable():
633 executable = CheckedInSdkExecutable() 635 executable = CheckedInSdkExecutable()
634 canary_script = os.path.join(os.path.dirname(os.path.realpath(__file__)), 636 canary_script = os.path.join(os.path.dirname(os.path.realpath(__file__)),
635 'canary.dart') 637 'canary.dart')
636 try: 638 try:
637 with open(os.devnull, 'wb') as silent_sink: 639 with open(os.devnull, 'wb') as silent_sink:
638 if 0 == subprocess.call([executable, canary_script], stdout=silent_sink): 640 if 0 == subprocess.call([executable, canary_script], stdout=silent_sink):
(...skipping 25 matching lines...) Expand all
664 os.chdir(self._working_directory) 666 os.chdir(self._working_directory)
665 667
666 def __exit__(self, *_): 668 def __exit__(self, *_):
667 print "Enter directory = ", self._old_cwd 669 print "Enter directory = ", self._old_cwd
668 os.chdir(self._old_cwd) 670 os.chdir(self._old_cwd)
669 671
670 672
671 if __name__ == "__main__": 673 if __name__ == "__main__":
672 import sys 674 import sys
673 Main() 675 Main()
OLDNEW
« runtime/vm/constants_arm64.h ('K') | « tools/build.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698