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

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

Issue 1641133004: Document the getSourceReport rpc in service.md. Bump version to 3.1. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
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 "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 10
(...skipping 3468 matching lines...) Expand 10 before | Expand all | Expand 10 after
3479 static const MethodParameter* get_version_params[] = { 3479 static const MethodParameter* get_version_params[] = {
3480 NO_ISOLATE_PARAMETER, 3480 NO_ISOLATE_PARAMETER,
3481 NULL, 3481 NULL,
3482 }; 3482 };
3483 3483
3484 3484
3485 static bool GetVersion(Thread* thread, JSONStream* js) { 3485 static bool GetVersion(Thread* thread, JSONStream* js) {
3486 JSONObject jsobj(js); 3486 JSONObject jsobj(js);
3487 jsobj.AddProperty("type", "Version"); 3487 jsobj.AddProperty("type", "Version");
3488 jsobj.AddProperty("major", static_cast<intptr_t>(3)); 3488 jsobj.AddProperty("major", static_cast<intptr_t>(3));
3489 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); 3489 jsobj.AddProperty("minor", static_cast<intptr_t>(1));
3490 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); 3490 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0));
3491 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); 3491 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0));
3492 return true; 3492 return true;
3493 } 3493 }
3494 3494
3495 3495
3496 class ServiceIsolateVisitor : public IsolateVisitor { 3496 class ServiceIsolateVisitor : public IsolateVisitor {
3497 public: 3497 public:
3498 explicit ServiceIsolateVisitor(JSONArray* jsarr) 3498 explicit ServiceIsolateVisitor(JSONArray* jsarr)
3499 : jsarr_(jsarr) { 3499 : jsarr_(jsarr) {
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
3866 const ServiceMethodDescriptor& method = service_methods_[i]; 3866 const ServiceMethodDescriptor& method = service_methods_[i];
3867 if (strcmp(method_name, method.name) == 0) { 3867 if (strcmp(method_name, method.name) == 0) {
3868 return &method; 3868 return &method;
3869 } 3869 }
3870 } 3870 }
3871 return NULL; 3871 return NULL;
3872 } 3872 }
3873 3873
3874 3874
3875 } // namespace dart 3875 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698