V8 Project
v8::internal::compiler::SourcePositionTable::Decorator Class Reference
+ Inheritance diagram for v8::internal::compiler::SourcePositionTable::Decorator:
+ Collaboration diagram for v8::internal::compiler::SourcePositionTable::Decorator:

Public Member Functions

 Decorator (SourcePositionTable *source_positions)
 
virtual void Decorate (Node *node)
 
- Public Member Functions inherited from v8::internal::compiler::GraphDecorator
virtual ~GraphDecorator ()
 
- Public Member Functions inherited from v8::internal::ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Private Attributes

SourcePositionTable * source_positions_
 

Detailed Description

Definition at line 13 of file source-position.cc.

Constructor & Destructor Documentation

◆ Decorator()

v8::internal::compiler::SourcePositionTable::Decorator::Decorator ( SourcePositionTable *  source_positions)
inlineexplicit

Definition at line 15 of file source-position.cc.

16  : source_positions_(source_positions) {}

Member Function Documentation

◆ Decorate()

virtual void v8::internal::compiler::SourcePositionTable::Decorator::Decorate ( Node *  node)
inlinevirtual

Implements v8::internal::compiler::GraphDecorator.

Definition at line 18 of file source-position.cc.

18  {
19  DCHECK(!source_positions_->current_position_.IsInvalid());
20  source_positions_->table_.Set(node, source_positions_->current_position_);
21  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and source_positions_.

Member Data Documentation

◆ source_positions_

SourcePositionTable* v8::internal::compiler::SourcePositionTable::Decorator::source_positions_
private

Definition at line 24 of file source-position.cc.

Referenced by Decorate().


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