Extract named constants for 0xf0 pointer shifts#481
Extract named constants for 0xf0 pointer shifts#481thedavidmeister wants to merge 2 commits intomainfrom
Conversation
- OPCODE_FUNCTION_POINTER_SHIFT — function pointer table reads - SOURCE_OFFSET_SHIFT — source offset reads from bytecode header - ACTIVE_SOURCE_POINTER_SHIFT — parse-time source linked list - PAREN_POINTER_SHIFT — paren tracking during operand processing - COMMENT_SEQUENCE_SHIFT — comment delimiter sequence reads Bytecode is unchanged since constants are inlined by the compiler. Closes #475. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughReplaced hardcoded bit-shift literals ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
0xf0inshr(0xf0, ...)with named constants per use caseConstants introduced:
OPCODE_FUNCTION_POINTER_SHIFT— LibEval, BaseRainlangExtern, LibIntegrityCheckSOURCE_OFFSET_SHIFT— LibEval, LibInterpreterStateDataContractACTIVE_SOURCE_POINTER_SHIFT— LibParseStatePAREN_POINTER_SHIFT— LibParseState, LibParseCOMMENT_SEQUENCE_SHIFT— LibParseInterstitialCloses #475.
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit