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

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

Issue 79773003: Revert "De-mangle private identifiers returned by the debugger API." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/debugger.cc ('k') | no next file » | 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/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_api_state.h" 10 #include "vm/dart_api_state.h"
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 ASSERT(!imported.IsNull()); 900 ASSERT(!imported.IsNull());
901 ASSERT(Smi::IsValid(imported.index())); 901 ASSERT(Smi::IsValid(imported.index()));
902 import_list.Add(Smi::Handle(Smi::New(imported.index()))); 902 import_list.Add(Smi::Handle(Smi::New(imported.index())));
903 } 903 }
904 LibraryPrefixIterator it(lib); 904 LibraryPrefixIterator it(lib);
905 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate); 905 LibraryPrefix& prefix = LibraryPrefix::Handle(isolate);
906 while (it.HasNext()) { 906 while (it.HasNext()) {
907 prefix = it.GetNext(); 907 prefix = it.GetNext();
908 prefix_name = prefix.name(); 908 prefix_name = prefix.name();
909 ASSERT(!prefix_name.IsNull()); 909 ASSERT(!prefix_name.IsNull());
910 prefix_name = String::IdentifierPrettyName(prefix_name);
911 prefix_name = String::Concat(prefix_name, Symbols::Dot()); 910 prefix_name = String::Concat(prefix_name, Symbols::Dot());
912 for (int i = 0; i < prefix.num_imports(); i++) { 911 for (int i = 0; i < prefix.num_imports(); i++) {
913 imported = prefix.GetLibrary(i); 912 imported = prefix.GetLibrary(i);
914 import_list.Add(prefix_name); 913 import_list.Add(prefix_name);
915 import_list.Add(Smi::Handle(Smi::New(imported.index()))); 914 import_list.Add(Smi::Handle(Smi::New(imported.index())));
916 } 915 }
917 } 916 }
918 return Api::NewHandle(isolate, Array::MakeArray(import_list)); 917 return Api::NewHandle(isolate, Array::MakeArray(import_list));
919 } 918 }
920 919
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 969
971 970
972 DART_EXPORT char* Dart_GetVmStatus(const char* request) { 971 DART_EXPORT char* Dart_GetVmStatus(const char* request) {
973 if (strncmp(request, "/isolate/", 9) == 0) { 972 if (strncmp(request, "/isolate/", 9) == 0) {
974 return Isolate::GetStatus(request); 973 return Isolate::GetStatus(request);
975 } 974 }
976 return NULL; 975 return NULL;
977 } 976 }
978 977
979 } // namespace dart 978 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698