mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:59:47 +00:00
vm-service: Include bytecode with _RegExp objects.
BUG=http://dartbug.com/26042 R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/1822933002 .
This commit is contained in:
parent
0f5c249f22
commit
1c107c4fbd
|
@ -323,6 +323,18 @@
|
|||
<any-service-ref ref="{{ instance.externalTwoByteFunction }}"></any-service-ref>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberItem">
|
||||
<div class="memberName">oneByteBytecode</div>
|
||||
<div class="memberValue">
|
||||
<any-service-ref ref="{{ instance.oneByteBytecode }}"></any-service-ref>
|
||||
</div>
|
||||
</div>
|
||||
<div class="memberItem">
|
||||
<div class="memberName">twoByteBytecode</div>
|
||||
<div class="memberValue">
|
||||
<any-service-ref ref="{{ instance.twoByteBytecode }}"></any-service-ref>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -2323,6 +2323,8 @@ class Instance extends HeapObject {
|
|||
@observable Function twoByteFunction; // If a RegExp.
|
||||
@observable Function externalOneByteFunction; // If a RegExp.
|
||||
@observable Function externalTwoByteFunction; // If a RegExp.
|
||||
@observable Instance oneByteBytecode; // If a RegExp.
|
||||
@observable Instance twoByteBytecode; // If a RegExp.
|
||||
@observable bool isCaseSensitive; // If a RegExp.
|
||||
@observable bool isMultiLine; // If a RegExp.
|
||||
|
||||
|
@ -2414,6 +2416,8 @@ class Instance extends HeapObject {
|
|||
twoByteFunction = map['_twoByteFunction'];
|
||||
externalOneByteFunction = map['_externalOneByteFunction'];
|
||||
externalTwoByteFunction = map['_externalTwoByteFunction'];
|
||||
oneByteBytecode = map['_oneByteBytecode'];
|
||||
twoByteBytecode = map['_twoByteBytecode'];
|
||||
|
||||
nativeFields = map['_nativeFields'];
|
||||
fields = map['fields'];
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue