| 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 #include "vm/service.h" | 5 #include "vm/service.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1867 | 1867 |
| 1868 // TODO(turnidge): Consider whether the 'Success' type is proper. | 1868 // TODO(turnidge): Consider whether the 'Success' type is proper. |
| 1869 JSONObject jsobj(js); | 1869 JSONObject jsobj(js); |
| 1870 jsobj.AddProperty("type", "Success"); | 1870 jsobj.AddProperty("type", "Success"); |
| 1871 return true; | 1871 return true; |
| 1872 } | 1872 } |
| 1873 | 1873 |
| 1874 | 1874 |
| 1875 static RawClass* GetMetricsClass(Isolate* isolate) { | 1875 static RawClass* GetMetricsClass(Isolate* isolate) { |
| 1876 const Library& prof_lib = | 1876 const Library& prof_lib = |
| 1877 Library::Handle(isolate, Library::ProfilerLibrary()); | 1877 Library::Handle(isolate, Library::DeveloperLibrary()); |
| 1878 ASSERT(!prof_lib.IsNull()); | 1878 ASSERT(!prof_lib.IsNull()); |
| 1879 const String& metrics_cls_name = | 1879 const String& metrics_cls_name = |
| 1880 String::Handle(isolate, String::New("Metrics")); | 1880 String::Handle(isolate, String::New("Metrics")); |
| 1881 ASSERT(!metrics_cls_name.IsNull()); | 1881 ASSERT(!metrics_cls_name.IsNull()); |
| 1882 const Class& metrics_cls = | 1882 const Class& metrics_cls = |
| 1883 Class::Handle(isolate, prof_lib.LookupClass(metrics_cls_name)); | 1883 Class::Handle(isolate, prof_lib.LookupClass(metrics_cls_name)); |
| 1884 ASSERT(!metrics_cls.IsNull()); | 1884 ASSERT(!metrics_cls.IsNull()); |
| 1885 return metrics_cls.raw(); | 1885 return metrics_cls.raw(); |
| 1886 } | 1886 } |
| 1887 | 1887 |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 ServiceMethodDescriptor& method = service_methods_[i]; | 2646 ServiceMethodDescriptor& method = service_methods_[i]; |
| 2647 if (strcmp(method_name, method.name) == 0) { | 2647 if (strcmp(method_name, method.name) == 0) { |
| 2648 return &method; | 2648 return &method; |
| 2649 } | 2649 } |
| 2650 } | 2650 } |
| 2651 return NULL; | 2651 return NULL; |
| 2652 } | 2652 } |
| 2653 | 2653 |
| 2654 | 2654 |
| 2655 } // namespace dart | 2655 } // namespace dart |
| OLD | NEW |