perf: 移除调试信息

This commit is contained in:
msojocs 2023-07-29 16:33:59 +08:00
parent 5cff0a5da3
commit a317fc740c
2 changed files with 11 additions and 12 deletions

View File

@ -295,10 +295,10 @@ namespace night
}
return v6;
}
int ast_dispatch_i = 0;
// int ast_dispatch_i = 0;
night::ns_node *NSASTParse::ast_dispatch(bool a3)
{
int inner_ast_dispatch_i = ++ast_dispatch_i;
// int inner_ast_dispatch_i = ++ast_dispatch_i;
// ast_dispatch - 0
auto v42 = this->is_punctuation("(");
if (!v42)
@ -697,10 +697,10 @@ namespace night
}
int make_binary_or_just_value_i = 0;
// int make_binary_or_just_value_i = 0;
night::ns_node *NSASTParse::make_binary_or_just_value(night::ns_node * a2, bool a3)
{
int inner_make_binary_or_just_value_i = ++make_binary_or_just_value_i;
// int inner_make_binary_or_just_value_i = ++make_binary_or_just_value_i;
bool v21;
bool v18;
if (a3)
@ -795,10 +795,10 @@ namespace night
}
return a2;
}
int ast_expression_i = 0;
// int ast_expression_i = 0;
night::ns_node *NSASTParse::ast_expression()
{
ast_expression_i++;
// int inner_ast_expression_i = ast_expression_i++;
auto v1 = this->ast_dispatch(false);
auto binary_or_just_value = this->make_binary_or_just_value(v1, false);
auto result = this->make_call_or_just_expression(binary_or_just_value);
@ -815,10 +815,10 @@ namespace night
throw "not implement";
}
int ast_obj_dot_i = 0;
// int ast_obj_dot_i = 0;
night::ns_node *NSASTParse::ast_obj_dot(night::ns_node* a2)
{
ast_obj_dot_i++;
// int inner_ast_obj_dot_i = ast_obj_dot_i++;
auto v11 = this->offset_24;
auto v9 = v11->gen_girl(night::std_v_n);
auto v10 = v11->gen_son(night::NS_TYPE_OBJ_DOT);

View File

@ -46,7 +46,7 @@ namespace night
|| (v4->at(0)->offset_0 != night::NS_TYPE_SKIP)
)
{
str += "("; // 待确认
str += "(";
this->offset_48++;
for (int v19 = 0; v19 < v4->size(); v19++)
@ -59,7 +59,7 @@ namespace night
this->offset_48++;
}
}
str += ")"; // TODO...待确认
str += ")";
this->offset_48++;
}
@ -187,7 +187,6 @@ namespace night
}
// compile_function - 10
result += ")";
// "(function (nv_evt,nv_instanc"
this->offset_48++;
if (v29)
{
@ -316,7 +315,7 @@ namespace night
std::string NSCompileJs::compile_obj_property(night::ns_node *)
{
// TODO...
return "";
throw "not implement";
}
std::string NSCompileJs::compile_obj_self_op(night::ns_node *a3)
{