Lines Matching refs:code

2 // Use of this source code is governed by a BSD-style license that can be
12 #include "src/objects/code-kind.h"
39 #include "torque-generated/src/objects/code-tq.inc"
70 DECL_GETTER(code, Code)
71 DECL_RELAXED_GETTER(code, Code)
76 // This field contains code cage base value which is used for decompressing
77 // the reference to respective Code. Basically, |code_cage_base| and |code|
79 // the code field must also support atomic access and the word alignment of
86 // Cached value of code().InstructionStart().
91 Isolate* isolate_for_sandbox, Code code,
93 // Updates the value of the code entry point. The code must be equal to
94 // the code() value.
95 inline void UpdateCodeEntryPoint(Isolate* isolate_for_sandbox, Code code);
133 // Tells whether the code checks the tiering state in the function's
137 // Tells whether the outgoing parameters of this code are tagged pointers.
140 // [is_maglevved]: Tells whether the code object was generated by the
144 // [is_turbofanned]: Tells whether the code object was generated by the
220 // Code describes objects with on-the-fly generated machine code.
224 // Opaque data type for encapsulating code flags like kind, inline
232 // | padded to code alignment |
246 // | padded to code alignment |
303 // instruction start/end of the embedded code stream or of un-embedded one.
315 // belong to this code.
352 // [code_comments_offset]: Offset of the code comment section.
381 // code.
384 // baseline code.
388 // non-baseline code.
391 // code.
401 // [next_code_link]: Link for lists of optimized or deoptimized code.
411 // [kind]: Access to specific code kind.
424 // Tells whether the code checks the tiering state in the function's
428 // Tells whether the outgoing parameters of this code are tagged pointers.
431 // [is_turbofanned]: Tells whether the code object was generated by the
440 // whether the embedded objects in code should be treated weakly.
444 // [builtin]: For builtins, tells which builtin index the code object
459 // reserved in the code prologue; otherwise 0.
463 // the code is going to be deoptimized.
468 // whether the embedded objects in the code marked for deoptimization were
475 // exception thrown by the code will lead to promise rejection or
487 // The entire code object including its header is copied verbatim to the
513 // Convert a target address into a code object.
519 // Returns the size of code and its metadata. This includes the size of code
535 // Relocate the code by delta bytes. Called to signal that this code
539 // Migrate code from desc without flushing the instruction cache.
565 // Flushes the instruction cache for the executable instructions of this code
566 // object. Make sure to call this while the code is still writable.
605 // Returns true if the function is inlined in the code.
616 /* Data or code not directly visited by GC directly starts here. */ \
618 /* Objects embedded into code is visited via reloc info. */ \
643 // due to padding for code alignment.
701 // The {marked_for_deoptimization} field is accessed from generated code.
733 V8_EXPORT_PRIVATE Address OffHeapInstructionStart(HeapObject code,
735 V8_EXPORT_PRIVATE Address OffHeapInstructionEnd(HeapObject code,
737 V8_EXPORT_PRIVATE int OffHeapInstructionSize(HeapObject code, Builtin builtin);
739 V8_EXPORT_PRIVATE Address OffHeapMetadataStart(HeapObject code,
741 V8_EXPORT_PRIVATE Address OffHeapMetadataEnd(HeapObject code, Builtin builtin);
742 V8_EXPORT_PRIVATE int OffHeapMetadataSize(HeapObject code, Builtin builtin);
744 V8_EXPORT_PRIVATE Address OffHeapSafepointTableAddress(HeapObject code,
746 V8_EXPORT_PRIVATE int OffHeapSafepointTableSize(HeapObject code,
748 V8_EXPORT_PRIVATE Address OffHeapHandlerTableAddress(HeapObject code,
750 V8_EXPORT_PRIVATE int OffHeapHandlerTableSize(HeapObject code, Builtin builtin);
751 V8_EXPORT_PRIVATE Address OffHeapConstantPoolAddress(HeapObject code,
753 V8_EXPORT_PRIVATE int OffHeapConstantPoolSize(HeapObject code, Builtin builtin);
754 V8_EXPORT_PRIVATE Address OffHeapCodeCommentsAddress(HeapObject code,
756 V8_EXPORT_PRIVATE int OffHeapCodeCommentsSize(HeapObject code, Builtin builtin);
757 V8_EXPORT_PRIVATE Address OffHeapUnwindingInfoAddress(HeapObject code,
759 V8_EXPORT_PRIVATE int OffHeapUnwindingInfoSize(HeapObject code,
779 inline CodeT ToCodeT(Code code);
780 inline Handle<CodeT> ToCodeT(Handle<Code> code, Isolate* isolate);
781 inline Code FromCodeT(CodeT code);
782 inline Code FromCodeT(CodeT code, RelaxedLoadTag);
783 inline Code FromCodeT(CodeT code, AcquireLoadTag);
784 inline Code FromCodeT(CodeT code, PtrComprCageBase);
785 inline Code FromCodeT(CodeT code, PtrComprCageBase, RelaxedLoadTag);
786 inline Code FromCodeT(CodeT code, PtrComprCageBase, AcquireLoadTag);
787 inline Handle<CodeT> FromCodeT(Handle<Code> code, Isolate* isolate);
788 inline CodeDataContainer CodeDataContainerFromCodeT(CodeT code);
800 // Returns the address of the first instruction. For off-heap code objects
808 // Returns the address right after the last instruction. For off-heap code
813 // Returns the size of the code instructions.
817 // data such as the safepoints table. For off-heap code objects
823 // Return the source position table for interpreter code.
834 // Returns the kind of the code.
847 // Dependent code is conceptually the list of {Code, DependencyGroup} tuples
849 // lead to a deopt of the corresponding code.
863 // Group of code objects that embed a transition to this map, and depend on
866 // Group of code objects that omit run-time prototype checks for prototypes
869 // code:
876 // Group of code objects that depends on global property values in property
879 // Group of code objects that omit run-time checks for field(s) introduced
884 // Group of code objects that omit run-time type checks for initial maps of
887 // Group of code objects that depends on tenuring information in
890 // Group of code objects that depends on element transition information in
899 // Register a dependency of {code} on {object}, of the kinds given by
902 Handle<Code> code,
916 static constexpr int kSlotsPerEntry = 2; // {code: weak Code, groups: Smi}.
927 Handle<Code> code);
931 Handle<Code> code);
1012 // value and is ignored by generated code. For branchless code (both here
1013 // and in generated code), we simply OR in a 1.
1107 // optimized code. It also contains information about functions that were