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

Side by Side Diff: Source/bindings/scripts/v8_utilities.py

Issue 1058963002: many use counters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.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 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 return ''.join([cpp_class_name, 'Partial']) 358 return ''.join([cpp_class_name, 'Partial'])
359 return cpp_class_name 359 return cpp_class_name
360 360
361 361
362 # [MeasureAs] 362 # [MeasureAs]
363 def measure_as(definition_or_member, interface): 363 def measure_as(definition_or_member, interface):
364 extended_attributes = definition_or_member.extended_attributes 364 extended_attributes = definition_or_member.extended_attributes
365 if 'MeasureAs' in extended_attributes: 365 if 'MeasureAs' in extended_attributes:
366 includes.add('core/frame/UseCounter.h') 366 includes.add('core/frame/UseCounter.h')
367 return lambda suffix: extended_attributes['MeasureAs'] 367 return lambda suffix: extended_attributes['MeasureAs']
368 if 'Measure' in extended_attributes: 368 elif definition_or_member.name not in ('TEMPORARY', 'PERSISTENT'):
369 includes.add('core/frame/UseCounter.h') 369 includes.add('core/frame/UseCounter.h')
370 measure_as_name = capitalize(definition_or_member.name) 370 measure_as_name = capitalize(definition_or_member.name)
371 if interface is not None: 371 if interface is not None:
372 measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_ name) 372 measure_as_name = '%s_%s' % (capitalize(interface.name), measure_as_ name)
373 return lambda suffix: 'V8%s_%s' % (measure_as_name, suffix) 373 return lambda suffix: 'V8%s_%s' % (measure_as_name, suffix)
374 return None 374 return None
375 375
376 376
377 # [PerContextEnabled] 377 # [PerContextEnabled]
378 def per_context_enabled_function_name(definition_or_member): 378 def per_context_enabled_function_name(definition_or_member):
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 except StopIteration: 508 except StopIteration:
509 return None 509 return None
510 510
511 511
512 IdlInterface.indexed_property_getter = property(indexed_property_getter) 512 IdlInterface.indexed_property_getter = property(indexed_property_getter)
513 IdlInterface.indexed_property_setter = property(indexed_property_setter) 513 IdlInterface.indexed_property_setter = property(indexed_property_setter)
514 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) 514 IdlInterface.indexed_property_deleter = property(indexed_property_deleter)
515 IdlInterface.named_property_getter = property(named_property_getter) 515 IdlInterface.named_property_getter = property(named_property_getter)
516 IdlInterface.named_property_setter = property(named_property_setter) 516 IdlInterface.named_property_setter = property(named_property_setter)
517 IdlInterface.named_property_deleter = property(named_property_deleter) 517 IdlInterface.named_property_deleter = property(named_property_deleter)
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698