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

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

Issue 32713002: Move more data from .data to the .rodata section (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDebuggerAgent.h » ('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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1274
1275 validator_writer.newline("\n\n") 1275 validator_writer.newline("\n\n")
1276 1276
1277 if is_open_type: 1277 if is_open_type:
1278 cpp_writer = generate_context.cpp_writer 1278 cpp_writer = generate_context.cpp_writer
1279 writer.append("\n") 1279 writer.append("\n")
1280 writer.newline(" // Property names for ty pe generated as open.\n") 1280 writer.newline(" // Property names for ty pe generated as open.\n")
1281 for prop_data in resolve_data.main_propertie s + resolve_data.optional_properties: 1281 for prop_data in resolve_data.main_propertie s + resolve_data.optional_properties:
1282 prop_name = prop_data.p["name"] 1282 prop_name = prop_data.p["name"]
1283 prop_field_name = Capitalizer.lower_came l_case_to_upper(prop_name) 1283 prop_field_name = Capitalizer.lower_came l_case_to_upper(prop_name)
1284 writer.newline(" static const char* % s;\n" % (prop_field_name)) 1284 writer.newline(" static const char %s [];\n" % (prop_field_name))
1285 cpp_writer.newline("const char* %s%s::%s = \"%s\";\n" % (helper.full_name_prefix_for_impl, class_name, prop_field_name, prop_name)) 1285 cpp_writer.newline("const char %s%s::%s[ ] = \"%s\";\n" % (helper.full_name_prefix_for_impl, class_name, prop_field_name, prop_name))
1286 1286
1287 1287
1288 writer.newline("};\n\n") 1288 writer.newline("};\n\n")
1289 1289
1290 @staticmethod 1290 @staticmethod
1291 def generate_forward_declaration(writer): 1291 def generate_forward_declaration(writer):
1292 class_name = fixed_type_name.class_name 1292 class_name = fixed_type_name.class_name
1293 writer.newline("class ") 1293 writer.newline("class ")
1294 writer.append(class_name) 1294 writer.append(class_name)
1295 writer.append(";\n") 1295 writer.append(";\n")
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 validatorIfdefName=VALIDATOR_IFDEF_NAME)) 2331 validatorIfdefName=VALIDATOR_IFDEF_NAME))
2332 2332
2333 backend_h_file.close() 2333 backend_h_file.close()
2334 backend_cpp_file.close() 2334 backend_cpp_file.close()
2335 2335
2336 frontend_h_file.close() 2336 frontend_h_file.close()
2337 frontend_cpp_file.close() 2337 frontend_cpp_file.close()
2338 2338
2339 typebuilder_h_file.close() 2339 typebuilder_h_file.close()
2340 typebuilder_cpp_file.close() 2340 typebuilder_cpp_file.close()
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698