v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
transitions-inl.h File Reference
#include "objects-inl.h"
#include "transitions.h"
Include dependency graph for transitions-inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 v8
 
 v8::internal
 

Macros

#define FIELD_ADDR(p, offset)   (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag)
 
#define WRITE_FIELD(p, offset, value)   (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)) = value)
 
#define CONDITIONAL_WRITE_BARRIER(heap, object, offset, value, mode)
 

Macro Definition Documentation

#define CONDITIONAL_WRITE_BARRIER (   heap,
  object,
  offset,
  value,
  mode 
)
Value:
if (mode == UPDATE_WRITE_BARRIER) { \
heap->incremental_marking()->RecordWrite( \
object, HeapObject::RawField(object, offset), value); \
if (heap->InNewSpace(value)) { \
heap->RecordWrite(object->address(), offset); \
} \
}

Definition at line 44 of file transitions-inl.h.

Referenced by TransitionArray::set_back_pointer_storage(), TransitionArray::set_elements_transition(), and TransitionArray::SetPrototypeTransitions().

#define FIELD_ADDR (   p,
  offset 
)    (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag)

Definition at line 38 of file transitions-inl.h.

#define WRITE_FIELD (   p,
  offset,
  value 
)    (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)) = value)