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/dgen/dgen_decoder_output.py

Issue 10191011: Moving dgen_ scripts out of validator_arm into a common directory. (Closed)
Patch Set: Updates per code review. Created 8 years, 8 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/dgen/dgen_core.py ('k') | src/trusted/validator/dgen/dgen_dump.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/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 Responsible for generating the decoder based on parsed 9 Responsible for generating the decoder based on parsed
10 table representations. 10 table representations.
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 out.write(METHOD_DISPATCH % values) 264 out.write(METHOD_DISPATCH % values)
265 if row.action.__class__.__name__ == 'DecoderAction': 265 if row.action.__class__.__name__ == 'DecoderAction':
266 values['decoder'] = row.action.name 266 values['decoder'] = row.action.name
267 out.write(METHOD_DISPATCH_CLASS_DECODER % values) 267 out.write(METHOD_DISPATCH_CLASS_DECODER % values)
268 elif row.action.__class__.__name__ == 'DecoderMethod': 268 elif row.action.__class__.__name__ == 'DecoderMethod':
269 values['subtable_name'] = row.action.name 269 values['subtable_name'] = row.action.name
270 out.write(METHOD_DISPATCH_SUBMETHOD % values) 270 out.write(METHOD_DISPATCH_SUBMETHOD % values)
271 else: 271 else:
272 raise Exception('Bad table action: %s' % repr(row.action)) 272 raise Exception('Bad table action: %s' % repr(row.action))
273 out.write(METHOD_FOOTER % values) 273 out.write(METHOD_FOOTER % values)
OLDNEW
« no previous file with comments | « src/trusted/validator/dgen/dgen_core.py ('k') | src/trusted/validator/dgen/dgen_dump.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698