We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 431d99c commit 828bbe4Copy full SHA for 828bbe4
machine/test/test.hpp
@@ -3,6 +3,7 @@
3
4
#include "vm.hpp"
5
#include "state.hpp"
6
+#include "call_frame.hpp"
7
#include "config_parser.hpp"
8
#include "machine/object_utils.hpp"
9
#include "memory.hpp"
@@ -23,6 +24,20 @@ class VMTest {
23
24
ConfigParser* config_parser;
25
Configuration config;
26
27
+
28
+ void setup_call_frame(CallFrame* cf, int size) {
29
+ cf->prepare(size);
30
+ cf->stack_ptr_ = cf->stk - 1;
31
+ cf->previous = NULL;
32
+ cf->lexical_scope_ = nil<LexicalScope>();
33
+ cf->dispatch_data = NULL;
34
+ cf->compiled_code = nil<CompiledCode>();
35
+ cf->flags = 0;
36
+ cf->top_scope_ = NULL;
37
+ cf->scope = NULL;
38
+ cf->arguments = NULL;
39
+ }
40
41
// TODO: Fix this
42
void initialize_as_root(VM* vm) {
43
vm->set_current_thread();
0 commit comments