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

Side by Side Diff: src/trusted/validator_arm/dgen_baselines.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_add_patterns.py ('k') | src/trusted/validator_arm/dgen_core.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) 2013 The Native Client Authors. All rights reserved. 3 # Copyright (c) 2013 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 Responsible for generating baseline classes based on representations 9 Responsible for generating baseline classes based on representations
10 in the decoder table file armv7.table. 10 in the decoder table file armv7.table.
11 11
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 of the row.""" 381 of the row."""
382 action = row.action.copy() 382 action = row.action.copy()
383 return dgen_core.Row(list(row.patterns), _AddBaselineToAction(action)) 383 return dgen_core.Row(list(row.patterns), _AddBaselineToAction(action))
384 384
385 def _AddBaselineToAction(action): 385 def _AddBaselineToAction(action):
386 action = action.copy() 386 action = action.copy()
387 if (isinstance(action, dgen_core.DecoderAction) and 387 if (isinstance(action, dgen_core.DecoderAction) and
388 dgen_decoder.ActionDefinesDecoder(action)): 388 dgen_decoder.ActionDefinesDecoder(action)):
389 action.define('baseline', BaselineName(action)) 389 action.define('baseline', BaselineName(action))
390 return action 390 return action
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/dgen_add_patterns.py ('k') | src/trusted/validator_arm/dgen_core.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698