V8 Project
v8::internal::HCheckTableEntry Struct Reference
+ Collaboration diagram for v8::internal::HCheckTableEntry:

Public Types

enum  State { CHECKED , CHECKED_STABLE , UNCHECKED_STABLE }
 

Static Public Member Functions

static const char * State2String (State state)
 
static State StateMerge (State state1, State state2)
 

Public Attributes

HValueobject_
 
HInstructioncheck_
 
MapSet maps_
 
State state_
 

Detailed Description

Definition at line 27 of file hydrogen-check-elimination.cc.

Member Enumeration Documentation

◆ State

Enumerator
CHECKED 
CHECKED_STABLE 
UNCHECKED_STABLE 

Definition at line 28 of file hydrogen-check-elimination.cc.

28  {
29  // We have seen a map check (i.e. an HCheckMaps) for these maps, so we can
30  // use this information to eliminate further map checks, elements kind
31  // transitions, etc.
32  CHECKED,
33  // Same as CHECKED, but we also know that these maps are stable.
35  // These maps are stable, but not checked (i.e. we learned this via field
36  // type tracking or from a constant, or they were initially CHECKED_STABLE,
37  // but became UNCHECKED_STABLE because of an instruction that changes maps
38  // or elements kind), and we need a stability check for them in order to use
39  // this information for check elimination (which turns them back to
40  // CHECKED_STABLE).
42  };

Member Function Documentation

◆ State2String()

static const char* v8::internal::HCheckTableEntry::State2String ( State  state)
inlinestatic

Definition at line 44 of file hydrogen-check-elimination.cc.

44  {
45  switch (state) {
46  case CHECKED: return "checked";
47  case CHECKED_STABLE: return "checked stable";
48  case UNCHECKED_STABLE: return "unchecked stable";
49  }
50  UNREACHABLE();
51  return NULL;
52  }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define UNREACHABLE()
Definition: logging.h:30

References CHECKED, CHECKED_STABLE, NULL, UNCHECKED_STABLE, and UNREACHABLE.

Referenced by v8::internal::HCheckTable::Print().

+ Here is the caller graph for this function:

◆ StateMerge()

static State v8::internal::HCheckTableEntry::StateMerge ( State  state1,
State  state2 
)
inlinestatic

Definition at line 54 of file hydrogen-check-elimination.cc.

54  {
55  if (state1 == state2) return state1;
56  if ((state1 == CHECKED && state2 == CHECKED_STABLE) ||
57  (state2 == CHECKED && state1 == CHECKED_STABLE)) {
58  return CHECKED;
59  }
60  DCHECK((state1 == CHECKED_STABLE && state2 == UNCHECKED_STABLE) ||
61  (state2 == CHECKED_STABLE && state1 == UNCHECKED_STABLE));
62  return UNCHECKED_STABLE;
63  }
#define DCHECK(condition)
Definition: logging.h:205

References CHECKED, CHECKED_STABLE, DCHECK, and UNCHECKED_STABLE.

Referenced by v8::internal::HCheckTable::Copy(), and v8::internal::HCheckTable::Merge().

+ Here is the caller graph for this function:

Member Data Documentation

◆ check_

◆ maps_

◆ object_

◆ state_


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