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

Side by Side Diff: src/trusted/validator_arm/dgen_decoder.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
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 General routines to help generate actual/baseline decoders. 9 General routines to help generate actual/baseline decoders.
10 """ 10 """
11 11
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 out.write(DECODER_USES_HEADER % values) 496 out.write(DECODER_USES_HEADER % values)
497 497
498 def _DefineUses(out, uses, values): 498 def _DefineUses(out, uses, values):
499 _DefineMethod(out, DECODER_USES_DEF, values, uses.to_register_list()) 499 _DefineMethod(out, DECODER_USES_DEF, values, uses.to_register_list())
500 500
501 _METHODS_MAP['uses'] = [_DeclareUses, _DefineUses] 501 _METHODS_MAP['uses'] = [_DeclareUses, _DefineUses]
502 dgen_core.DefineDecoderFieldType('uses', 'register_list') 502 dgen_core.DefineDecoderFieldType('uses', 'register_list')
503 503
504 """Defines the set of method fields.""" 504 """Defines the set of method fields."""
505 METHODS = sorted(set(_METHODS_MAP.keys() + _OPTIONAL_METHODS_MAP.keys())) 505 METHODS = sorted(set(_METHODS_MAP.keys() + _OPTIONAL_METHODS_MAP.keys()))
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/dgen_core.py ('k') | src/trusted/validator_arm/dgen_decoder_output.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698