mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibJS: Add placeholder bytecode block sealing mechanism
After compiling bytecode, we should mark the memory read-only. This currently does not work because it breaks instruction destruction. I'm adding this anyway with a FIXME so we don't forget about it. :^)
This commit is contained in:
parent
4ba2eb8fe5
commit
312297ac38
3 changed files with 9 additions and 0 deletions
|
@ -42,6 +42,7 @@ public:
|
|||
static NonnullOwnPtr<Block> create();
|
||||
~Block();
|
||||
|
||||
void seal();
|
||||
void dump() const;
|
||||
ReadonlyBytes instruction_stream() const { return ReadonlyBytes { m_buffer, m_buffer_size }; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue