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

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

Issue 1676233003: Add 'runnable' to Isolate service response (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
« no previous file with comments | « runtime/vm/isolate.cc ('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 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after
3567 static const MethodParameter* get_version_params[] = { 3567 static const MethodParameter* get_version_params[] = {
3568 NO_ISOLATE_PARAMETER, 3568 NO_ISOLATE_PARAMETER,
3569 NULL, 3569 NULL,
3570 }; 3570 };
3571 3571
3572 3572
3573 static bool GetVersion(Thread* thread, JSONStream* js) { 3573 static bool GetVersion(Thread* thread, JSONStream* js) {
3574 JSONObject jsobj(js); 3574 JSONObject jsobj(js);
3575 jsobj.AddProperty("type", "Version"); 3575 jsobj.AddProperty("type", "Version");
3576 jsobj.AddProperty("major", static_cast<intptr_t>(3)); 3576 jsobj.AddProperty("major", static_cast<intptr_t>(3));
3577 jsobj.AddProperty("minor", static_cast<intptr_t>(1)); 3577 jsobj.AddProperty("minor", static_cast<intptr_t>(2));
3578 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); 3578 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0));
3579 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); 3579 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0));
3580 return true; 3580 return true;
3581 } 3581 }
3582 3582
3583 3583
3584 class ServiceIsolateVisitor : public IsolateVisitor { 3584 class ServiceIsolateVisitor : public IsolateVisitor {
3585 public: 3585 public:
3586 explicit ServiceIsolateVisitor(JSONArray* jsarr) 3586 explicit ServiceIsolateVisitor(JSONArray* jsarr)
3587 : jsarr_(jsarr) { 3587 : jsarr_(jsarr) {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
3955 if (strcmp(method_name, method.name) == 0) { 3955 if (strcmp(method_name, method.name) == 0) {
3956 return &method; 3956 return &method;
3957 } 3957 }
3958 } 3958 }
3959 return NULL; 3959 return NULL;
3960 } 3960 }
3961 3961
3962 #endif // !PRODUCT 3962 #endif // !PRODUCT
3963 3963
3964 } // namespace dart 3964 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service/service.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698