Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
10 #include "src/objects/code-inl.h"
18 TNode<CodeT> code, TNode<JSFunction> function) {
22 TailCallJSCode(code, context, function, new_target, argc);
28 TNode<CodeT> code = CAST(CallRuntime(function_id, context, function));
29 GenerateTailCallToJSCode(code, function);
50 // Fall through if no optimization trigger or optimized code.
82 // Optimized code slot is a weak reference to CodeT object.
86 // Check if the optimized code is marked for deopt. If it is, call the
96 // Optimized code is good, get it into the closure and link the closure into
97 // the optimized functions list, then tail call the optimized code.
102 // Optimized code slot contains deoptimized code, or the code is cleared
103 // and tiering state hasn't yet been updated. Evict the code, update the
104 // state and re-enter the closure's code.
109 // Fall-through if the optimized code cell is clear and the tiering state is
115 // First lookup code, maybe we don't need to compile!
118 // Check the code object for the SFI. If SFI's code entry points to
137 // If there is no feedback, don't check for optimized code.
144 // Is there a tiering state or optimized code in the feedback vector?
153 TVARIABLE(CodeT, code);
155 // Check if we have baseline code.
158 code = sfi_code;
163 code = Select<CodeT>(
173 GenerateTailCallToJSCode(code.value(), function);
188 TNode<CodeT> code = HeapConstant(BUILTIN_CODE(isolate(), CompileLazy));
189 // Set the code slot inside the JSFunction to CompileLazy.
190 StoreObjectField(function, JSFunction::kCodeOffset, code);
191 GenerateTailCallToJSCode(code, function);