26 lines
378 B
C
26 lines
378 B
C
|
#pragma once
|
||
|
#include "./runtime.h"
|
||
|
#include "./gc.h"
|
||
|
|
||
|
struct js_ctx {
|
||
|
// js_gc_table_t gc;
|
||
|
};
|
||
|
|
||
|
typedef struct {
|
||
|
js_string_t str;
|
||
|
js_gc_data_t gc;
|
||
|
} *js_gc_str_t;
|
||
|
|
||
|
typedef struct {
|
||
|
js_gc_str_t str;
|
||
|
js_gc_data_t gc;
|
||
|
} *js_symbol_t;
|
||
|
|
||
|
|
||
|
struct js_capture {
|
||
|
js_value_t *ref;
|
||
|
js_gc_data_t gc;
|
||
|
};
|
||
|
|
||
|
// void js_gc_reclaim_str(js_gc_task_stack_t *stack, void **ref, js_obj_t obj);
|