| Index: pkg/dartino_compiler/lib/debug_state.dart
|
| diff --git a/pkg/fletchc/lib/debug_state.dart b/pkg/dartino_compiler/lib/debug_state.dart
|
| similarity index 85%
|
| rename from pkg/fletchc/lib/debug_state.dart
|
| rename to pkg/dartino_compiler/lib/debug_state.dart
|
| index e27826586bb1f694975b33fde175b1c59375422d..4d498ea750a06aaf3ff4f9dbd911249069fa917e 100644
|
| --- a/pkg/fletchc/lib/debug_state.dart
|
| +++ b/pkg/dartino_compiler/lib/debug_state.dart
|
| @@ -2,11 +2,11 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE.md file.
|
|
|
| -library fletch.debug_state;
|
| +library dartino.debug_state;
|
|
|
| import 'bytecodes.dart';
|
| -import 'fletch_system.dart';
|
| -import 'incremental/fletchc_incremental.dart';
|
| +import 'dartino_system.dart';
|
| +import 'incremental/dartino_compiler_incremental.dart';
|
| import 'vm_session.dart';
|
| import 'src/debug_info.dart';
|
| import 'src/class_debug_info.dart';
|
| @@ -59,10 +59,10 @@ class DebugState {
|
| final Session session;
|
|
|
| final Map<int, Breakpoint> breakpoints = <int, Breakpoint>{};
|
| - final Map<FletchFunction, DebugInfo> debugInfos =
|
| - <FletchFunction, DebugInfo>{};
|
| - final Map<FletchClass, ClassDebugInfo> classDebugInfos =
|
| - <FletchClass, ClassDebugInfo>{};
|
| + final Map<DartinoFunction, DebugInfo> debugInfos =
|
| + <DartinoFunction, DebugInfo>{};
|
| + final Map<DartinoClass, ClassDebugInfo> classDebugInfos =
|
| + <DartinoClass, ClassDebugInfo>{};
|
|
|
| bool showInternalFrames = false;
|
| bool verbose = true;
|
| @@ -107,21 +107,21 @@ class DebugState {
|
| _topFrame = frame;
|
| }
|
|
|
| - DebugInfo getDebugInfo(FletchFunction function) {
|
| + DebugInfo getDebugInfo(DartinoFunction function) {
|
| return debugInfos.putIfAbsent(function, () {
|
| - return session.compiler.createDebugInfo(function, session.fletchSystem);
|
| + return session.compiler.createDebugInfo(function, session.dartinoSystem);
|
| });
|
| }
|
|
|
| - ClassDebugInfo getClassDebugInfo(FletchClass klass) {
|
| + ClassDebugInfo getClassDebugInfo(DartinoClass klass) {
|
| return classDebugInfos.putIfAbsent(klass, () {
|
| return session.compiler.createClassDebugInfo(klass);
|
| });
|
| }
|
|
|
| - String lookupFieldName(FletchClass klass, int field) {
|
| + String lookupFieldName(DartinoClass klass, int field) {
|
| while (field < klass.superclassFields) {
|
| - klass = session.fletchSystem.lookupClassById(klass.superclassId);
|
| + klass = session.dartinoSystem.lookupClassById(klass.superclassId);
|
| }
|
| return getClassDebugInfo(klass).fieldNames[field - klass.superclassFields];
|
| }
|
|
|