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

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

Issue 1270603003: Bump the VM service protocol version to 2.0. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « CHANGELOG.md ('k') | runtime/vm/service/service.md » ('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) 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 2753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 2764
2765 static const MethodParameter* get_version_params[] = { 2765 static const MethodParameter* get_version_params[] = {
2766 NO_ISOLATE_PARAMETER, 2766 NO_ISOLATE_PARAMETER,
2767 NULL, 2767 NULL,
2768 }; 2768 };
2769 2769
2770 2770
2771 static bool GetVersion(Isolate* isolate, JSONStream* js) { 2771 static bool GetVersion(Isolate* isolate, JSONStream* js) {
2772 JSONObject jsobj(js); 2772 JSONObject jsobj(js);
2773 jsobj.AddProperty("type", "Version"); 2773 jsobj.AddProperty("type", "Version");
2774 jsobj.AddProperty("major", static_cast<intptr_t>(1)); 2774 jsobj.AddProperty("major", static_cast<intptr_t>(2));
2775 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); 2775 jsobj.AddProperty("minor", static_cast<intptr_t>(0));
2776 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); 2776 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0));
2777 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); 2777 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0));
2778 return true; 2778 return true;
2779 } 2779 }
2780 2780
2781 2781
2782 class ServiceIsolateVisitor : public IsolateVisitor { 2782 class ServiceIsolateVisitor : public IsolateVisitor {
2783 public: 2783 public:
2784 explicit ServiceIsolateVisitor(JSONArray* jsarr) 2784 explicit ServiceIsolateVisitor(JSONArray* jsarr)
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
3079 ServiceMethodDescriptor& method = service_methods_[i]; 3079 ServiceMethodDescriptor& method = service_methods_[i];
3080 if (strcmp(method_name, method.name) == 0) { 3080 if (strcmp(method_name, method.name) == 0) {
3081 return &method; 3081 return &method;
3082 } 3082 }
3083 } 3083 }
3084 return NULL; 3084 return NULL;
3085 } 3085 }
3086 3086
3087 3087
3088 } // namespace dart 3088 } // namespace dart
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | runtime/vm/service/service.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698