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

Unified Diff: runtime/vm/object_service.cc

Issue 1822933002: vm-service: Include bytecode with _RegExp objects. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_service.cc
diff --git a/runtime/vm/object_service.cc b/runtime/vm/object_service.cc
index d93391fcf79fdecfb4ae888aa506f0e5c53c4fb0..90f9e1d67b48d7c170bd2a23efb5103d5c017284 100644
--- a/runtime/vm/object_service.cc
+++ b/runtime/vm/object_service.cc
@@ -1542,6 +1542,12 @@ void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const {
jsobj.AddProperty("_externalOneByteFunction", func);
func = function(kExternalTwoByteStringCid);
jsobj.AddProperty("_externalTwoByteFunction", func);
+
+ TypedData& bc = TypedData::Handle();
+ bc = bytecode(true);
+ jsobj.AddProperty("_oneByteBytecode", bc);
+ bc = bytecode(false);
+ jsobj.AddProperty("_twoByteBytecode", bc);
}
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698