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

Side by Side Diff: runtime/vm/object.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/observatory/tests/service/get_version_rpc_test.dart ('k') | runtime/vm/service.cc » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 21110 matching lines...) Expand 10 before | Expand all | Expand 10 after
21121 PrintSharedInstanceJSON(&jsobj, ref); 21121 PrintSharedInstanceJSON(&jsobj, ref);
21122 jsobj.AddProperty("kind", "RegExp"); 21122 jsobj.AddProperty("kind", "RegExp");
21123 jsobj.AddServiceId(*this); 21123 jsobj.AddServiceId(*this);
21124 21124
21125 jsobj.AddProperty("pattern", String::Handle(pattern())); 21125 jsobj.AddProperty("pattern", String::Handle(pattern()));
21126 21126
21127 if (ref) { 21127 if (ref) {
21128 return; 21128 return;
21129 } 21129 }
21130 21130
21131 jsobj.AddProperty("isCaseSensitive", !is_ignore_case());
21132 jsobj.AddProperty("isMultiLine", is_multi_line());
21133
21131 Function& func = Function::Handle(); 21134 Function& func = Function::Handle();
21132 func = function(kOneByteStringCid); 21135 func = function(kOneByteStringCid);
21133 jsobj.AddProperty("_oneByteFunction", func); 21136 jsobj.AddProperty("_oneByteFunction", func);
21134 func = function(kTwoByteStringCid); 21137 func = function(kTwoByteStringCid);
21135 jsobj.AddProperty("_twoByteFunction", func); 21138 jsobj.AddProperty("_twoByteFunction", func);
21136 func = function(kExternalOneByteStringCid); 21139 func = function(kExternalOneByteStringCid);
21137 jsobj.AddProperty("_externalOneByteFunction", func); 21140 jsobj.AddProperty("_externalOneByteFunction", func);
21138 func = function(kExternalTwoByteStringCid); 21141 func = function(kExternalTwoByteStringCid);
21139 jsobj.AddProperty("_externalTwoByteFunction", func); 21142 jsobj.AddProperty("_externalTwoByteFunction", func);
21140 } 21143 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
21368 return tag_label.ToCString(); 21371 return tag_label.ToCString();
21369 } 21372 }
21370 21373
21371 21374
21372 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21375 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21373 Instance::PrintJSONImpl(stream, ref); 21376 Instance::PrintJSONImpl(stream, ref);
21374 } 21377 }
21375 21378
21376 21379
21377 } // namespace dart 21380 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/get_version_rpc_test.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698