Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VKCOM/kphp
/ functions
Functions
17,654 in github.com/VKCOM/kphp
⨍
Functions
17,654
◇
Types & classes
5,411
Method
on_ffi_static_cast
on FFI::cast(), replace it with op_ffi_cast
compiler/pipes/instantiate-ffi-operations.cpp:387
Method
on_ffi_static_is_null
on FFI::is_null(), unwrap a call argument
compiler/pipes/instantiate-ffi-operations.cpp:337
Method
on_ffi_static_new
on FFI::new(), replace it with op_ffi_new
compiler/pipes/instantiate-ffi-operations.cpp:314
Method
on_finish
compiler/generics-reification.cpp:358
Method
on_finish
compiler/scheduler/task-pull.h:28
Method
on_finish
compiler/scheduler/pipe_with_progress.h:108
Method
on_finish
compiler/pipes/collect-main-edges.cpp:619
Method
on_finish
compiler/pipes/analyze-performance.cpp:586
Method
on_finish
compiler/pipes/cfg.h:20
Method
on_finish
compiler/pipes/collect-forkable-types.cpp:30
Method
on_finish
compiler/pipes/generate-virtual-methods.cpp:445
Method
on_finish
compiler/pipes/calc-bad-vars.cpp:747
Method
on_finish
compiler/pipes/check-classes.cpp:34
Method
on_finish
compiler/pipes/parse-and-apply-phpdoc.cpp:813
Method
on_finish
compiler/pipes/register-variables.cpp:248
Method
on_finish
compiler/pipes/inline-simple-functions.cpp:120
Method
on_finish
compiler/pipes/check-restrictions.h:19
Method
on_finish
compiler/pipes/register-kphp-configuration.cpp:29
Method
on_finish
compiler/pipes/wait-for-all-classes.cpp:27
Method
on_finish
compiler/pipes/optimization.cpp:432
Method
on_finish
compiler/pipes/code-gen.cpp:45
Method
on_finish
compiler/pipes/type-inferer.cpp:13
Method
on_finish
compiler/pipes/analyzer.cpp:118
Method
on_finish
compiler/pipes/filter-only-actually-used.cpp:293
Method
on_finish
compiler/pipes/calc-real-defines-values.cpp:55
Method
on_finish
compiler/pipes/sync.h:42
Method
on_finish
compiler/pipes/deduce-implicit-types-and-casts.cpp:462
Method
on_finished
runtime/kphp_tracing.cpp:713
Method
on_flush_packet
third-party/statshouse.h:696
Method
on_foreach
compiler/pipes/collect-main-edges.cpp:378
Method
on_fork
check that fork(...) is called correctly, as fork(f()) note, that we do this after replacing op_invoke_call with op_func_call, not earlier
compiler/pipes/check-func-calls-and-vararg.cpp:317
Method
on_func_call
compiler/const-manipulations.h:50
Method
on_func_call
compiler/const-manipulations.h:234
Method
on_func_call
compiler/const-manipulations.h:383
Method
on_func_call
compiler/const-manipulations.h:465
Method
on_func_call
check func call, that a call is valid (not abstract, etc) and provided a valid number of arguments also, check the number of arguments passed as callb
compiler/pipes/check-func-calls-and-vararg.cpp:210
Method
on_func_call
compiler/pipes/collect-main-edges.cpp:314
Method
on_func_call
compiler/pipes/collect-const-vars.cpp:66
Method
on_func_call
compiler/pipes/collect-const-vars.cpp:84
Method
on_func_call
compiler/pipes/collect-const-vars.cpp:103
Method
on_func_call
compiler/pipes/collect-const-vars.cpp:227
Method
on_func_call
compiler/pipes/early-optimization.cpp:81
Method
on_func_call
up to this point, all `$f = function() { ... }` have already been replaced with `$f = Lambda$xxx$$__construct(op_alloc)` such lambda classes have __in
compiler/pipes/convert-invoke-to-func-call.cpp:77
Method
on_func_call
for every `f(...)`, bind func_id for every call argument, patch it to fit @param of f() if f() is a generic function `f<T1,T2,...>(...)`, deduce insta
compiler/pipes/deduce-implicit-types-and-casts.cpp:565
Method
on_func_call_extern_modifying_arg_type
handles calls to extern functions that modify arg type for example, array_push($arr, $v) is like $arr[]=$v
compiler/pipes/collect-main-edges.cpp:224
Method
on_func_name
compiler/const-manipulations.h:42
Method
on_func_name
compiler/const-manipulations.h:225
Method
on_func_name
compiler/const-manipulations.h:270
Method
on_func_name
compiler/const-manipulations.h:345
Method
on_func_param
at first, for every function with `@param A` or other instances, add assumptions such arguments won't be splited (see CFG::split_var), so they can't b
compiler/pipes/deduce-implicit-types-and-casts.cpp:528
Method
on_function
compiler/pipes/collect-main-edges.cpp:532
Method
on_function
compiler/pipes/final-check.cpp:1034
Method
on_generic_func_call_instantiate
have `f<T>(...)`, create f$_$T and return it note, that we always know T due to the previous pipe (when omitted in code, it was auto-deduced if possib
compiler/pipes/instantiate-generics-and-lambdas.cpp:214
Method
on_if_user_recursion
1) handle `if ($x instanceof A)`, replace $x with a temp var inside its body 2) handle `if (!($x instanceof A)) return`, replace $x with a temp var ti
compiler/pipes/transform-to-smart-instanceof.cpp:27
Method
on_index
compiler/const-manipulations.h:68
Method
on_index
compiler/const-manipulations.h:370
Method
on_index
compiler/const-manipulations.h:572
Method
on_index_key
compiler/const-manipulations.h:66
Method
on_index_key
compiler/const-manipulations.h:201
Method
on_index_key
compiler/const-manipulations.h:460
Method
on_input_type_mismatch
runtime-common/stdlib/serialization/from-json-processor.h:53
Method
on_instance_prop
compiler/const-manipulations.h:46
Method
on_instance_prop
compiler/const-manipulations.h:558
Method
on_instance_prop
handle `$obj->field`, calc assumption for $obj and set var_id
compiler/pipes/deduce-implicit-types-and-casts.cpp:824
Method
on_invoke_call
here we replace op_invoke_call `$f(...)` with an op_func_call `$f->__invoke(...)` this can be done only here (not in deducing types), after all lambda
compiler/pipes/convert-invoke-to-func-call.cpp:90
Method
on_lambda
handle `function() { ... }` (lambdas were not replaced by lambda classes yet at this step of pipeline)
compiler/pipes/deduce-implicit-types-and-casts.cpp:819
Method
on_lambda_user_recursion
handle `fn() => $captured_var` — maybe, $captured_var from uses_list is modified (i.e. from smart instanceof or catch)
compiler/pipes/transform-to-smart-instanceof.cpp:67
Method
on_list
compiler/pipes/collect-main-edges.cpp:428
Method
on_list
compiler/pipes/early-optimization.cpp:42
Method
on_list
handle `list($a, $b) = ...`, patch rhs by indexes to fit @var if declared above
compiler/pipes/deduce-implicit-types-and-casts.cpp:775
Method
on_new_type_became_tpError
this callback is invoked immediately when new_type_ has become tp_Error during recalculation by default, we try to detect the reason and print it out
compiler/inferring/node-recalc.cpp:19
Method
on_new_type_became_tpError
when new_type_ became tp_Error but a node is restricted with phpdoc (example: @param string, but passed Exception) — then don't print it out, just ski
compiler/inferring/var-node.cpp:73
Method
on_non_const
compiler/const-manipulations.h:54
Method
on_non_const
compiler/const-manipulations.h:239
Method
on_non_const
compiler/const-manipulations.h:353
Method
on_non_const
compiler/const-manipulations.h:455
Method
on_non_const
compiler/const-manipulations.h:562
Method
on_op_callback_of_builtin_patch_if_lambda
have `array_map(fn(...) => ..., $array)` earlier, a lambda was wrapped to op_callback_of_builtin we need to pass that wrapped lambda back to the pipel
compiler/pipes/instantiate-generics-and-lambdas.cpp:269
Method
on_op_lambda_convert_to_construct_lambda_class
replace op_lambda with __construct call of a lambda class: have `function() { ... }` create a lambda class, which __invoke method calls this lambda (s
compiler/pipes/instantiate-generics-and-lambdas.cpp:241
Method
on_passed_callback_to_builtin
handle calls to built-in functions with callbacks: array_filter($a, function($v) { ... }), array_filter($a, 'cb') and similar (not to php functions wi
compiler/pipes/collect-main-edges.cpp:265
Method
on_phpdoc_for_var
when we meet @var {type} $v, 1) for primitives (strings, etc — no instances == no assumptions) we allow splitting by cfg, skip them 2) for non-primiti
compiler/pipes/deduce-implicit-types-and-casts.cpp:537
Method
on_pipe_finish
compiler/scheduler/pipe_with_progress.h:45
Method
on_pipe_process_input
compiler/scheduler/pipe_with_progress.h:38
Method
on_require
compiler/make/target.cpp:62
Method
on_restricted_type_mismatch
when a type restriction is broken (examples: 1) @param string, but passed int 2) @return int[], but actually return mixed) then we have an edge (edge-
compiler/inferring/var-node.cpp:83
Method
on_return
compiler/pipes/collect-main-edges.cpp:365
Method
on_return
for `return ...`, patch the return expression to fit @return
compiler/pipes/deduce-implicit-types-and-casts.cpp:715
Method
on_return
runtime/resumable.h:161
Method
on_scope_instance_prop
on $cdef->some_prop, wrap it with c2php conversion
compiler/pipes/instantiate-ffi-operations.cpp:529
Method
on_set_op
handles expressions that modify v, like v = rhs or ++v (it may be not a variable, but arr[i]*=2 for example)
compiler/pipes/collect-main-edges.cpp:450
Method
on_set_to_index
handle `$a[$idx][$idx2] = rhs` or `$a[] = rhs`, patch rhs to fit @var if it was set to $a
compiler/pipes/deduce-implicit-types-and-casts.cpp:756
Method
on_set_to_instance_prop
handle `$object->field = rhs`, patch rhs to fir @var of the field
compiler/pipes/deduce-implicit-types-and-casts.cpp:748
Method
on_set_to_var
handle `$v = rhs`, patch rhs to fit @var if it was set to $v
compiler/pipes/deduce-implicit-types-and-casts.cpp:731
Method
on_simple_operation
compiler/pipes/inline-simple-functions.cpp:12
Method
on_start
compiler/generics-reification.cpp:351
Method
on_start
compiler/class-assumptions.cpp:326
Method
on_start
compiler/class-assumptions.cpp:421
Method
on_start
compiler/pipes/collect-main-edges.cpp:550
Method
on_start
compiler/pipes/final-check.cpp:592
Method
on_start
compiler/pipes/inline-simple-functions.cpp:111
← previous
next →
15,001–15,100 of 17,654, ranked by callers