V8 Project
v8::internal::DelayedGapMasm Class Reference

#include <lithium-gap-resolver-arm64.h>

+ Inheritance diagram for v8::internal::DelayedGapMasm:
+ Collaboration diagram for v8::internal::DelayedGapMasm:

Public Member Functions

 DelayedGapMasm (LCodeGen *owner, MacroAssembler *masm)
 
void EndDelayedUse ()
 

Detailed Description

Definition at line 19 of file lithium-gap-resolver-arm64.h.

Constructor & Destructor Documentation

◆ DelayedGapMasm()

v8::internal::DelayedGapMasm::DelayedGapMasm ( LCodeGen owner,
MacroAssembler masm 
)
inline

Definition at line 21 of file lithium-gap-resolver-arm64.h.

22  : DelayedMasm(owner, masm, root) {
23  // We use the root register as an extra scratch register.
24  // The root register has two advantages:
25  // - It is not in crankshaft allocatable registers list, so it can't
26  // interfere with the allocatable registers.
27  // - We don't need to push it on the stack, as we can reload it with its
28  // value once we have finish.
29  }

Member Function Documentation

◆ EndDelayedUse()

void v8::internal::DelayedGapMasm::EndDelayedUse ( )

Definition at line 17 of file lithium-gap-resolver-arm64.cc.

17  {
18  DelayedMasm::EndDelayedUse();
19  if (scratch_register_used()) {
20  DCHECK(ScratchRegister().Is(root));
21  DCHECK(!pending());
22  InitializeRootRegister();
23  reset_scratch_register_used();
24  }
25 }
#define DCHECK(condition)
Definition: logging.h:205
bool Is(Object *obj)

References DCHECK, and v8::internal::Is().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: