Lines Matching defs:compressor
273 OPT(AST_Node, function(self, compressor) { argument
277 AST_Toplevel.DEFMETHOD("hoist_exports", function(compressor) { argument
415 function is_modified(compressor, tw, node, value, level, immutable, recursive) { argument
484 function can_drop_symbol(ref, compressor, keep_lambda) { argument
525 function reset_def(tw, compressor, def) { argument
543 function reset_block_variables(tw, compressor, scope) { argument
549 function reset_variables(tw, compressor, scope) { argument
725 function ref_once(compressor, def) { argument
807 function make_fixed_default(compressor, node, save) { argument
823 function scan_declaration(tw, compressor, lhs, fixed, visit) { argument
912 function reduce_iife(tw, descend, compressor) { argument
965 def(AST_Assign, function(tw, descend, compressor) { argument
1107 def(AST_BlockScope, function(tw, descend, compressor) { argument
1164 def(AST_Class, function(tw, descend, compressor) { argument
1206 def(AST_ClassInitBlock, function(tw, descend, compressor) { argument
1245 def(AST_For, function(tw, descend, compressor) { argument
1265 def(AST_ForEnumeration, function(tw, descend, compressor) { argument
1316 def(AST_Lambda, function(tw, descend, compressor) { argument
1328 def(AST_LambdaDefinition, function(tw, descend, compressor) { argument
1350 def(AST_Switch, function(tw, descend, compressor) { argument
1379 def(AST_SymbolRef, function(tw, descend, compressor) { argument
1473 def(AST_Toplevel, function(tw, descend, compressor) { argument
1484 def(AST_Try, function(tw, descend, compressor) { argument
1545 def(AST_VarDef, function(tw, descend, compressor) { argument
1602 AST_Toplevel.DEFMETHOD("reset_opt_flags", function(compressor) { argument
1733 function find_scope(compressor) { argument
1740 function find_try(compressor, level, node, scope, may_throw, sync) { argument
1754 function is_lhs_read_only(lhs, compressor) { argument
1948 AST_SymbolRef.DEFMETHOD("is_declared", function(compressor) { argument
2009 function tighten_body(statements, compressor) { argument
2053 function last_of(compressor, predicate) { argument
2121 function collapse(statements, compressor) { argument
3537 function handle_if_return(statements, compressor) { argument
3909 function eliminate_dead_code(statements, compressor) { argument
3942 function trim_awaits(statements, compressor) { argument
3963 function inline_iife(statements, compressor) { argument
3984 function sequencesize(statements, compressor) { argument
4026 function sequencesize_2(statements, compressor) { argument
4379 function extract_declarations_from_unreachable_code(compressor, stat, target) { argument
4431 function is_undefined(node, compressor) { argument
4444 def(AST_Scope, function(compressor) { argument
4543 AST_Node.DEFMETHOD("may_throw_on_access", function(compressor, force) { argument
4546 function is_strict(compressor, force) { argument
4551 def(AST_Assign, function(compressor) { argument
4565 def(AST_Binary, function(compressor) { argument
4568 def(AST_Class, function(compressor, force) { argument
4575 def(AST_Conditional, function(compressor) { argument
4579 def(AST_Dot, function(compressor, force) { argument
4587 def(AST_Object, function(compressor, force) { argument
4593 def(AST_ObjectIdentity, function(compressor, force) { argument
4596 def(AST_Sequence, function(compressor) { argument
4599 def(AST_SymbolRef, function(compressor, force) { argument
4630 function is_binary_defined(compressor, op, node) { argument
4642 def(AST_Assign, function(compressor) { argument
4647 def(AST_Binary, function(compressor) { argument
4650 def(AST_Conditional, function(compressor) { argument
4657 def(AST_Sequence, function(compressor) { argument
4660 def(AST_SymbolRef, function(compressor) { argument
4685 def(AST_Assign, function(compressor) { argument
4689 def(AST_Binary, function(compressor) { argument
4696 def(AST_Call, function(compressor) { argument
4702 def(AST_Conditional, function(compressor) { argument
4706 def(AST_Sequence, function(compressor) { argument
4709 def(AST_SymbolRef, function(compressor) { argument
4729 def(AST_Assign, function(compressor) { argument
4733 def(AST_Binary, function(compressor) { argument
4782 def(AST_Call, function(compressor) { argument
4788 def(AST_Conditional, function(compressor) { argument
4793 def(AST_Sequence, function(compressor) { argument
4796 def(AST_SymbolRef, function(compressor, keep_unary) { argument
4821 def(AST_Assign, function(compressor) { argument
4829 def(AST_Binary, function(compressor) { argument
4845 def(AST_Call, function(compressor) { argument
4850 def(AST_Conditional, function(compressor) { argument
4853 def(AST_Sequence, function(compressor) { argument
4857 def(AST_SymbolRef, function(compressor) { argument
4865 def(AST_Template, function(compressor) { argument
4902 AST_Toplevel.DEFMETHOD("resolve_defines", function(compressor) { argument
4922 def(AST_Dot, function(compressor, suffix) { argument
4925 def(AST_SymbolDeclaration, function(compressor) { argument
4929 def(AST_SymbolRef, function(compressor, suffix) { argument
4952 function best_of(compressor, ast1, ast2, threshold) { argument
4989 function try_evaluate(compressor, node) { argument
5116 AST_Node.DEFMETHOD("evaluate", function(compressor, ignore_side_effects) { argument
5158 def(AST_Assign, function(compressor, ignore_side_effects, cached, depth) { argument
5191 def(AST_Sequence, function(compressor, ignore_side_effects, cached, depth) { argument
5201 def(AST_Lambda, function(compressor) { argument
5212 def(AST_Array, function(compressor, ignore_side_effects, cached, depth) { argument
5226 def(AST_Object, function(compressor, ignore_side_effects, cached, depth) { argument
5251 def(AST_UnaryPrefix, function(compressor, ignore_side_effects, cached, depth) { argument
5295 def(AST_UnaryPostfix, function(compressor, ignore_side_effects, cached, depth) { argument
5316 def(AST_Binary, function(compressor, ignore_side_effects, cached, depth) { argument
5378 def(AST_Conditional, function(compressor, ignore_side_effects, cached, depth) { argument
5402 def(AST_SymbolRef, function(compressor, ignore_side_effects, cached, depth) { argument
5447 def(AST_PropAccess, function(compressor, ignore_side_effects, cached, depth) { argument
5480 function eval_all(nodes, compressor, ignore_side_effects, cached, depth) { argument
5490 def(AST_Call, function(compressor, ignore_side_effects, cached, depth) { argument
5597 def(AST_Template, function(compressor, ignore_side_effects, cached, depth) { argument
5647 def(AST_Binary, function(compressor, first_in_statement) { argument
5678 def(AST_Conditional, function(compressor, first_in_statement) { argument
5687 def(AST_Sequence, function(compressor) { argument
5698 node.DEFMETHOD("negate", function(compressor, first_in_statement) { argument
5705 AST_Call.DEFMETHOD("is_expr_pure", function(compressor) { argument
5716 AST_Template.DEFMETHOD("is_expr_pure", function(compressor) { argument
5730 AST_Call.DEFMETHOD("is_call_pure", function(compressor) { argument
5796 function any(list, compressor, spread) { argument
5803 function array_spread(node, compressor) { argument
5808 def(AST_Array, function(compressor) { argument
5811 def(AST_Assign, function(compressor) { argument
5820 def(AST_Binary, function(compressor) { argument
5825 def(AST_Block, function(compressor) { argument
5828 def(AST_Call, function(compressor) { argument
5835 def(AST_Case, function(compressor) { argument
5839 def(AST_Class, function(compressor) { argument
5847 def(AST_ClassProperty, function(compressor) { argument
5851 def(AST_Conditional, function(compressor) { argument
5857 def(AST_Definitions, function(compressor) { argument
5860 def(AST_DestructuredArray, function(compressor) { argument
5863 def(AST_DestructuredKeyVal, function(compressor) { argument
5867 def(AST_DestructuredObject, function(compressor) { argument
5870 def(AST_Dot, function(compressor) { argument
5875 def(AST_If, function(compressor) { argument
5880 def(AST_LabeledStatement, function(compressor) { argument
5884 def(AST_Object, function(compressor) { argument
5885 return any(this.properties, compressor, function(node, compressor) { argument
5891 def(AST_ObjectProperty, function(compressor) { argument
5895 def(AST_Sequence, function(compressor) { argument
5898 def(AST_SimpleStatement, function(compressor) { argument
5901 def(AST_Sub, function(compressor) { argument
5906 def(AST_Switch, function(compressor) { argument
5911 def(AST_SymbolRef, function(compressor) { argument
5914 def(AST_Template, function(compressor) { argument
5917 def(AST_Try, function(compressor) { argument
5922 def(AST_Unary, function(compressor) { argument
5943 function any(list, compressor) { argument
5950 function call_may_throw(exp, compressor) { argument
5959 def(AST_Array, function(compressor) { argument
5962 def(AST_Assign, function(compressor) { argument
5971 def(AST_Await, function(compressor) { argument
5974 def(AST_Binary, function(compressor) { argument
5979 def(AST_Block, function(compressor) { argument
5982 def(AST_Call, function(compressor) { argument
5990 def(AST_Case, function(compressor) { argument
5994 def(AST_Conditional, function(compressor) { argument
5999 def(AST_DefaultValue, function(compressor) { argument
6003 def(AST_Definitions, function(compressor) { argument
6006 def(AST_Dot, function(compressor) { argument
6010 def(AST_ForEnumeration, function(compressor) { argument
6018 def(AST_If, function(compressor) { argument
6023 def(AST_LabeledStatement, function(compressor) { argument
6026 def(AST_Object, function(compressor) { argument
6029 def(AST_ObjectProperty, function(compressor) { argument
6033 def(AST_Return, function(compressor) { argument
6036 def(AST_Sequence, function(compressor) { argument
6039 def(AST_SimpleStatement, function(compressor) { argument
6042 def(AST_Sub, function(compressor) { argument
6047 def(AST_Switch, function(compressor) { argument
6051 def(AST_SymbolRef, function(compressor) { argument
6054 def(AST_Template, function(compressor) { argument
6063 def(AST_Try, function(compressor) { argument
6067 def(AST_Unary, function(compressor) { argument
6071 def(AST_VarDef, function(compressor) { argument
6181 OPT(AST_Directive, function(self, compressor) { argument
6189 OPT(AST_Debugger, function(self, compressor) { argument
6195 OPT(AST_LabeledStatement, function(self, compressor) { argument
6213 OPT(AST_LoopControl, function(self, compressor) { argument
6228 OPT(AST_Block, function(self, compressor) { argument
6246 OPT(AST_BlockStatement, function(self, compressor) { argument
6251 function drop_rest_farg(fn, compressor) { argument
6260 OPT(AST_Lambda, function(self, compressor) { argument
6266 function opt_arrow(self, compressor) { argument
6289 OPT(AST_Function, function(self, compressor) { argument
6355 AST_Scope.DEFMETHOD("merge_variables", function(compressor) { argument
6868 AST_Scope.DEFMETHOD("drop_unused", function(compressor) { argument
8242 AST_Scope.DEFMETHOD("hoist_declarations", function(compressor) { argument
8356 function can_trim_returns(def, self_returns, compressor) { argument
8366 function process_boolean_returns(fn, compressor) { argument
8390 AST_Defun.DEFMETHOD("process_returns", function(compressor) { argument
8402 AST_Function.DEFMETHOD("process_returns", function(compressor) { argument
8431 compressor.pop(); field
8499 AST_Scope.DEFMETHOD("hoist_properties", function(compressor) { argument
8615 function fn_name_unused(fn, compressor) { argument
8624 function drop_returns(compressor, exp, ignore_name) { argument
8746 function trim(nodes, compressor, first_in_statement, spread) { argument
8765 function array_spread(node, compressor, first_in_statement) { argument
8775 def(AST_Array, function(compressor, first_in_statement) { argument
8783 def(AST_Assign, function(compressor) { argument
8796 def(AST_Await, function(compressor) { argument
8812 def(AST_Binary, function(compressor, first_in_statement) { argument
8846 function assign_this_only(fn, compressor) { argument
8856 def(AST_Call, function(compressor, first_in_statement) { argument
8905 def(AST_ClassExpression, function(compressor, first_in_statement) { argument
8983 def(AST_Conditional, function(compressor) { argument
9022 def(AST_Dot, function(compressor, first_in_statement) { argument
9027 def(AST_Function, function(compressor) { argument
9031 def(AST_Object, function(compressor, first_in_statement) { argument
9041 …var values = trim(exprs, compressor, first_in_statement, function(node, compressor, first_in_state… argument
9054 def(AST_Sequence, function(compressor, first_in_statement) { argument
9080 def(AST_Sub, function(compressor, first_in_statement) { argument
9090 def(AST_SymbolRef, function(compressor) { argument
9093 def(AST_Template, function(compressor, first_in_statement) { argument
9111 def(AST_Unary, function(compressor, first_in_statement) { argument
9131 OPT(AST_SimpleStatement, function(self, compressor) { argument
9146 OPT(AST_While, function(self, compressor) { argument
9165 OPT(AST_Do, function(self, compressor) { argument
9235 function if_break_in_loop(self, compressor) { argument
9316 OPT(AST_For, function(self, compressor) { argument
9349 OPT(AST_ForEnumeration, function(self, compressor) { argument
9484 function fuzzy_eval(compressor, node, nullish) { argument
9492 function mark_duplicate_condition(compressor, node) { argument
9567 OPT(AST_If, function(self, compressor) { argument
9879 OPT(AST_Switch, function(self, compressor) { argument
10058 OPT(AST_Try, function(self, compressor) { argument
10096 return function(compressor, defns) { argument
10111 AST_Const.DEFMETHOD("remove_initializers", remove_initializers(function(compressor, node) { argument
10164 function may_overlap(compressor, def) { argument
10192 function can_varify(compressor, sym) { argument
10200 function varify(self, compressor) { argument
10211 function trim_optional_chain(node, compressor) { argument
10227 function lift_sequence_in_expression(node, compressor) { argument
10237 function drop_unused_call_args(call, compressor, fns_with_marked_args) { argument
10329 function avoid_await_yield(compressor, parent_scope) { argument
10359 function safe_from_strict_mode(fn, compressor) { argument
10363 OPT(AST_Call, function(self, compressor) { argument
10752 self.drop_side_effect_free = function(compressor, first_in_statement) { argument
11244 OPT(AST_New, function(self, compressor) { argument
11266 function to_conditional_assignment(compressor, def, value, node) { argument
11298 OPT(AST_Sequence, function(self, compressor) { argument
11369 OPT(AST_UnaryPostfix, function(self, compressor) { argument
11379 OPT(AST_UnaryPrefix, function(self, compressor) { argument
11466 OPT(AST_Await, function(self, compressor) { argument
11499 OPT(AST_Yield, function(self, compressor) { argument
11513 AST_Binary.DEFMETHOD("lift_sequences", function(compressor) { argument
11569 function can_drop_op(op, rhs, compressor) { argument
11581 function needs_enqueuing(compressor, node) { argument
11601 function extract_lhs(node, compressor) { argument
11610 function repeatable(compressor, node) { argument
11619 function swap_chain(self, compressor) { argument
11643 OPT(AST_Binary, function(self, compressor) { argument
12311 function recursive_ref(compressor, def, fn) { argument
12326 OPT(AST_SymbolRef, function(self, compressor) { argument
12535 function is_raw_tag(compressor, tag) { argument
12553 OPT(AST_Template, function(self, compressor) { argument
12639 OPT(AST_Undefined, function(self, compressor) { argument
12660 OPT(AST_Infinity, function(self, compressor) { argument
12673 OPT(AST_NaN, function(self, compressor) { argument
12707 OPT(AST_Assign, function(self, compressor) { argument
12885 OPT(AST_Conditional, function(self, compressor) { argument
13261 OPT(AST_Boolean, function(self, compressor) { argument
13279 OPT(AST_Spread, function(self, compressor) { argument
13289 function safe_to_flatten(value, compressor) { argument
13301 OPT(AST_Sub, function(self, compressor) { argument
13501 AST_PropAccess.DEFMETHOD("flatten_object", function(key, compressor) { argument
13545 OPT(AST_Dot, function(self, compressor) { argument
13592 OPT(AST_DestructuredArray, function(self, compressor) { argument
13602 OPT(AST_DestructuredKeyVal, function(self, compressor) { argument
13613 OPT(AST_Object, function(self, compressor) { argument
13746 function init_ref(compressor, name) { argument
13769 def(AST_Await, function(compressor, scope, no_return, in_loop) { argument
13788 def(AST_Binary, function(compressor, scope, no_return, in_loop, in_await) { argument
13818 def(AST_BlockStatement, function(compressor, scope, no_return, in_loop) { argument
13829 def(AST_Call, function(compressor, scope, no_return, in_loop, in_await) { argument
14039 def(AST_Conditional, function(compressor, scope, no_return, in_loop, in_await) { argument
14055 def(AST_For, function(compressor, scope, no_return, in_loop) { argument
14072 def(AST_ForEnumeration, function(compressor, scope, no_return, in_loop) { argument
14086 def(AST_If, function(compressor, scope, no_return, in_loop) { argument
14105 def(AST_IterationStatement, function(compressor, scope, no_return, in_loop) { argument
14111 def(AST_LabeledStatement, function(compressor, scope, no_return, in_loop) { argument
14124 def(AST_Return, function(compressor, scope, no_return, in_loop) { argument
14128 function inline_sequence(compressor, scope, no_return, in_loop, in_await, node, skip) { argument
14150 def(AST_Sequence, function(compressor, scope, no_return, in_loop, in_await) { argument
14153 def(AST_SimpleStatement, function(compressor, scope, no_return, in_loop) { argument
14167 def(AST_UnaryPrefix, function(compressor, scope, no_return, in_loop, in_await) { argument
14185 def(AST_With, function(compressor, scope, no_return, in_loop) { argument
14199 def(AST_Yield, function(compressor, scope, no_return, in_loop) { argument
14223 OPT(AST_Return, function(self, compressor) { argument
14233 node.DEFMETHOD("optimize", function(compressor) { argument