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

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

Issue 1862903003: Print the isolate's sticky error if it has one. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 3707 matching lines...) Expand 10 before | Expand all | Expand 10 after
3718 static const MethodParameter* get_version_params[] = { 3718 static const MethodParameter* get_version_params[] = {
3719 NO_ISOLATE_PARAMETER, 3719 NO_ISOLATE_PARAMETER,
3720 NULL, 3720 NULL,
3721 }; 3721 };
3722 3722
3723 3723
3724 static bool GetVersion(Thread* thread, JSONStream* js) { 3724 static bool GetVersion(Thread* thread, JSONStream* js) {
3725 JSONObject jsobj(js); 3725 JSONObject jsobj(js);
3726 jsobj.AddProperty("type", "Version"); 3726 jsobj.AddProperty("type", "Version");
3727 jsobj.AddProperty("major", static_cast<intptr_t>(3)); 3727 jsobj.AddProperty("major", static_cast<intptr_t>(3));
3728 jsobj.AddProperty("minor", static_cast<intptr_t>(3)); 3728 jsobj.AddProperty("minor", static_cast<intptr_t>(4));
3729 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); 3729 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0));
3730 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); 3730 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0));
3731 return true; 3731 return true;
3732 } 3732 }
3733 3733
3734 3734
3735 class ServiceIsolateVisitor : public IsolateVisitor { 3735 class ServiceIsolateVisitor : public IsolateVisitor {
3736 public: 3736 public:
3737 explicit ServiceIsolateVisitor(JSONArray* jsarr) 3737 explicit ServiceIsolateVisitor(JSONArray* jsarr)
3738 : jsarr_(jsarr) { 3738 : jsarr_(jsarr) {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
4108 if (strcmp(method_name, method.name) == 0) { 4108 if (strcmp(method_name, method.name) == 0) {
4109 return &method; 4109 return &method;
4110 } 4110 }
4111 } 4111 }
4112 return NULL; 4112 return NULL;
4113 } 4113 }
4114 4114
4115 #endif // !PRODUCT 4115 #endif // !PRODUCT
4116 4116
4117 } // namespace dart 4117 } // 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