Skip to content

Commit 760116b

Browse files
committed
Make VMMethod->GetBytecodes() public for now
Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent 86c159f commit 760116b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vmobjects/VMMethod.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ class VMMethod : public VMInvokable {
183183

184184
void Dump(const char* indent, bool printObjects) override;
185185

186+
[[nodiscard]] inline uint8_t* GetBytecodes() const { return bytecodes; }
187+
186188
private:
187189
void inlineInto(MethodGenerationContext& mgenc);
188190
std::priority_queue<BackJump> createBackJumpHeap();
@@ -198,8 +200,6 @@ class VMMethod : public VMInvokable {
198200

199201
make_testable(public);
200202

201-
[[nodiscard]] inline uint8_t* GetBytecodes() const { return bytecodes; }
202-
203203
[[nodiscard]] inline vm_oop_t GetIndexableField(size_t idx) const {
204204
return load_ptr(indexableFields[idx]);
205205
}

0 commit comments

Comments
 (0)