You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 3535d697-16ed-4960-88c0-1c25f52c83a9
📥 Commits
Reviewing files that changed from the base of the PR and between ae1f9fb and 19e5859.
📒 Files selected for processing (1)
harm-runtime/src/macros.rs
🚧 Files skipped from review as they are similar to previous changes (1)
harm-runtime/src/macros.rs
📝 Walkthrough
Walkthrough
A new harm! macro sequences instruction appends on an assembler and returns the first error or Ok(()). The macro is exported and re-exports Assembler and AssemblerError at crate root; two unit tests were updated to use the macro. A minor enum formatting change was made.
Changes
Instruction Sequencing Macro
Layer / File(s)
Summary
Macro Definition and Test harm-runtime/src/macros.rs
harm! macro accepts an assembler and instruction sequence, appends each instruction, and propagates the first error or returns Ok(()). Dedicated feature-gated test exercises the macro with two instructions.
Crate-Level Re-exports harm-runtime/src/lib.rs
Module macros declared with #[macro_use]; Assembler and AssemblerError re-exported from runtime at crate root.
Test Refactoring harm-runtime/src/runtime.rs
Two unit tests (test_assembler_build, test_assembler_aarch64_execute) replace explicit asm.append() chains with single harm! { asm; ... } blocks followed by .unwrap().
Formatting harm-runtime/src/runtime.rs
Blank line added in AssemblerError enum between PositionedMemory and ExecutableMemory variants.
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~8 minutes
Suggested labels
harm
"A rabbit tapped the keyboard bright,
Lined up insts to stream them right,
One macro call to bind the queue,
Errors surface, builds run true,
🐇✨"
@monoid Sure! I'll start reviewing the PR right away.
✅ Actions performed
Review triggered.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enhancementNew feature or requestruntimeThe `harm`'s runtime: memory mappings, applying relocations, etc.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A convenience
harm!macro.Summary by CodeRabbit
New Features
Chores