| OLD | NEW |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 | 2 |
| 3 <polymer-element name="any-service-ref"> | 3 <polymer-element name="any-service-ref"> |
| 4 </polymer-element> | 4 </polymer-element> |
| 5 | 5 |
| 6 <polymer-element name="object-ref"> | |
| 7 <template><link rel="stylesheet" href="css/shared.css"> | |
| 8 | |
| 9 <template if="{{ ref.isObjectPool }}"> | |
| 10 <a on-click="{{ goto }}" _href="{{ url }}"> | |
| 11 <em>{{ ref.vmType }}</em> ({{ ref.length }}) | |
| 12 </a> | |
| 13 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> | |
| 14 <template if="{{ expanded }}"> | |
| 15 <div class="indented"> | |
| 16 <template repeat="{{ entry in ref.entries }}"> | |
| 17 <div class="memberItem"> | |
| 18 <div class="memberName">[PP+0x{{ entry['offset'].toRadixString(16)
}}]</div> | |
| 19 <div class="memberValue"> | |
| 20 <template if="{{ entry['kind'] == 'Object' }}"> | |
| 21 <any-service-ref ref="{{ entry['value'] }}"> | |
| 22 </any-service-ref> | |
| 23 </template> | |
| 24 <template if="{{ entry['kind'] == 'Immediate' }}"> | |
| 25 Immediate 0x{{ entry['value'].toRadixString(16) }} | |
| 26 </template> | |
| 27 <template if="{{ entry['kind'] == 'NativeEntry' }}"> | |
| 28 NativeEntry 0x{{ entry['value'].toRadixString(16) }} | |
| 29 </template> | |
| 30 </div> | |
| 31 </div> | |
| 32 </template> | |
| 33 </div> | |
| 34 </template> | |
| 35 </curly-block> | |
| 36 </template> | |
| 37 <template if="{{ ref.isICData || ref.isMegamorphicCache }}"> | |
| 38 <a on-click="{{ goto }}" _href="{{ url }}"> | |
| 39 <em>{{ ref.vmType }}</em> ({{ ref.selector }}) | |
| 40 </a> | |
| 41 </template> | |
| 42 <template if="{{ ref.isInstructions }}"> | |
| 43 <a on-click="{{ goto }}" _href="{{ url }}"> | |
| 44 <em>{{ ref.vmType }}</em> ({{ ref.code.name }}) | |
| 45 </a> | |
| 46 </template> | |
| 47 <template if="{{ !(ref.isObjectPool || ref.isICData || ref.isMegamorphicCach
e || ref.isInstructions) }}"> | |
| 48 <template if="{{ nameIsEmpty }}"> | |
| 49 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.vmType }}</em></a> | |
| 50 </template> | |
| 51 <template if="{{ !nameIsEmpty }}"> | |
| 52 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ name }}</em></a> | |
| 53 </template> | |
| 54 </template> | |
| 55 </template> | |
| 56 </polymer-element> | |
| 57 | |
| 58 <script type="application/dart" src="service_ref.dart"></script> | 6 <script type="application/dart" src="service_ref.dart"></script> |
| OLD | NEW |