Lines Matching defs:function

77   // if the first simulated function tries to read stack arguments that haven't
181 // A callback function, called when a function has been intercepted if a
183 // the intercepted function is passed to the callback. For usage see
185 using InterceptionCallback = std::function<void(uint64_t)>;
281 // An entry denoting a function to intercept when branched to during
282 // simulator execution. When a function is intercepted the callback will be
283 // called if one exists otherwise the function will be passed to
287 BranchInterception(R (*function)(P...),
289 : function_(function), callback_(callback) {}
294 // Pointer to the function that will be intercepted.
301 // Register a new BranchInterception object. If 'function' is branched to
302 // (e.g: "blr function") in the future; instead, if provided, 'callback' will
303 // be called otherwise a runtime call will be performed on 'function'.
313 void RegisterBranchInterception(R (*function)(P...),
315 uintptr_t addr = reinterpret_cast<uintptr_t>(function);
317 std::make_unique<BranchInterception<R, P...>>(function, callback);
1362 // Helper function to determine BType for branches.
2293 // and it's probably an error to call this function in that case.
2644 // This function asserts that this mask is non-zero.
2666 // tracing stores, the store must have been executed before this function
2954 R DoRuntimeCall(R (*function)(P...),
2958 return function(std::get<I>(arguments)...);
2962 void RuntimeCallNonVoid(R (*function)(P...)) {
2966 R return_value = DoRuntimeCall(function,
2973 void RuntimeCallVoid(R (*function)(P...)) {
2977 DoRuntimeCall(function,
2986 R (*function)(P...) = reinterpret_cast<R (*)(P...)>(function_pointer);
2987 simulator->RuntimeCallNonVoid(function);
2995 void (*function)(P...) =
2997 simulator->RuntimeCallVoid(function);
3003 // Because this cannot occur during a program's lifetime, this function also
3130 // Register a new BranchInterception object. If 'function' is branched to
3131 // (e.g: "bl function") in the future; instead, if provided, 'callback' will
3132 // be called otherwise a runtime call will be performed on 'function'.
3137 void RegisterBranchInterception(R (*function)(P...),
3139 meta_data_.RegisterBranchInterception(*function, callback);