Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
24 #include "src/heap/code-object-registry.h"
254 HeapObject code;
256 if (maybe_code.GetHeapObject(&code)) {
257 VerifyHeapObjectImpl(code);
439 HeapObject code;
441 if (maybe_code.GetHeapObject(&code)) {
442 VerifyHeapObjectImpl(code);
1089 // Some code objects were marked for deoptimization during the GC.
1120 Code code = Code::cast(*p);
1128 if (code.kind() != CodeKind::BASELINE) {
1130 DeoptimizationData::cast(code.deoptimization_data());
1168 // - Code held alive by the top optimized frame. This code cannot be deoptimized
1170 // alive other code objects reachable through the weak list but they should
1467 // This code is similar to the implementation of VisitPointer() modulo
1470 Object code = slot.load(code_cage_base());
1471 RecordMigratedSlot(host, MaybeObject::FromObject(code), slot.address());
1632 Code code = Code::cast(dst);
1633 code.Relocate(dst_addr - src_addr);
2327 Code code = it.frame()->LookupCode();
2328 if (!code.CanDeoptAt(isolate, it.frame()->pc())) {
2330 Code::BodyDescriptor::IterateBody(code.map(cage_base), code, visitor);
2521 // code object on the JSFunction.
2579 Code code = weak_object_in_code.second;
2581 !code.embedded_objects_cleared()) {
2582 if (!code.marked_for_deoptimization()) {
2583 code.SetMarkedForDeoptimization("weak objects");
2586 code.ClearEmbeddedObjects(heap_);
2587 DCHECK(code.embedded_objects_cleared());
2701 // Currently baseline code holds bytecode array strongly and it is
2702 // always ensured that bytecode is live if baseline code is live. Hence
2703 // baseline code can safely load bytecode array without any additional
2705 // flush code if the bytecode is not live and also update baseline code
2714 // If baseline code is flushed but we have a valid bytecode array reset
2722 // If baseline code flushing is disabled we should only flush bytecode
2732 // Baseline code or BytecodeArray which is still alive.
2764 // Record the code slot that has been updated either to CompileLazy,
2765 // InterpreterEntryTrampoline or baseline code.
3140 // publish code in the background thread.
3280 Code code = code_data_container.code(code_cage_base);
3282 code_data_container.UpdateCodeEntryPoint(isolate_for_sandbox, code);
3348 // This visitor nevers visits code objects.
3353 // This visitor nevers visits code objects.
4448 // The invalidated slots are not needed after old-to-code slots were
4907 // only object that can contain code pointers, are always allocated in
4985 HeapObject code;
4987 if (maybe_code.GetHeapObject(&code)) {
4988 VerifyHeapObjectImpl(code);
5038 // only object that can contain code pointers, are always allocated in