Skip to content

Commit

Permalink
fix: call stack module names
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 30, 2023
1 parent d296215 commit 3ccdc76
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 28 deletions.
8 changes: 4 additions & 4 deletions packages/beize_cli/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ packages:
dependency: transitive
description:
name: lint
sha256: f4bd4dbaa39f4ae8836f2d1275f2f32bc68b3a8cce0a0735dd1f7a601f06682a
sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.2.0"
path:
dependency: "direct main"
description:
Expand All @@ -59,9 +59,9 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "9a635be15e5dead4913b1231fe9e53c060a13640"
resolved-ref: "9f3fc307c43ccb41de401083ff16b1e2db4479b0"
url: "https://github.com/zyrouge/dart_zlint.git"
source: git
version: "0.0.0"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=3.1.0 <4.0.0"
2 changes: 1 addition & 1 deletion packages/beize_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.0
publish_to: none

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
args: ^2.4.2
Expand Down
24 changes: 12 additions & 12 deletions packages/beize_compiler/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ packages:
dependency: transitive
description:
name: coverage
sha256: "595a29b55ce82d53398e1bcc2cba525d7bd7c59faeb2d2540e9d42c390cfeeeb"
sha256: ac86d3abab0f165e4b8f561280ff4e066bceaac83c424dd19f1ae2c2fcd12ca9
url: "https://pub.dev"
source: hosted
version: "1.6.4"
version: "1.7.1"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -147,10 +147,10 @@ packages:
dependency: transitive
description:
name: lint
sha256: f4bd4dbaa39f4ae8836f2d1275f2f32bc68b3a8cce0a0735dd1f7a601f06682a
sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.2.0"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -315,10 +315,10 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: d983a57c33dde6d44b1fb8635f67c91f4b41d26cf227c147963affa97d63563d
sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
url: "https://pub.dev"
source: hosted
version: "1.24.8"
version: "1.24.9"
test_api:
dependency: transitive
description:
Expand All @@ -331,10 +331,10 @@ packages:
dependency: transitive
description:
name: test_core
sha256: "2f866bf4b20c11327ac166ee6036bddafb7fe9e35505ff8324f788e66913f967"
sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
url: "https://pub.dev"
source: hosted
version: "0.5.8"
version: "0.5.9"
typed_data:
dependency: transitive
description:
Expand All @@ -347,10 +347,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: a13d5503b4facefc515c8c587ce3cf69577a7b064a9f1220e005449cf1f64aad
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
url: "https://pub.dev"
source: hosted
version: "12.0.0"
version: "13.0.0"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -388,9 +388,9 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "9a635be15e5dead4913b1231fe9e53c060a13640"
resolved-ref: "9f3fc307c43ccb41de401083ff16b1e2db4479b0"
url: "https://github.com/zyrouge/dart_zlint.git"
source: git
version: "0.0.0"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=3.1.0 <4.0.0"
2 changes: 1 addition & 1 deletion packages/beize_compiler/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 0.0.0
publish_to: none

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
beize_shared:
Expand Down
17 changes: 12 additions & 5 deletions packages/beize_shared/lib/bytecode/constants/function.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'constant.dart';

class BeizeFunctionConstant {
BeizeFunctionConstant({
required this.moduleIndex,
required this.isAsync,
required this.arguments,
required this.chunk,
Expand All @@ -12,17 +13,23 @@ class BeizeFunctionConstant {
final BeizeSerializedConstant serialized,
) =>
BeizeFunctionConstant(
isAsync: serialized[0] == 1,
arguments: (serialized[1] as List<dynamic>).cast<int>(),
moduleIndex: serialized[0] as int,
isAsync: serialized[1] == 1,
arguments: (serialized[2] as List<dynamic>).cast<int>(),
chunk: BeizeChunk.deserialize(
serialized[2] as BeizeSerializedConstant,
serialized[3] as BeizeSerializedConstant,
),
);

final int moduleIndex;
final bool isAsync;
final List<int> arguments;
final BeizeChunk chunk;

BeizeSerializedConstant serialize() =>
<dynamic>[if (isAsync) 1 else 0, arguments, chunk.serialize()];
BeizeSerializedConstant serialize() => <dynamic>[
moduleIndex,
if (isAsync) 1 else 0,
arguments,
chunk.serialize(),
];
}
8 changes: 4 additions & 4 deletions packages/beize_shared/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ packages:
dependency: transitive
description:
name: lint
sha256: f4bd4dbaa39f4ae8836f2d1275f2f32bc68b3a8cce0a0735dd1f7a601f06682a
sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.2.0"
zlint:
dependency: "direct dev"
description:
path: "."
ref: HEAD
resolved-ref: "9a635be15e5dead4913b1231fe9e53c060a13640"
resolved-ref: "9f3fc307c43ccb41de401083ff16b1e2db4479b0"
url: "https://github.com/zyrouge/dart_zlint.git"
source: git
version: "0.0.0"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=3.1.0 <4.0.0"
2 changes: 1 addition & 1 deletion packages/beize_shared/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Shared components of Beize.
version: 0.0.0

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
zlint:
Expand Down

0 comments on commit 3ccdc76

Please sign in to comment.