OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2006-2008 the V8 project authors. All rights reserved. | 3 # Copyright 2006-2008 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 'get_index_cases': "".join(get_index_cases), | 342 'get_index_cases': "".join(get_index_cases), |
343 'get_script_source_cases': "".join(get_script_source_cases), | 343 'get_script_source_cases': "".join(get_script_source_cases), |
344 'get_script_name_cases': "".join(get_script_name_cases), | 344 'get_script_name_cases': "".join(get_script_name_cases), |
345 'type': env['TYPE'] | 345 'type': env['TYPE'] |
346 }) | 346 }) |
347 output.close() | 347 output.close() |
348 | 348 |
349 def main(): | 349 def main(): |
350 natives = sys.argv[1] | 350 natives = sys.argv[1] |
351 natives_empty = sys.argv[2] | 351 natives_empty = sys.argv[2] |
352 source_files = sys.argv[3:] | 352 type = sys.argv[3] |
353 JS2C(source_files, [natives, natives_empty], None) | 353 source_files = sys.argv[4:] |
| 354 JS2C(source_files, [natives, natives_empty], { 'TYPE': type }) |
354 | 355 |
355 if __name__ == "__main__": | 356 if __name__ == "__main__": |
356 main() | 357 main() |
OLD | NEW |