| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library service_object_view_element; | 5 library service_object_view_element; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'package:logging/logging.dart'; | 8 import 'package:logging/logging.dart'; |
| 9 import 'package:observatory/service.dart'; | 9 import 'package:observatory/service.dart'; |
| 10 import 'package:observatory/tracer.dart'; | 10 import 'package:observatory/tracer.dart'; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 FieldViewElement element = new Element.tag('field-view'); | 34 FieldViewElement element = new Element.tag('field-view'); |
| 35 element.field = object; | 35 element.field = object; |
| 36 return element; | 36 return element; |
| 37 case 'Function': | 37 case 'Function': |
| 38 FunctionViewElement element = new Element.tag('function-view'); | 38 FunctionViewElement element = new Element.tag('function-view'); |
| 39 element.function = object; | 39 element.function = object; |
| 40 return element; | 40 return element; |
| 41 case 'Object': | 41 case 'Object': |
| 42 return (object) { | 42 return (object) { |
| 43 switch (object.vmType) { | 43 switch (object.vmType) { |
| 44 case 'MegamorphicCache': | |
| 45 MegamorphicCacheViewElement element = | |
| 46 new Element.tag('megamorphiccache-view'); | |
| 47 element.megamorphicCache = object; | |
| 48 return element; | |
| 49 case 'ObjectPool': | 44 case 'ObjectPool': |
| 50 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; | 45 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; |
| 51 element.pool = object; | 46 element.pool = object; |
| 52 return element; | 47 return element; |
| 53 default: | 48 default: |
| 54 ObjectViewElement element = new Element.tag('object-view'); | 49 ObjectViewElement element = new Element.tag('object-view'); |
| 55 element.object = object; | 50 element.object = object; |
| 56 return element; | 51 return element; |
| 57 } | 52 } |
| 58 }(object); | 53 }(object); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 144 |
| 150 dynamic expander() { | 145 dynamic expander() { |
| 151 return expandEvent; | 146 return expandEvent; |
| 152 } | 147 } |
| 153 | 148 |
| 154 void expandEvent(bool exp, var done) { | 149 void expandEvent(bool exp, var done) { |
| 155 expand = exp; | 150 expand = exp; |
| 156 done(); | 151 done(); |
| 157 } | 152 } |
| 158 } | 153 } |
| OLD | NEW |