V8 Project
v8::internal::Isolate::ThreadDataTable Class Reference
+ Collaboration diagram for v8::internal::Isolate::ThreadDataTable:

Public Member Functions

 ThreadDataTable ()
 
 ~ThreadDataTable ()
 
PerIsolateThreadDataLookup (Isolate *isolate, ThreadId thread_id)
 
void Insert (PerIsolateThreadData *data)
 
void Remove (PerIsolateThreadData *data)
 
void RemoveAllThreads (Isolate *isolate)
 

Private Attributes

PerIsolateThreadDatalist_
 

Detailed Description

Definition at line 1136 of file isolate.h.

Constructor & Destructor Documentation

◆ ThreadDataTable()

v8::internal::Isolate::ThreadDataTable::ThreadDataTable ( )

Definition at line 1393 of file isolate.cc.

1394  : list_(NULL) {
1395 }
PerIsolateThreadData * list_
Definition: isolate.h:1147
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

◆ ~ThreadDataTable()

v8::internal::Isolate::ThreadDataTable::~ThreadDataTable ( )

Definition at line 1398 of file isolate.cc.

1398  {
1399  // TODO(svenpanne) The assertion below would fire if an embedder does not
1400  // cleanly dispose all Isolates before disposing v8, so we are conservative
1401  // and leave it out for now.
1402  // DCHECK_EQ(NULL, list_);
1403 }

Member Function Documentation

◆ Insert()

void v8::internal::Isolate::ThreadDataTable::Insert ( Isolate::PerIsolateThreadData data)

Definition at line 1423 of file isolate.cc.

1423  {
1424  if (list_ != NULL) list_->prev_ = data;
1425  data->next_ = list_;
1426  list_ = data;
1427 }

References v8::internal::Isolate::PerIsolateThreadData::next_, and NULL.

Referenced by v8::internal::Isolate::FindOrAllocatePerThreadDataForThisThread().

+ Here is the caller graph for this function:

◆ Lookup()

Isolate::PerIsolateThreadData * v8::internal::Isolate::ThreadDataTable::Lookup ( Isolate isolate,
ThreadId  thread_id 
)

Definition at line 1414 of file isolate.cc.

1415  {
1416  for (PerIsolateThreadData* data = list_; data != NULL; data = data->next_) {
1417  if (data->Matches(isolate, thread_id)) return data;
1418  }
1419  return NULL;
1420 }

References NULL.

Referenced by v8::internal::Isolate::FindOrAllocatePerThreadDataForThisThread(), and v8::internal::Isolate::FindPerThreadDataForThread().

+ Here is the caller graph for this function:

◆ Remove()

void v8::internal::Isolate::ThreadDataTable::Remove ( PerIsolateThreadData data)

Definition at line 1430 of file isolate.cc.

1430  {
1431  if (list_ == data) list_ = data->next_;
1432  if (data->next_ != NULL) data->next_->prev_ = data->prev_;
1433  if (data->prev_ != NULL) data->prev_->next_ = data->next_;
1434  delete data;
1435 }

References v8::internal::Isolate::PerIsolateThreadData::next_, NULL, and v8::internal::Isolate::PerIsolateThreadData::prev_.

◆ RemoveAllThreads()

void v8::internal::Isolate::ThreadDataTable::RemoveAllThreads ( Isolate isolate)

Definition at line 1438 of file isolate.cc.

1438  {
1439  PerIsolateThreadData* data = list_;
1440  while (data != NULL) {
1441  PerIsolateThreadData* next = data->next_;
1442  if (data->isolate() == isolate) Remove(data);
1443  data = next;
1444  }
1445 }
void Remove(PerIsolateThreadData *data)
Definition: isolate.cc:1430

References v8::internal::Isolate::PerIsolateThreadData::isolate(), v8::internal::Isolate::PerIsolateThreadData::next_, and NULL.

Referenced by v8::internal::Isolate::TearDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ list_

PerIsolateThreadData* v8::internal::Isolate::ThreadDataTable::list_
private

Definition at line 1147 of file isolate.h.


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