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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

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/elements/instance_view.html ('k') | runtime/vm/object_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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of service; 5 part of service;
6 6
7 // Some value smaller than the object ring, so requesting a large array 7 // Some value smaller than the object ring, so requesting a large array
8 // doesn't result in an expired ref because the elements lapped it in the 8 // doesn't result in an expired ref because the elements lapped it in the
9 // object ring. 9 // object ring.
10 const int kDefaultFieldLimit = 100; 10 const int kDefaultFieldLimit = 100;
(...skipping 2305 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 @observable var associations; // If a Map. 2316 @observable var associations; // If a Map.
2317 @observable var typedElements; // If a TypedData. 2317 @observable var typedElements; // If a TypedData.
2318 @observable var referent; // If a MirrorReference. 2318 @observable var referent; // If a MirrorReference.
2319 @observable Instance key; // If a WeakProperty. 2319 @observable Instance key; // If a WeakProperty.
2320 @observable Instance value; // If a WeakProperty. 2320 @observable Instance value; // If a WeakProperty.
2321 @observable Breakpoint activationBreakpoint; // If a Closure. 2321 @observable Breakpoint activationBreakpoint; // If a Closure.
2322 @observable Function oneByteFunction; // If a RegExp. 2322 @observable Function oneByteFunction; // If a RegExp.
2323 @observable Function twoByteFunction; // If a RegExp. 2323 @observable Function twoByteFunction; // If a RegExp.
2324 @observable Function externalOneByteFunction; // If a RegExp. 2324 @observable Function externalOneByteFunction; // If a RegExp.
2325 @observable Function externalTwoByteFunction; // If a RegExp. 2325 @observable Function externalTwoByteFunction; // If a RegExp.
2326 @observable Instance oneByteBytecode; // If a RegExp.
2327 @observable Instance twoByteBytecode; // If a RegExp.
2326 @observable bool isCaseSensitive; // If a RegExp. 2328 @observable bool isCaseSensitive; // If a RegExp.
2327 @observable bool isMultiLine; // If a RegExp. 2329 @observable bool isMultiLine; // If a RegExp.
2328 2330
2329 bool get isAbstractType { 2331 bool get isAbstractType {
2330 return (kind == 'Type' || kind == 'TypeRef' || 2332 return (kind == 'Type' || kind == 'TypeRef' ||
2331 kind == 'TypeParameter' || kind == 'BoundedType'); 2333 kind == 'TypeParameter' || kind == 'BoundedType');
2332 } 2334 }
2333 bool get isNull => kind == 'Null'; 2335 bool get isNull => kind == 'Null';
2334 bool get isBool => kind == 'Bool'; 2336 bool get isBool => kind == 'Bool';
2335 bool get isDouble => kind == 'Double'; 2337 bool get isDouble => kind == 'Double';
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 if (mapIsRef) { 2409 if (mapIsRef) {
2408 return; 2410 return;
2409 } 2411 }
2410 2412
2411 isCaseSensitive = map['isCaseSensitive']; 2413 isCaseSensitive = map['isCaseSensitive'];
2412 isMultiLine = map['isMultiLine']; 2414 isMultiLine = map['isMultiLine'];
2413 oneByteFunction = map['_oneByteFunction']; 2415 oneByteFunction = map['_oneByteFunction'];
2414 twoByteFunction = map['_twoByteFunction']; 2416 twoByteFunction = map['_twoByteFunction'];
2415 externalOneByteFunction = map['_externalOneByteFunction']; 2417 externalOneByteFunction = map['_externalOneByteFunction'];
2416 externalTwoByteFunction = map['_externalTwoByteFunction']; 2418 externalTwoByteFunction = map['_externalTwoByteFunction'];
2419 oneByteBytecode = map['_oneByteBytecode'];
2420 twoByteBytecode = map['_twoByteBytecode'];
2417 2421
2418 nativeFields = map['_nativeFields']; 2422 nativeFields = map['_nativeFields'];
2419 fields = map['fields']; 2423 fields = map['fields'];
2420 elements = map['elements']; 2424 elements = map['elements'];
2421 associations = map['associations']; 2425 associations = map['associations'];
2422 if (map['bytes'] != null) { 2426 if (map['bytes'] != null) {
2423 Uint8List bytes = BASE64.decode(map['bytes']); 2427 Uint8List bytes = BASE64.decode(map['bytes']);
2424 switch (map['kind']) { 2428 switch (map['kind']) {
2425 case "Uint8ClampedList": 2429 case "Uint8ClampedList":
2426 typedElements = bytes.buffer.asUint8ClampedList(); break; 2430 typedElements = bytes.buffer.asUint8ClampedList(); break;
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
4039 var v = list[i]; 4043 var v = list[i];
4040 if ((v is ObservableMap) && _isServiceMap(v)) { 4044 if ((v is ObservableMap) && _isServiceMap(v)) {
4041 list[i] = owner.getFromMap(v); 4045 list[i] = owner.getFromMap(v);
4042 } else if (v is ObservableList) { 4046 } else if (v is ObservableList) {
4043 _upgradeObservableList(v, owner); 4047 _upgradeObservableList(v, owner);
4044 } else if (v is ObservableMap) { 4048 } else if (v is ObservableMap) {
4045 _upgradeObservableMap(v, owner); 4049 _upgradeObservableMap(v, owner);
4046 } 4050 }
4047 } 4051 }
4048 } 4052 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/instance_view.html ('k') | runtime/vm/object_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698