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

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

Issue 10441111: - Rename class index to class id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/dart_api_impl.cc ('k') | runtime/vm/intrinsifier_ia32.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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 398 }
399 399
400 400
401 DART_EXPORT Dart_Handle Dart_GetObjClassId(Dart_Handle object_in, 401 DART_EXPORT Dart_Handle Dart_GetObjClassId(Dart_Handle object_in,
402 intptr_t* class_id) { 402 intptr_t* class_id) {
403 Isolate* isolate = Isolate::Current(); 403 Isolate* isolate = Isolate::Current();
404 DARTSCOPE(isolate); 404 DARTSCOPE(isolate);
405 Instance& obj = Instance::Handle(); 405 Instance& obj = Instance::Handle();
406 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); 406 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in);
407 CHECK_NOT_NULL(class_id); 407 CHECK_NOT_NULL(class_id);
408 *class_id = Class::Handle(obj.clazz()).index(); 408 *class_id = Class::Handle(obj.clazz()).id();
409 return Api::True(isolate); 409 return Api::True(isolate);
410 } 410 }
411 411
412 412
413 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls_in) { 413 DART_EXPORT Dart_Handle Dart_GetSuperclass(Dart_Handle cls_in) {
414 Isolate* isolate = Isolate::Current(); 414 Isolate* isolate = Isolate::Current();
415 DARTSCOPE(isolate); 415 DARTSCOPE(isolate);
416 Class& cls = Class::Handle(); 416 Class& cls = Class::Handle();
417 UNWRAP_AND_CHECK_PARAM(Class, cls, cls_in); 417 UNWRAP_AND_CHECK_PARAM(Class, cls, cls_in);
418 return Api::NewHandle(isolate, cls.SuperClass()); 418 return Api::NewHandle(isolate, cls.SuperClass());
(...skipping 17 matching lines...) Expand all
436 *class_name = Api::NewHandle(isolate, cls.Name()); 436 *class_name = Api::NewHandle(isolate, cls.Name());
437 } 437 }
438 if (library_id != NULL) { 438 if (library_id != NULL) {
439 const Library& lib = Library::Handle(isolate, cls.library()); 439 const Library& lib = Library::Handle(isolate, cls.library());
440 *library_id = lib.index(); 440 *library_id = lib.index();
441 } 441 }
442 if (super_class_id != NULL) { 442 if (super_class_id != NULL) {
443 *super_class_id = 0; 443 *super_class_id = 0;
444 cls = cls.SuperClass(); 444 cls = cls.SuperClass();
445 if (!cls.IsNull()) { 445 if (!cls.IsNull()) {
446 *super_class_id = cls.index(); 446 *super_class_id = cls.id();
447 } 447 }
448 } 448 }
449 if (static_fields != NULL) { 449 if (static_fields != NULL) {
450 *static_fields = 450 *static_fields =
451 Api::NewHandle(isolate, isolate->debugger()->GetStaticFields(cls)); 451 Api::NewHandle(isolate, isolate->debugger()->GetStaticFields(cls));
452 } 452 }
453 return Api::True(isolate); 453 return Api::True(isolate);
454 } 454 }
455 455
456 456
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 for (int i = 0; i < num_libs; i++) { 588 for (int i = 0; i < num_libs; i++) {
589 lib ^= libs.At(i); 589 lib ^= libs.At(i);
590 ASSERT(!lib.IsNull()); 590 ASSERT(!lib.IsNull());
591 lib_url = lib.url(); 591 lib_url = lib.url();
592 library_url_list.SetAt(i, lib_url); 592 library_url_list.SetAt(i, lib_url);
593 } 593 }
594 return Api::NewHandle(isolate, library_url_list.raw()); 594 return Api::NewHandle(isolate, library_url_list.raw());
595 } 595 }
596 596
597 } // namespace dart 597 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698