Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
13 #include "src/diagnostics/code-tracer.h"
52 bool JSFunction::ChecksTieringState() { return code().checks_tiering_state(); }
66 return AbstractCode::cast(FromCodeT(code(kAcquireLoad)));
72 ACCESSORS_RELAXED(JSFunction, code, CodeT, kCodeOffset)
73 RELEASE_ACQUIRE_ACCESSORS(JSFunction, code, CodeT, kCodeOffset)
76 void JSFunction::set_code(Code code, ReleaseStoreTag, WriteBarrierMode mode) {
77 set_code(ToCodeT(code), kReleaseStore, mode);
83 return CodeDataContainer::cast(code()).code_entry_point();
85 return code().InstructionStart();
219 return code(kAcquireLoad).builtin_id() != Builtin::kCompileLazy &&
226 // Do a raw read for shared and code fields here since this function may be
234 // code field. We don't use release stores when copying code pointers from
238 CodeT code = CodeT::cast(maybe_code);
239 if (code.kind() != CodeKind::BASELINE) return false;
246 // Do a raw read for shared and code fields here since this function may be
255 CodeT code = CodeT::cast(maybe_code);
258 return !shared.is_compiled() && code.builtin_id() != Builtin::kCompileLazy;
262 return code().kind() == CodeKind::BASELINE && !shared().HasBaselineCode();
277 // by setting code to CompileLazy and clearing the feedback vector.
285 // Flush baseline code from the closure if required