| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 part of fletch.debug_state; | 5 part of dartino.debug_state; |
| 6 | 6 |
| 7 class BackTraceFrame { | 7 class BackTraceFrame { |
| 8 final FletchFunction function; | 8 final DartinoFunction function; |
| 9 final int bytecodePointer; | 9 final int bytecodePointer; |
| 10 final IncrementalCompiler compiler; | 10 final IncrementalCompiler compiler; |
| 11 final DebugState debugState; | 11 final DebugState debugState; |
| 12 | 12 |
| 13 BackTraceFrame(this.function, this.bytecodePointer, this.compiler, | 13 BackTraceFrame(this.function, this.bytecodePointer, this.compiler, |
| 14 this.debugState); | 14 this.debugState); |
| 15 | 15 |
| 16 bool get inPlatformLibrary => function.element.library.isPlatformLibrary; | 16 bool get inPlatformLibrary => function.element.library.isPlatformLibrary; |
| 17 | 17 |
| 18 bool get isInternal => function.isInternal || inPlatformLibrary; | 18 bool get isInternal => function.isInternal || inPlatformLibrary; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 if (visibleStackFrame == null) return null; | 203 if (visibleStackFrame == null) return null; |
| 204 return visibleStackFrame.scopeInfo(); | 204 return visibleStackFrame.scopeInfo(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 ScopeInfo get scopeInfoForCurrentFrame => scopeInfo(debugState.currentFrame); | 207 ScopeInfo get scopeInfoForCurrentFrame => scopeInfo(debugState.currentFrame); |
| 208 | 208 |
| 209 int stepBytecodePointer(SourceLocation location) { | 209 int stepBytecodePointer(SourceLocation location) { |
| 210 return frames[0].stepBytecodePointer(location); | 210 return frames[0].stepBytecodePointer(location); |
| 211 } | 211 } |
| 212 } | 212 } |
| OLD | NEW |