Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
208 Code* code = Code::cast(Code::GetObjectFromEntryAddress(entry_address));
209 heap->mark_compact_collector()->RecordCodeEntrySlot(entry_address, code);
210 StaticVisitor::MarkObject(heap, code);
248 Code* target = Code::GetCodeFromTargetAddress(rinfo->call_address());
258 Code* target = Code::GetCodeFromTargetAddress(rinfo->target_address());
271 target = Code::GetCodeFromTargetAddress(rinfo->target_address());
282 Code* target = rinfo->code_age_stub();
416 Code* code = Code::cast(object);
418 code->MakeOlder(heap->mark_compact_collector()->marking_parity());
420 code->CodeIterateBody<StaticVisitor>(heap);
437 // Always flush the optimized code map if requested by flag.
443 // Add the shared function info holding an optimized code map to
444 // the code flusher for processing of code maps after marking.
446 // Treat all references within the code map weakly by marking the
447 // code map itself but not pushing it onto the marking deque.
452 // This function's code looks flushable. But we have to postpone
455 // That would also make the non-optimized version of the code
457 // optimized code.
459 // Treat the reference to the code object weakly.
465 // Flush optimized code map on major GCs without code flushing,
466 // needed because cached code doesn't contain breakpoints.
494 Code::IsWeakObjectInOptimizedCode(object)) ||
497 Code::IsWeakObjectInIC(object));
513 // This function's code looks flushable. But we have to postpone
516 // That would also make the non-optimized version of the code
518 // optimized code.
528 // Treat the reference to the code object weakly.
532 // Visit all unoptimized code objects to prevent flushing them.
533 StaticVisitor::MarkObject(heap, function->shared()->code());
534 if (function->code()->kind() == Code::OPTIMIZED_FUNCTION) {
535 MarkInlinedFunctionsCode(heap, function->code());
679 Code* code) {
682 if (code->is_turbofanned()) return;
684 // of its code and non-optimized version of all inlined functions.
685 // This is required to support bailing out from inlined code.
687 DeoptimizationInputData::cast(code->deoptimization_data());
692 StaticVisitor::MarkObject(heap, inlined->shared()->code());
715 // Code is either on stack, in compilation cache or referenced
717 MarkBit code_mark = Marking::MarkBitFrom(function->code());
727 // We do not (yet) flush code for optimized functions.
728 if (function->code() != shared_info->code()) {
732 // Check age of optimized code.
733 if (FLAG_age_code && !function->code()->IsOld()) {
744 // Code is either on stack, in compilation cache or referenced
746 MarkBit code_mark = Marking::MarkBitFrom(shared_info->code());
751 // The function must be compiled and have the source code available,
757 // We never flush code for API functions.
763 // Only flush code for functions.
764 if (shared_info->code()->kind() != Code::FUNCTION) {
773 // We do not (yet?) flush code for generator functions, because we don't know
779 // If this is a full script wrapped in a function we do not flush the code.
785 // relation between SharedFunctionInfo and Code is broken.
790 // Check age of code. If code aging is disabled we never flush.
791 if (!FLAG_age_code || !shared_info->code()->IsOld()) {
871 void Code::CodeIterateBody(ObjectVisitor* v) {
880 // There are two places where we iterate code bodies: here and the
898 void Code::CodeIterateBody(Heap* heap) {
907 // There are two places where we iterate code bodies: here and the non-