| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 | 6 |
| 7 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
| 8 #include "vm/dart_api_state.h" | 8 #include "vm/dart_api_state.h" |
| 9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 return Api::NewHandle(isolate, obj.clazz()); | 485 return Api::NewHandle(isolate, obj.clazz()); |
| 486 } | 486 } |
| 487 | 487 |
| 488 | 488 |
| 489 DART_EXPORT Dart_Handle Dart_GetObjClassId(Dart_Handle object_in, | 489 DART_EXPORT Dart_Handle Dart_GetObjClassId(Dart_Handle object_in, |
| 490 intptr_t* class_id) { | 490 intptr_t* class_id) { |
| 491 Isolate* isolate = Isolate::Current(); | 491 Isolate* isolate = Isolate::Current(); |
| 492 DARTSCOPE(isolate); | 492 DARTSCOPE(isolate); |
| 493 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); | 493 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); |
| 494 CHECK_NOT_NULL(class_id); | 494 CHECK_NOT_NULL(class_id); |
| 495 *class_id = Class::Handle(obj.clazz()).id(); | 495 *class_id = obj.GetClassId(); |
| 496 return Api::True(isolate); | 496 return Api::True(isolate); |
| 497 } | 497 } |
| 498 | 498 |
| 499 | 499 |
| 500 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls_in) { | 500 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls_in) { |
| 501 Isolate* isolate = Isolate::Current(); | 501 Isolate* isolate = Isolate::Current(); |
| 502 DARTSCOPE(isolate); | 502 DARTSCOPE(isolate); |
| 503 UNWRAP_AND_CHECK_PARAM(Class, cls, cls_in); | 503 UNWRAP_AND_CHECK_PARAM(Class, cls, cls_in); |
| 504 return Api::NewHandle(isolate, cls.SuperClass()); | 504 return Api::NewHandle(isolate, cls.SuperClass()); |
| 505 } | 505 } |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 | 773 |
| 774 | 774 |
| 775 DART_EXPORT char* Dart_GetVmStatus(const char* request) { | 775 DART_EXPORT char* Dart_GetVmStatus(const char* request) { |
| 776 if (strncmp(request, "/isolate/", 9) == 0) { | 776 if (strncmp(request, "/isolate/", 9) == 0) { |
| 777 return Isolate::GetStatus(request); | 777 return Isolate::GetStatus(request); |
| 778 } | 778 } |
| 779 return NULL; | 779 return NULL; |
| 780 } | 780 } |
| 781 | 781 |
| 782 } // namespace dart | 782 } // namespace dart |
| OLD | NEW |