| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 switch (object.vmType) { | 82 switch (object.vmType) { |
| 83 case 'ICData': | 83 case 'ICData': |
| 84 ICDataViewElement element = new Element.tag('icdata-view'); | 84 ICDataViewElement element = new Element.tag('icdata-view'); |
| 85 element.icData = object; | 85 element.icData = object; |
| 86 return element; | 86 return element; |
| 87 case 'Instructions': | 87 case 'Instructions': |
| 88 InstructionsViewElement element = | 88 InstructionsViewElement element = |
| 89 new Element.tag('instructions-view'); | 89 new Element.tag('instructions-view'); |
| 90 element.instructions = object; | 90 element.instructions = object; |
| 91 return element; | 91 return element; |
| 92 case 'MegamorphicCache': |
| 93 MegamorphicCacheViewElement element = |
| 94 new Element.tag('megamorphiccache-view'); |
| 95 element.megamorphicCache = object; |
| 96 return element; |
| 92 case 'ObjectPool': | 97 case 'ObjectPool': |
| 93 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; | 98 ObjectPoolViewElement element = new Element.tag('objectpool-view')
; |
| 94 element.pool = object; | 99 element.pool = object; |
| 95 return element; | 100 return element; |
| 96 default: | 101 default: |
| 97 ObjectViewElement element = new Element.tag('object-view'); | 102 ObjectViewElement element = new Element.tag('object-view'); |
| 98 element.object = object; | 103 element.object = object; |
| 99 return element; | 104 return element; |
| 100 } | 105 } |
| 101 }(object); | 106 }(object); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 234 |
| 230 dynamic expander() { | 235 dynamic expander() { |
| 231 return expandEvent; | 236 return expandEvent; |
| 232 } | 237 } |
| 233 | 238 |
| 234 void expandEvent(bool exp, var done) { | 239 void expandEvent(bool exp, var done) { |
| 235 expand = exp; | 240 expand = exp; |
| 236 done(); | 241 done(); |
| 237 } | 242 } |
| 238 } | 243 } |
| OLD | NEW |