| OLD | NEW |
| 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 | 1668 |
| 1669 case ServiceEvent.kBreakpointRemoved: | 1669 case ServiceEvent.kBreakpointRemoved: |
| 1670 _removeBreakpoint(event.breakpoint); | 1670 _removeBreakpoint(event.breakpoint); |
| 1671 break; | 1671 break; |
| 1672 | 1672 |
| 1673 case ServiceEvent.kPauseStart: | 1673 case ServiceEvent.kPauseStart: |
| 1674 case ServiceEvent.kPauseExit: | 1674 case ServiceEvent.kPauseExit: |
| 1675 case ServiceEvent.kPauseBreakpoint: | 1675 case ServiceEvent.kPauseBreakpoint: |
| 1676 case ServiceEvent.kPauseInterrupted: | 1676 case ServiceEvent.kPauseInterrupted: |
| 1677 case ServiceEvent.kPauseException: | 1677 case ServiceEvent.kPauseException: |
| 1678 case ServiceEvent.kPausePostRequest: |
| 1678 case ServiceEvent.kNone: | 1679 case ServiceEvent.kNone: |
| 1679 case ServiceEvent.kResume: | 1680 case ServiceEvent.kResume: |
| 1680 assert((pauseEvent == null) || | 1681 assert((pauseEvent == null) || |
| 1681 !event.timestamp.isBefore(pauseEvent.timestamp)); | 1682 !event.timestamp.isBefore(pauseEvent.timestamp)); |
| 1682 pauseEvent = createEventFromServiceEvent(event); | 1683 pauseEvent = createEventFromServiceEvent(event); |
| 1683 _updateRunState(); | 1684 _updateRunState(); |
| 1684 break; | 1685 break; |
| 1685 | 1686 |
| 1686 case ServiceEvent.kGraph: | 1687 case ServiceEvent.kGraph: |
| 1687 _loadHeapSnapshot(event); | 1688 _loadHeapSnapshot(event); |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2010 static const kIsolateExit = 'IsolateExit'; | 2011 static const kIsolateExit = 'IsolateExit'; |
| 2011 static const kIsolateUpdate = 'IsolateUpdate'; | 2012 static const kIsolateUpdate = 'IsolateUpdate'; |
| 2012 static const kIsolateReload = 'IsolateReload'; | 2013 static const kIsolateReload = 'IsolateReload'; |
| 2013 static const kIsolateSpawn = 'IsolateSpawn'; | 2014 static const kIsolateSpawn = 'IsolateSpawn'; |
| 2014 static const kServiceExtensionAdded = 'ServiceExtensionAdded'; | 2015 static const kServiceExtensionAdded = 'ServiceExtensionAdded'; |
| 2015 static const kPauseStart = 'PauseStart'; | 2016 static const kPauseStart = 'PauseStart'; |
| 2016 static const kPauseExit = 'PauseExit'; | 2017 static const kPauseExit = 'PauseExit'; |
| 2017 static const kPauseBreakpoint = 'PauseBreakpoint'; | 2018 static const kPauseBreakpoint = 'PauseBreakpoint'; |
| 2018 static const kPauseInterrupted = 'PauseInterrupted'; | 2019 static const kPauseInterrupted = 'PauseInterrupted'; |
| 2019 static const kPauseException = 'PauseException'; | 2020 static const kPauseException = 'PauseException'; |
| 2021 static const kPausePostRequest = 'PausePostRequest'; |
| 2020 static const kNone = 'None'; | 2022 static const kNone = 'None'; |
| 2021 static const kResume = 'Resume'; | 2023 static const kResume = 'Resume'; |
| 2022 static const kBreakpointAdded = 'BreakpointAdded'; | 2024 static const kBreakpointAdded = 'BreakpointAdded'; |
| 2023 static const kBreakpointResolved = 'BreakpointResolved'; | 2025 static const kBreakpointResolved = 'BreakpointResolved'; |
| 2024 static const kBreakpointRemoved = 'BreakpointRemoved'; | 2026 static const kBreakpointRemoved = 'BreakpointRemoved'; |
| 2025 static const kGraph = '_Graph'; | 2027 static const kGraph = '_Graph'; |
| 2026 static const kGC = 'GC'; | 2028 static const kGC = 'GC'; |
| 2027 static const kInspect = 'Inspect'; | 2029 static const kInspect = 'Inspect'; |
| 2028 static const kDebuggerSettingsUpdate = '_DebuggerSettingsUpdate'; | 2030 static const kDebuggerSettingsUpdate = '_DebuggerSettingsUpdate'; |
| 2029 static const kConnectionClosed = 'ConnectionClosed'; | 2031 static const kConnectionClosed = 'ConnectionClosed'; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2060 String spawnError; | 2062 String spawnError; |
| 2061 | 2063 |
| 2062 int chunkIndex, chunkCount, nodeCount; | 2064 int chunkIndex, chunkCount, nodeCount; |
| 2063 | 2065 |
| 2064 bool get isPauseEvent { | 2066 bool get isPauseEvent { |
| 2065 return (kind == kPauseStart || | 2067 return (kind == kPauseStart || |
| 2066 kind == kPauseExit || | 2068 kind == kPauseExit || |
| 2067 kind == kPauseBreakpoint || | 2069 kind == kPauseBreakpoint || |
| 2068 kind == kPauseInterrupted || | 2070 kind == kPauseInterrupted || |
| 2069 kind == kPauseException || | 2071 kind == kPauseException || |
| 2072 kind == kPausePostRequest || |
| 2070 kind == kNone); | 2073 kind == kNone); |
| 2071 } | 2074 } |
| 2072 | 2075 |
| 2073 void _update(Map map, bool mapIsRef) { | 2076 void _update(Map map, bool mapIsRef) { |
| 2074 _loaded = true; | 2077 _loaded = true; |
| 2075 _upgradeCollection(map, owner); | 2078 _upgradeCollection(map, owner); |
| 2076 | 2079 |
| 2077 assert(map['isolate'] == null || owner == map['isolate']); | 2080 assert(map['isolate'] == null || owner == map['isolate']); |
| 2078 timestamp = new DateTime.fromMillisecondsSinceEpoch(map['timestamp']); | 2081 timestamp = new DateTime.fromMillisecondsSinceEpoch(map['timestamp']); |
| 2079 kind = map['kind']; | 2082 kind = map['kind']; |
| (...skipping 2281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4361 var v = list[i]; | 4364 var v = list[i]; |
| 4362 if ((v is Map) && _isServiceMap(v)) { | 4365 if ((v is Map) && _isServiceMap(v)) { |
| 4363 list[i] = owner.getFromMap(v); | 4366 list[i] = owner.getFromMap(v); |
| 4364 } else if (v is List) { | 4367 } else if (v is List) { |
| 4365 _upgradeList(v, owner); | 4368 _upgradeList(v, owner); |
| 4366 } else if (v is Map) { | 4369 } else if (v is Map) { |
| 4367 _upgradeMap(v, owner); | 4370 _upgradeMap(v, owner); |
| 4368 } | 4371 } |
| 4369 } | 4372 } |
| 4370 } | 4373 } |
| OLD | NEW |