OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |