V8 Project
v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope Class Reference

#include <source-position.h>

+ Collaboration diagram for v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope:

Public Member Functions

 Scope (SourcePositionTable *source_positions, SourcePosition position)
 
 Scope (SourcePositionTable *source_positions, Node *node)
 
 ~Scope ()
 

Private Member Functions

void Init (SourcePosition position)
 
 DISALLOW_COPY_AND_ASSIGN (Scope)
 

Private Attributes

SourcePositionTablesource_positions_
 
SourcePosition prev_position_
 

Detailed Description

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
class v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope

Definition at line 48 of file source-position.h.

Constructor & Destructor Documentation

◆ Scope() [1/2]

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::Scope ( SourcePositionTable source_positions,
SourcePosition  position 
)
inline

Definition at line 50 of file source-position.h.

51  : source_positions_(source_positions),
52  prev_position_(source_positions->current_position_) {
53  Init(position);
54  }
SourcePositionTable * source_positions_
void Init(SourcePosition position)

◆ Scope() [2/2]

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::Scope ( SourcePositionTable source_positions,
Node node 
)
inline

Definition at line 55 of file source-position.h.

56  : source_positions_(source_positions),
57  prev_position_(source_positions->current_position_) {
58  Init(source_positions_->GetSourcePosition(node));
59  }

◆ ~Scope()

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::~Scope ( )
inline

Definition at line 60 of file source-position.h.

60 { source_positions_->current_position_ = prev_position_; }

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::DISALLOW_COPY_AND_ASSIGN ( Scope  )
private

◆ Init()

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
void v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::Init ( SourcePosition  position)
inlineprivate

Definition at line 63 of file source-position.h.

63  {
64  if (!position.IsUnknown() || prev_position_.IsInvalid()) {
65  source_positions_->current_position_ = position;
66  }
67  }

Member Data Documentation

◆ prev_position_

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
SourcePosition v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::prev_position_
private

Definition at line 70 of file source-position.h.

◆ source_positions_

template<InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
SourcePositionTable* v8::internal::compiler::FINAL< kOperandKind, kNumCachedOperands >::Scope::source_positions_
private

Definition at line 69 of file source-position.h.


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