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

Side by Side Diff: src/trusted/validator_arm/dgen_core.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 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
« no previous file with comments | « src/trusted/validator_arm/dgen_baselines.py ('k') | src/trusted/validator_arm/dgen_decoder.py » ('j') | 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/python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 """ 8 """
9 The core object model for the Decoder Generator. The dg_input and 9 The core object model for the Decoder Generator. The dg_input and
10 dg_output modules both operate in terms of these classes. 10 dg_output modules both operate in terms of these classes.
11 """ 11 """
(...skipping 2505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2517 """ 2517 """
2518 return (lambda exp, return_type, options: 2518 return (lambda exp, return_type, options:
2519 (name if exp.matches_signature(([], type), return_type) != None 2519 (name if exp.matches_signature(([], type), return_type) != None
2520 else None)) 2520 else None))
2521 2521
2522 """Defines special processing fuctions if the signature matches.""" 2522 """Defines special processing fuctions if the signature matches."""
2523 _FUNCTION_TRANSLATION_MAP = { 2523 _FUNCTION_TRANSLATION_MAP = {
2524 'ZeroExtend': [_TranslateZeroExtend, _ToBitFieldExtend], 2524 'ZeroExtend': [_TranslateZeroExtend, _ToBitFieldExtend],
2525 'SignExtend': [_TranslateSignExtend, _ToBitFieldExtend], 2525 'SignExtend': [_TranslateSignExtend, _ToBitFieldExtend],
2526 } 2526 }
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/dgen_baselines.py ('k') | src/trusted/validator_arm/dgen_decoder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698