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

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

Issue 1284063003: Add Regex isCaseSensitive and isMultiLine to the service protocol and Observatory. (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 | « runtime/vm/object.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 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after
2811 static const MethodParameter* get_version_params[] = { 2811 static const MethodParameter* get_version_params[] = {
2812 NO_ISOLATE_PARAMETER, 2812 NO_ISOLATE_PARAMETER,
2813 NULL, 2813 NULL,
2814 }; 2814 };
2815 2815
2816 2816
2817 static bool GetVersion(Isolate* isolate, JSONStream* js) { 2817 static bool GetVersion(Isolate* isolate, JSONStream* js) {
2818 JSONObject jsobj(js); 2818 JSONObject jsobj(js);
2819 jsobj.AddProperty("type", "Version"); 2819 jsobj.AddProperty("type", "Version");
2820 jsobj.AddProperty("major", static_cast<intptr_t>(2)); 2820 jsobj.AddProperty("major", static_cast<intptr_t>(2));
2821 jsobj.AddProperty("minor", static_cast<intptr_t>(0)); 2821 jsobj.AddProperty("minor", static_cast<intptr_t>(1));
2822 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0)); 2822 jsobj.AddProperty("_privateMajor", static_cast<intptr_t>(0));
2823 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0)); 2823 jsobj.AddProperty("_privateMinor", static_cast<intptr_t>(0));
2824 return true; 2824 return true;
2825 } 2825 }
2826 2826
2827 2827
2828 class ServiceIsolateVisitor : public IsolateVisitor { 2828 class ServiceIsolateVisitor : public IsolateVisitor {
2829 public: 2829 public:
2830 explicit ServiceIsolateVisitor(JSONArray* jsarr) 2830 explicit ServiceIsolateVisitor(JSONArray* jsarr)
2831 : jsarr_(jsarr) { 2831 : jsarr_(jsarr) {
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
3125 ServiceMethodDescriptor& method = service_methods_[i]; 3125 ServiceMethodDescriptor& method = service_methods_[i];
3126 if (strcmp(method_name, method.name) == 0) { 3126 if (strcmp(method_name, method.name) == 0) {
3127 return &method; 3127 return &method;
3128 } 3128 }
3129 } 3129 }
3130 return NULL; 3130 return NULL;
3131 } 3131 }
3132 3132
3133 3133
3134 } // namespace dart 3134 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/service/service.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698