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

Side by Side Diff: Source/core/inspector/CodeGeneratorInspector.py

Issue 958893002: Inspector: Store array of small numbers in 16 bit instead of 64 bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | Source/core/inspector/CodeGeneratorInspectorStrings.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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 Google Inc. All rights reserved. 2 # Copyright (c) 2011 Google Inc. All rights reserved.
3 # Copyright (c) 2012 Intel Corporation. All rights reserved. 3 # Copyright (c) 2012 Intel Corporation. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 agentField=agent_field, 1875 agentField=agent_field,
1876 methodCode="".join([method_in_code, method_out_code]), 1876 methodCode="".join([method_in_code, method_out_code]),
1877 agentCallParamsDeclaration="\n".join(agent_call_params_declaration_l ist), 1877 agentCallParamsDeclaration="\n".join(agent_call_params_declaration_l ist),
1878 agentCallParams=", ".join(agent_call_param_list), 1878 agentCallParams=", ".join(agent_call_param_list),
1879 requestMessageObject=request_message_param, 1879 requestMessageObject=request_message_param,
1880 responseCook=normal_response_cook_text, 1880 responseCook=normal_response_cook_text,
1881 sendResponseCallParams=", ".join(send_response_call_params_list), 1881 sendResponseCallParams=", ".join(send_response_call_params_list),
1882 commandNameIndex=cmd_enum_name)) 1882 commandNameIndex=cmd_enum_name))
1883 declaration_command_name = "%s.%s\\0" % (domain_name, json_command_name) 1883 declaration_command_name = "%s.%s\\0" % (domain_name, json_command_name)
1884 Generator.backend_method_name_declaration_list.append(" \"%s\"" % dec laration_command_name) 1884 Generator.backend_method_name_declaration_list.append(" \"%s\"" % dec laration_command_name)
1885 assert Generator.backend_method_name_declaration_current_index < 2 ** 16 , "Number too large for unsigned short."
1885 Generator.backend_method_name_declaration_index_list.append(" %d," % Generator.backend_method_name_declaration_current_index) 1886 Generator.backend_method_name_declaration_index_list.append(" %d," % Generator.backend_method_name_declaration_current_index)
1886 Generator.backend_method_name_declaration_current_index += len(declarati on_command_name) - 1 1887 Generator.backend_method_name_declaration_current_index += len(declarati on_command_name) - 1
1887 1888
1888 backend_agent_interface_list.append(") = 0;\n") 1889 backend_agent_interface_list.append(") = 0;\n")
1889 1890
1890 class CallbackMethodStructTemplate: 1891 class CallbackMethodStructTemplate:
1891 @staticmethod 1892 @staticmethod
1892 def append_prolog(line_list): 1893 def append_prolog(line_list):
1893 pass 1894 pass
1894 1895
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 validatorIfdefName=VALIDATOR_IFDEF_NAME)) 2119 validatorIfdefName=VALIDATOR_IFDEF_NAME))
2119 2120
2120 backend_h_file.close() 2121 backend_h_file.close()
2121 backend_cpp_file.close() 2122 backend_cpp_file.close()
2122 2123
2123 frontend_h_file.close() 2124 frontend_h_file.close()
2124 frontend_cpp_file.close() 2125 frontend_cpp_file.close()
2125 2126
2126 typebuilder_h_file.close() 2127 typebuilder_h_file.close()
2127 typebuilder_cpp_file.close() 2128 typebuilder_cpp_file.close()
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/CodeGeneratorInspectorStrings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698