Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: runtime/vm/debugger_api_impl.cc

Issue 15338008: - Add a GetClassId() to Object, so that we do not have to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698