296 lines
12 KiB
C
296 lines
12 KiB
C
/* Solidification of Matter_Profiler.h */
|
|
/********************************************************************\
|
|
* Generated code, don't edit *
|
|
\********************************************************************/
|
|
#include "be_constobj.h"
|
|
// compact class 'Matter_Profiler' ktab size: 18, total: 43 (saved 200 bytes)
|
|
static const bvalue be_ktab_class_Matter_Profiler[18] = {
|
|
/* K0 */ be_nested_str_weak(active),
|
|
/* K1 */ be_const_int(0),
|
|
/* K2 */ be_nested_str_weak(PREALLOCATED),
|
|
/* K3 */ be_nested_str_weak(millis),
|
|
/* K4 */ be_nested_str_weak(names),
|
|
/* K5 */ be_const_int(1),
|
|
/* K6 */ be_nested_str_weak(len),
|
|
/* K7 */ be_nested_str_weak(tasmota),
|
|
/* K8 */ be_nested_str_weak(gc),
|
|
/* K9 */ be_nested_str_weak(log),
|
|
/* K10 */ be_nested_str_weak(start),
|
|
/* K11 */ be_nested_str_weak(resize),
|
|
/* K12 */ be_nested_str_weak(allocs),
|
|
/* K13 */ be_nested_str_weak(reallocs),
|
|
/* K14 */ be_nested_str_weak(debug),
|
|
/* K15 */ be_nested_str_weak(_X3C_X2D_X2Dend_X2D_X2D_X3E),
|
|
/* K16 */ be_nested_str_weak(MTR_X3A_X20Profiler_X20dump_X3A),
|
|
/* K17 */ be_nested_str_weak(MTR_X3A_X20_X20_X20_X254i_X20_X5B_X254i_X5D_X27_X25s_X27),
|
|
};
|
|
|
|
|
|
extern const bclass be_class_Matter_Profiler;
|
|
|
|
/********************************************************************
|
|
** Solidified function: start
|
|
********************************************************************/
|
|
be_local_closure(class_Matter_Profiler_start, /* name */
|
|
be_nested_proto(
|
|
5, /* nstack */
|
|
1, /* argc */
|
|
10, /* varg */
|
|
0, /* has upvals */
|
|
NULL, /* no upvals */
|
|
0, /* has sup protos */
|
|
NULL, /* no sub protos */
|
|
1, /* has constants */
|
|
&be_ktab_class_Matter_Profiler, /* shared constants */
|
|
be_str_weak(start),
|
|
&be_const_str_solidified,
|
|
( &(const binstruction[23]) { /* code */
|
|
0x88040100, // 0000 GETMBR R1 R0 K0
|
|
0x74060000, // 0001 JMPT R1 #0003
|
|
0x80000200, // 0002 RET 0
|
|
0x58040001, // 0003 LDCONST R1 K1
|
|
0x88080102, // 0004 GETMBR R2 R0 K2
|
|
0x14080202, // 0005 LT R2 R1 R2
|
|
0x780A0007, // 0006 JMPF R2 #000F
|
|
0x88080103, // 0007 GETMBR R2 R0 K3
|
|
0x4C0C0000, // 0008 LDNIL R3
|
|
0x98080203, // 0009 SETIDX R2 R1 R3
|
|
0x88080104, // 000A GETMBR R2 R0 K4
|
|
0x4C0C0000, // 000B LDNIL R3
|
|
0x98080203, // 000C SETIDX R2 R1 R3
|
|
0x00040305, // 000D ADD R1 R1 K5
|
|
0x7001FFF4, // 000E JMP #0004
|
|
0x90020D01, // 000F SETMBR R0 K6 K1
|
|
0xB80A0E00, // 0010 GETNGBL R2 K7
|
|
0x8C080508, // 0011 GETMET R2 R2 K8
|
|
0x7C080200, // 0012 CALL R2 1
|
|
0x8C080109, // 0013 GETMET R2 R0 K9
|
|
0x5810000A, // 0014 LDCONST R4 K10
|
|
0x7C080400, // 0015 CALL R2 2
|
|
0x80000000, // 0016 RET 0
|
|
})
|
|
)
|
|
);
|
|
/*******************************************************************/
|
|
|
|
|
|
/********************************************************************
|
|
** Solidified function: init
|
|
********************************************************************/
|
|
be_local_closure(class_Matter_Profiler_init, /* name */
|
|
be_nested_proto(
|
|
4, /* nstack */
|
|
1, /* argc */
|
|
10, /* varg */
|
|
0, /* has upvals */
|
|
NULL, /* no upvals */
|
|
0, /* has sup protos */
|
|
NULL, /* no sub protos */
|
|
1, /* has constants */
|
|
&be_ktab_class_Matter_Profiler, /* shared constants */
|
|
be_str_weak(init),
|
|
&be_const_str_solidified,
|
|
( &(const binstruction[32]) { /* code */
|
|
0x50040000, // 0000 LDBOOL R1 0 0
|
|
0x90020001, // 0001 SETMBR R0 K0 R1
|
|
0x60040012, // 0002 GETGBL R1 G18
|
|
0x7C040000, // 0003 CALL R1 0
|
|
0x90020601, // 0004 SETMBR R0 K3 R1
|
|
0x88040103, // 0005 GETMBR R1 R0 K3
|
|
0x8C04030B, // 0006 GETMET R1 R1 K11
|
|
0x880C0102, // 0007 GETMBR R3 R0 K2
|
|
0x7C040400, // 0008 CALL R1 2
|
|
0x60040012, // 0009 GETGBL R1 G18
|
|
0x7C040000, // 000A CALL R1 0
|
|
0x90020801, // 000B SETMBR R0 K4 R1
|
|
0x88040104, // 000C GETMBR R1 R0 K4
|
|
0x8C04030B, // 000D GETMET R1 R1 K11
|
|
0x880C0102, // 000E GETMBR R3 R0 K2
|
|
0x7C040400, // 000F CALL R1 2
|
|
0x60040012, // 0010 GETGBL R1 G18
|
|
0x7C040000, // 0011 CALL R1 0
|
|
0x90021801, // 0012 SETMBR R0 K12 R1
|
|
0x8804010C, // 0013 GETMBR R1 R0 K12
|
|
0x8C04030B, // 0014 GETMET R1 R1 K11
|
|
0x880C0102, // 0015 GETMBR R3 R0 K2
|
|
0x7C040400, // 0016 CALL R1 2
|
|
0x60040012, // 0017 GETGBL R1 G18
|
|
0x7C040000, // 0018 CALL R1 0
|
|
0x90021A01, // 0019 SETMBR R0 K13 R1
|
|
0x8804010D, // 001A GETMBR R1 R0 K13
|
|
0x8C04030B, // 001B GETMET R1 R1 K11
|
|
0x880C0102, // 001C GETMBR R3 R0 K2
|
|
0x7C040400, // 001D CALL R1 2
|
|
0x90020D01, // 001E SETMBR R0 K6 K1
|
|
0x80000000, // 001F RET 0
|
|
})
|
|
)
|
|
);
|
|
/*******************************************************************/
|
|
|
|
|
|
/********************************************************************
|
|
** Solidified function: set_active
|
|
********************************************************************/
|
|
be_local_closure(class_Matter_Profiler_set_active, /* name */
|
|
be_nested_proto(
|
|
4, /* nstack */
|
|
2, /* argc */
|
|
10, /* varg */
|
|
0, /* has upvals */
|
|
NULL, /* no upvals */
|
|
0, /* has sup protos */
|
|
NULL, /* no sub protos */
|
|
1, /* has constants */
|
|
&be_ktab_class_Matter_Profiler, /* shared constants */
|
|
be_str_weak(set_active),
|
|
&be_const_str_solidified,
|
|
( &(const binstruction[ 5]) { /* code */
|
|
0x60080017, // 0000 GETGBL R2 G23
|
|
0x5C0C0200, // 0001 MOVE R3 R1
|
|
0x7C080200, // 0002 CALL R2 1
|
|
0x90020002, // 0003 SETMBR R0 K0 R2
|
|
0x80000000, // 0004 RET 0
|
|
})
|
|
)
|
|
);
|
|
/*******************************************************************/
|
|
|
|
|
|
/********************************************************************
|
|
** Solidified function: log
|
|
********************************************************************/
|
|
be_local_closure(class_Matter_Profiler_log, /* name */
|
|
be_nested_proto(
|
|
7, /* nstack */
|
|
2, /* argc */
|
|
10, /* varg */
|
|
0, /* has upvals */
|
|
NULL, /* no upvals */
|
|
0, /* has sup protos */
|
|
NULL, /* no sub protos */
|
|
1, /* has constants */
|
|
&be_ktab_class_Matter_Profiler, /* shared constants */
|
|
be_str_weak(log),
|
|
&be_const_str_solidified,
|
|
( &(const binstruction[28]) { /* code */
|
|
0x88080100, // 0000 GETMBR R2 R0 K0
|
|
0x740A0000, // 0001 JMPT R2 #0003
|
|
0x80000400, // 0002 RET 0
|
|
0xA40A1C00, // 0003 IMPORT R2 K14
|
|
0x880C0106, // 0004 GETMBR R3 R0 K6
|
|
0x88100102, // 0005 GETMBR R4 R0 K2
|
|
0x28100604, // 0006 GE R4 R3 R4
|
|
0x78120000, // 0007 JMPF R4 #0009
|
|
0x80000800, // 0008 RET 0
|
|
0x88100103, // 0009 GETMBR R4 R0 K3
|
|
0xB8160E00, // 000A GETNGBL R5 K7
|
|
0x8C140B03, // 000B GETMET R5 R5 K3
|
|
0x7C140200, // 000C CALL R5 1
|
|
0x98100605, // 000D SETIDX R4 R3 R5
|
|
0x88100104, // 000E GETMBR R4 R0 K4
|
|
0x98100601, // 000F SETIDX R4 R3 R1
|
|
0x8810010C, // 0010 GETMBR R4 R0 K12
|
|
0x8C14050C, // 0011 GETMET R5 R2 K12
|
|
0x7C140200, // 0012 CALL R5 1
|
|
0x98100605, // 0013 SETIDX R4 R3 R5
|
|
0x8810010D, // 0014 GETMBR R4 R0 K13
|
|
0x8C14050D, // 0015 GETMET R5 R2 K13
|
|
0x7C140200, // 0016 CALL R5 1
|
|
0x98100605, // 0017 SETIDX R4 R3 R5
|
|
0x88100106, // 0018 GETMBR R4 R0 K6
|
|
0x00100905, // 0019 ADD R4 R4 K5
|
|
0x90020C04, // 001A SETMBR R0 K6 R4
|
|
0x80000000, // 001B RET 0
|
|
})
|
|
)
|
|
);
|
|
/*******************************************************************/
|
|
|
|
|
|
/********************************************************************
|
|
** Solidified function: dump
|
|
********************************************************************/
|
|
be_local_closure(class_Matter_Profiler_dump, /* name */
|
|
be_nested_proto(
|
|
12, /* nstack */
|
|
2, /* argc */
|
|
10, /* varg */
|
|
0, /* has upvals */
|
|
NULL, /* no upvals */
|
|
0, /* has sup protos */
|
|
NULL, /* no sub protos */
|
|
1, /* has constants */
|
|
&be_ktab_class_Matter_Profiler, /* shared constants */
|
|
be_str_weak(dump),
|
|
&be_const_str_solidified,
|
|
( &(const binstruction[37]) { /* code */
|
|
0x88080100, // 0000 GETMBR R2 R0 K0
|
|
0x740A0000, // 0001 JMPT R2 #0003
|
|
0x80000400, // 0002 RET 0
|
|
0x8C080109, // 0003 GETMET R2 R0 K9
|
|
0x5810000F, // 0004 LDCONST R4 K15
|
|
0x7C080400, // 0005 CALL R2 2
|
|
0xB80A1200, // 0006 GETNGBL R2 K9
|
|
0x580C0010, // 0007 LDCONST R3 K16
|
|
0x5C100200, // 0008 MOVE R4 R1
|
|
0x7C080400, // 0009 CALL R2 2
|
|
0x88080103, // 000A GETMBR R2 R0 K3
|
|
0x94080501, // 000B GETIDX R2 R2 K1
|
|
0x880C010C, // 000C GETMBR R3 R0 K12
|
|
0x940C0701, // 000D GETIDX R3 R3 K1
|
|
0x8810010D, // 000E GETMBR R4 R0 K13
|
|
0x94100901, // 000F GETIDX R4 R4 K1
|
|
0x58140005, // 0010 LDCONST R5 K5
|
|
0x88180106, // 0011 GETMBR R6 R0 K6
|
|
0x14180A06, // 0012 LT R6 R5 R6
|
|
0x781A000F, // 0013 JMPF R6 #0024
|
|
0xB81A1200, // 0014 GETNGBL R6 K9
|
|
0x601C0018, // 0015 GETGBL R7 G24
|
|
0x58200011, // 0016 LDCONST R8 K17
|
|
0x88240103, // 0017 GETMBR R9 R0 K3
|
|
0x94241205, // 0018 GETIDX R9 R9 R5
|
|
0x04241202, // 0019 SUB R9 R9 R2
|
|
0x8828010C, // 001A GETMBR R10 R0 K12
|
|
0x94281405, // 001B GETIDX R10 R10 R5
|
|
0x04281403, // 001C SUB R10 R10 R3
|
|
0x882C0104, // 001D GETMBR R11 R0 K4
|
|
0x942C1605, // 001E GETIDX R11 R11 R5
|
|
0x7C1C0800, // 001F CALL R7 4
|
|
0x5C200200, // 0020 MOVE R8 R1
|
|
0x7C180400, // 0021 CALL R6 2
|
|
0x00140B05, // 0022 ADD R5 R5 K5
|
|
0x7001FFEC, // 0023 JMP #0011
|
|
0x80000000, // 0024 RET 0
|
|
})
|
|
)
|
|
);
|
|
/*******************************************************************/
|
|
|
|
|
|
/********************************************************************
|
|
** Solidified class: Matter_Profiler
|
|
********************************************************************/
|
|
be_local_class(Matter_Profiler,
|
|
6,
|
|
NULL,
|
|
be_nested_map(12,
|
|
( (struct bmapnode*) &(const bmapnode[]) {
|
|
{ be_const_key_weak(dump, 8), be_const_closure(class_Matter_Profiler_dump_closure) },
|
|
{ be_const_key_weak(millis, 5), be_const_var(0) },
|
|
{ be_const_key_weak(reallocs, -1), be_const_var(4) },
|
|
{ be_const_key_weak(init, 1), be_const_closure(class_Matter_Profiler_init_closure) },
|
|
{ be_const_key_weak(len, -1), be_const_var(5) },
|
|
{ be_const_key_weak(active, -1), be_const_var(2) },
|
|
{ be_const_key_weak(set_active, -1), be_const_closure(class_Matter_Profiler_set_active_closure) },
|
|
{ be_const_key_weak(names, -1), be_const_var(1) },
|
|
{ be_const_key_weak(allocs, 10), be_const_var(3) },
|
|
{ be_const_key_weak(log, -1), be_const_closure(class_Matter_Profiler_log_closure) },
|
|
{ be_const_key_weak(PREALLOCATED, -1), be_const_int(50) },
|
|
{ be_const_key_weak(start, 0), be_const_closure(class_Matter_Profiler_start_closure) },
|
|
})),
|
|
be_str_weak(Matter_Profiler)
|
|
);
|
|
/********************************************************************/
|
|
/* End of solidification */
|