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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | no next file » | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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/debugger.h" 5 #include "vm/debugger.h"
6 #include "vm/disassembler.h" 6 #include "vm/disassembler.h"
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/object_store.h" 8 #include "vm/object_store.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 1535
1536 Function& func = Function::Handle(); 1536 Function& func = Function::Handle();
1537 func = function(kOneByteStringCid); 1537 func = function(kOneByteStringCid);
1538 jsobj.AddProperty("_oneByteFunction", func); 1538 jsobj.AddProperty("_oneByteFunction", func);
1539 func = function(kTwoByteStringCid); 1539 func = function(kTwoByteStringCid);
1540 jsobj.AddProperty("_twoByteFunction", func); 1540 jsobj.AddProperty("_twoByteFunction", func);
1541 func = function(kExternalOneByteStringCid); 1541 func = function(kExternalOneByteStringCid);
1542 jsobj.AddProperty("_externalOneByteFunction", func); 1542 jsobj.AddProperty("_externalOneByteFunction", func);
1543 func = function(kExternalTwoByteStringCid); 1543 func = function(kExternalTwoByteStringCid);
1544 jsobj.AddProperty("_externalTwoByteFunction", func); 1544 jsobj.AddProperty("_externalTwoByteFunction", func);
1545
1546 TypedData& bc = TypedData::Handle();
1547 bc = bytecode(true);
1548 jsobj.AddProperty("_oneByteBytecode", bc);
1549 bc = bytecode(false);
1550 jsobj.AddProperty("_twoByteBytecode", bc);
1545 } 1551 }
1546 1552
1547 1553
1548 void WeakProperty::PrintJSONImpl(JSONStream* stream, bool ref) const { 1554 void WeakProperty::PrintJSONImpl(JSONStream* stream, bool ref) const {
1549 JSONObject jsobj(stream); 1555 JSONObject jsobj(stream);
1550 PrintSharedInstanceJSON(&jsobj, ref); 1556 PrintSharedInstanceJSON(&jsobj, ref);
1551 jsobj.AddProperty("kind", "WeakProperty"); 1557 jsobj.AddProperty("kind", "WeakProperty");
1552 jsobj.AddServiceId(*this); 1558 jsobj.AddServiceId(*this);
1553 if (ref) { 1559 if (ref) {
1554 return; 1560 return;
(...skipping 20 matching lines...) Expand all
1575 jsobj.AddProperty("mirrorReferent", referent_handle); 1581 jsobj.AddProperty("mirrorReferent", referent_handle);
1576 } 1582 }
1577 1583
1578 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1584 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1579 Instance::PrintJSONImpl(stream, ref); 1585 Instance::PrintJSONImpl(stream, ref);
1580 } 1586 }
1581 1587
1582 #endif 1588 #endif
1583 1589
1584 } // namespace dart 1590 } // namespace dart
OLDNEW
« 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