mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
perf: 移除调试信息
This commit is contained in:
parent
5cff0a5da3
commit
a317fc740c
@ -295,10 +295,10 @@ namespace night
|
|||||||
}
|
}
|
||||||
return v6;
|
return v6;
|
||||||
}
|
}
|
||||||
int ast_dispatch_i = 0;
|
// int ast_dispatch_i = 0;
|
||||||
night::ns_node *NSASTParse::ast_dispatch(bool a3)
|
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
|
// ast_dispatch - 0
|
||||||
auto v42 = this->is_punctuation("(");
|
auto v42 = this->is_punctuation("(");
|
||||||
if (!v42)
|
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)
|
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 v21;
|
||||||
bool v18;
|
bool v18;
|
||||||
if (a3)
|
if (a3)
|
||||||
@ -795,10 +795,10 @@ namespace night
|
|||||||
}
|
}
|
||||||
return a2;
|
return a2;
|
||||||
}
|
}
|
||||||
int ast_expression_i = 0;
|
// int ast_expression_i = 0;
|
||||||
night::ns_node *NSASTParse::ast_expression()
|
night::ns_node *NSASTParse::ast_expression()
|
||||||
{
|
{
|
||||||
ast_expression_i++;
|
// int inner_ast_expression_i = ast_expression_i++;
|
||||||
auto v1 = this->ast_dispatch(false);
|
auto v1 = this->ast_dispatch(false);
|
||||||
auto binary_or_just_value = this->make_binary_or_just_value(v1, 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);
|
auto result = this->make_call_or_just_expression(binary_or_just_value);
|
||||||
@ -815,10 +815,10 @@ namespace night
|
|||||||
throw "not implement";
|
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)
|
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 v11 = this->offset_24;
|
||||||
auto v9 = v11->gen_girl(night::std_v_n);
|
auto v9 = v11->gen_girl(night::std_v_n);
|
||||||
auto v10 = v11->gen_son(night::NS_TYPE_OBJ_DOT);
|
auto v10 = v11->gen_son(night::NS_TYPE_OBJ_DOT);
|
||||||
|
@ -46,7 +46,7 @@ namespace night
|
|||||||
|| (v4->at(0)->offset_0 != night::NS_TYPE_SKIP)
|
|| (v4->at(0)->offset_0 != night::NS_TYPE_SKIP)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
str += "("; // 待确认
|
str += "(";
|
||||||
|
|
||||||
this->offset_48++;
|
this->offset_48++;
|
||||||
for (int v19 = 0; v19 < v4->size(); v19++)
|
for (int v19 = 0; v19 < v4->size(); v19++)
|
||||||
@ -59,7 +59,7 @@ namespace night
|
|||||||
this->offset_48++;
|
this->offset_48++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str += ")"; // TODO...待确认
|
str += ")";
|
||||||
this->offset_48++;
|
this->offset_48++;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -187,7 +187,6 @@ namespace night
|
|||||||
}
|
}
|
||||||
// compile_function - 10
|
// compile_function - 10
|
||||||
result += ")";
|
result += ")";
|
||||||
// "(function (nv_evt,nv_instanc"
|
|
||||||
this->offset_48++;
|
this->offset_48++;
|
||||||
if (v29)
|
if (v29)
|
||||||
{
|
{
|
||||||
@ -316,7 +315,7 @@ namespace night
|
|||||||
std::string NSCompileJs::compile_obj_property(night::ns_node *)
|
std::string NSCompileJs::compile_obj_property(night::ns_node *)
|
||||||
{
|
{
|
||||||
// TODO...
|
// TODO...
|
||||||
return "";
|
throw "not implement";
|
||||||
}
|
}
|
||||||
std::string NSCompileJs::compile_obj_self_op(night::ns_node *a3)
|
std::string NSCompileJs::compile_obj_self_op(night::ns_node *a3)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user