Lines Matching defs:function
22 #include "src/objects/js-function-inl.h"
179 // Search all deoptimizing code in the native context of the function.
193 // We rely on this function not causing a GC. It is called from generated code
198 JSFunction function = JSFunction::cast(Object(raw_function));
200 new Deoptimizer(isolate, function, kind, from, fp_to_sp_delta);
311 JSFunction function =
312 static_cast<OptimizedFrame*>(it.frame())->function();
313 TraceFoundActivation(isolate, function);
427 void Deoptimizer::DeoptimizeFunction(JSFunction function, Code code) {
428 Isolate* isolate = function.GetIsolate();
432 function.ResetIfCodeFlushed();
433 if (code.is_null()) code = FromCodeT(function.code());
440 // The code in the function's optimized code feedback vector slot might
441 // be different from the code on the function - evict it if necessary.
442 function.feedback_vector().EvictOptimizedCodeMarkedForDeoptimization(
443 function.shared(), "unlinking code marked for deopt");
444 DeoptimizeMarkedCodeForContext(function.native_context());
451 isolate, Handle<NativeContext>(function.native_context(), isolate));
470 Deoptimizer::Deoptimizer(Isolate* isolate, JSFunction function,
473 function_(function),
502 DCHECK(function.IsJSFunction());
515 function.shared().internal_formal_parameter_count_with_receiver();
556 Handle<JSFunction> Deoptimizer::function() const {
750 void Deoptimizer::TraceFoundActivation(Isolate* isolate, JSFunction function) {
753 PrintF(scope.file(), "[deoptimizer found activation of function: ");
754 function.PrintName(scope.file());
755 PrintF(scope.file(), " / %" V8PRIxPTR "]\n", function.ptr());
773 // We rely on this function not causing a GC. It is called from generated code
776 // When we call this function, the return address of the previous frame has
1046 // context, the function and the bytecode offset. Synthesize
1053 // function code and bytecode offset of the bailout.
1086 // frame. For all subsequent output frames it can be gotten from the function
1104 // The function was mentioned explicitly in the BEGIN_FRAME.
1105 frame_writer.PushTranslatedValue(function_iterator, "function");
1306 value_iterator++; // Skip function.
1406 // The constructor function was mentioned explicitly in the
1408 frame_writer.PushTranslatedValue(function_iterator, "constructor function\n");
1984 // function into account so we have to avoid double counting them.