V8 Project
v8::internal::compiler::StaticParameterTraits< ExternalReference > Struct Reference
+ Collaboration diagram for v8::internal::compiler::StaticParameterTraits< ExternalReference >:

Static Public Member Functions

static OStreamPrintTo (OStream &os, ExternalReference reference)
 
static int HashCode (ExternalReference reference)
 
static bool Equals (ExternalReference lhs, ExternalReference rhs)
 

Detailed Description

Definition at line 35 of file common-operator.cc.

Member Function Documentation

◆ Equals()

static bool v8::internal::compiler::StaticParameterTraits< ExternalReference >::Equals ( ExternalReference  lhs,
ExternalReference  rhs 
)
inlinestatic

Definition at line 50 of file common-operator.cc.

50  {
51  return lhs == rhs;
52  }

◆ HashCode()

static int v8::internal::compiler::StaticParameterTraits< ExternalReference >::HashCode ( ExternalReference  reference)
inlinestatic

Definition at line 46 of file common-operator.cc.

46  {
47  return bit_cast<int>(static_cast<uint32_t>(
48  reinterpret_cast<uintptr_t>(reference.address())));
49  }

◆ PrintTo()

static OStream& v8::internal::compiler::StaticParameterTraits< ExternalReference >::PrintTo ( OStream os,
ExternalReference  reference 
)
inlinestatic

Definition at line 36 of file common-operator.cc.

36  {
37  os << reference.address();
38  // TODO(bmeurer): Move to operator<<(os, ExternalReference)
39  const Runtime::Function* function =
40  Runtime::FunctionForEntry(reference.address());
41  if (function) {
42  os << " <" << function->name << ".entry>";
43  }
44  return os;
45  }
static const Function * FunctionForEntry(Address ref)
Definition: runtime.cc:9302

References v8::internal::Runtime::FunctionForEntry().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: