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
objects-inl.h File Reference
#include "elements.h"
#include "objects.h"
#include "contexts.h"
#include "conversions-inl.h"
#include "heap.h"
#include "isolate.h"
#include "property.h"
#include "spaces.h"
#include "store-buffer.h"
#include "v8memory.h"
#include "factory.h"
#include "incremental-marking.h"
#include "transitions-inl.h"
Include dependency graph for objects-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 TYPE_CHECKER(type, instancetype)
 
#define CAST_ACCESSOR(type)
 
#define INT_ACCESSORS(holder, name, offset)
 
#define ACCESSORS(holder, name, type, offset)
 
#define ACCESSORS_TO_SMI(holder, name, offset)
 
#define SMI_ACCESSORS(holder, name, offset)
 
#define BOOL_GETTER(holder, field, name, offset)
 
#define BOOL_ACCESSORS(holder, field, name, offset)
 
#define MAKE_STRUCT_CASE(NAME, Name, name)   case NAME##_TYPE: return true;
 
#define MAKE_STRUCT_PREDICATE(NAME, Name, name)
 
#define FIELD_ADDR(p, offset)   (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag)
 
#define READ_FIELD(p, offset)   (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)))
 
#define WRITE_FIELD(p, offset, value)   (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)) = value)
 
#define WRITE_BARRIER(heap, object, offset, value)
 
#define CONDITIONAL_WRITE_BARRIER(heap, object, offset, value, mode)
 
#define READ_DOUBLE_FIELD(p, offset)   (*reinterpret_cast<double*>(FIELD_ADDR(p, offset)))
 
#define WRITE_DOUBLE_FIELD(p, offset, value)   (*reinterpret_cast<double*>(FIELD_ADDR(p, offset)) = value)
 
#define READ_INT_FIELD(p, offset)   (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)))
 
#define WRITE_INT_FIELD(p, offset, value)   (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value)
 
#define READ_INTPTR_FIELD(p, offset)   (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)))
 
#define WRITE_INTPTR_FIELD(p, offset, value)   (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)) = value)
 
#define READ_UINT32_FIELD(p, offset)   (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset)))
 
#define WRITE_UINT32_FIELD(p, offset, value)   (*reinterpret_cast<uint32_t*>(FIELD_ADDR(p, offset)) = value)
 
#define READ_INT64_FIELD(p, offset)   (*reinterpret_cast<int64_t*>(FIELD_ADDR(p, offset)))
 
#define WRITE_INT64_FIELD(p, offset, value)   (*reinterpret_cast<int64_t*>(FIELD_ADDR(p, offset)) = value)
 
#define READ_SHORT_FIELD(p, offset)   (*reinterpret_cast<uint16_t*>(FIELD_ADDR(p, offset)))
 
#define WRITE_SHORT_FIELD(p, offset, value)   (*reinterpret_cast<uint16_t*>(FIELD_ADDR(p, offset)) = value)
 
#define READ_BYTE_FIELD(p, offset)   (*reinterpret_cast<byte*>(FIELD_ADDR(p, offset)))
 
#define WRITE_BYTE_FIELD(p, offset, value)   (*reinterpret_cast<byte*>(FIELD_ADDR(p, offset)) = value)
 
#define MAKE_STRUCT_CAST(NAME, Name, name)   CAST_ACCESSOR(Name)
 
#define PSEUDO_SMI_ACCESSORS_LO(holder, name, offset)
 
#define PSEUDO_SMI_ACCESSORS_HI(holder, name, offset)
 
#define EXTERNAL_ELEMENTS_CHECK(name, type)
 

Functions

 STATIC_CHECK ((kStringRepresentationMask|kStringEncodingMask)==Internals::kFullStringRepresentationMask)
 
 STATIC_CHECK (static_cast< uint32_t >(kStringEncodingMask)==Internals::kStringEncodingMask)
 
 STATIC_CHECK ((kExternalStringTag|kAsciiStringTag)==Internals::kExternalAsciiRepresentationTag)
 
 STATIC_CHECK (v8::String::ASCII_ENCODING==kAsciiStringTag)
 
 STATIC_CHECK ((kExternalStringTag|kTwoByteStringTag)==Internals::kExternalTwoByteRepresentationTag)
 
 STATIC_CHECK (v8::String::TWO_BYTE_ENCODING==kTwoByteStringTag)
 
template<>
bool Is< JSFunction > (Object *obj)
 
template<>
bool Is< JSArray > (Object *obj)
 
template<SearchMode search_mode, typename T >
int BinarySearch (T *array, String *name, int low, int high, int valid_entries)
 
template<SearchMode search_mode, typename T >
int LinearSearch (T *array, String *name, int len, int valid_entries)
 
template<SearchMode search_mode, typename T >
int Search (T *array, String *name, int valid_entries)
 
 ACCESSORS (AccessorInfo, expected_receiver_type, Object, kExpectedReceiverTypeOffset) ACCESSORS(FunctionTemplateInfo
 
kPropertyAccessorsOffset ACCESSORS (FunctionTemplateInfo, prototype_template, Object, kPrototypeTemplateOffset) ACCESSORS(FunctionTemplateInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset 
ACCESSORS (FunctionTemplateInfo, indexed_property_handler, Object, kIndexedPropertyHandlerOffset) ACCESSORS(FunctionTemplateInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset 
ACCESSORS (FunctionTemplateInfo, instance_call_handler, Object, kInstanceCallHandlerOffset) ACCESSORS(FunctionTemplateInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset 
ACCESSORS (ObjectTemplateInfo, internal_field_count, Object, kInternalFieldCountOffset) ACCESSORS_TO_SMI(Script
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset 
ACCESSORS (SharedFunctionInfo, optimized_code_map, Object, kOptimizedCodeMapOffset) ACCESSORS(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset 
ACCESSORS (SharedFunctionInfo, this_property_assignments, Object, kThisPropertyAssignmentsOffset) BOOL_ACCESSORS(FunctionTemplateInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit 
BOOL_ACCESSORS (FunctionTemplateInfo, flag, needs_access_check, kNeedsAccessCheckBit) BOOL_ACCESSORS(FunctionTemplateInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit 
BOOL_ACCESSORS (SharedFunctionInfo, start_position_and_type, is_expression, kIsExpressionBit) BOOL_ACCESSORS(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit 
BOOL_GETTER (SharedFunctionInfo, compiler_hints, has_only_simple_this_property_assignments, kHasOnlySimpleThisPropertyAssignments) BOOL_ACCESSORS(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation 
BOOL_ACCESSORS (SharedFunctionInfo, compiler_hints, allows_lazy_compilation_without_context, kAllowLazyCompilationWithoutContext) BOOL_ACCESSORS(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation
kUsesArguments 
BOOL_ACCESSORS (SharedFunctionInfo, compiler_hints, has_duplicate_parameters, kHasDuplicateParameters) PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation
kUsesArguments
kFormalParameterCountOffset 
PSEUDO_SMI_ACCESSORS_LO (SharedFunctionInfo, expected_nof_properties, kExpectedNofPropertiesOffset) PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation
kUsesArguments
kFormalParameterCountOffset
kStartPositionAndTypeOffset 
PSEUDO_SMI_ACCESSORS_LO (SharedFunctionInfo, function_token_position, kFunctionTokenPositionOffset) PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation
kUsesArguments
kFormalParameterCountOffset
kStartPositionAndTypeOffset
kCompilerHintsOffset 
PSEUDO_SMI_ACCESSORS_LO (SharedFunctionInfo, this_property_assignments_count, kThisPropertyAssignmentsCountOffset) PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo
 
 BOOL_ACCESSORS (SharedFunctionInfo, compiler_hints, live_objects_may_exist, kLiveObjectsMayExist) bool SharedFunctionInfo
 
 BOOL_GETTER (SharedFunctionInfo, compiler_hints, optimization_disabled, kOptimizationDisabled) void SharedFunctionInfo
 
 BOOL_GETTER (SharedFunctionInfo, compiler_hints, is_extended_mode, kExtendedModeFunction) BOOL_ACCESSORS(SharedFunctionInfo
 
kNameShouldPrintAsAnonymous BOOL_ACCESSORS (SharedFunctionInfo, compiler_hints, dont_optimize, kDontOptimize) void SharedFunctionInfo
 
 ACCESSORS (JSFunction, prototype_or_initial_map, Object, kPrototypeOrInitialMapOffset) Map *JSFunction
 
 EXTERNAL_ELEMENTS_CHECK (UnsignedShort, EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE) EXTERNAL_ELEMENTS_CHECK(UnsignedInt
 
EXTERNAL_UNSIGNED_INT_ARRAY_TYPE EXTERNAL_ELEMENTS_CHECK (Float, EXTERNAL_FLOAT_ARRAY_TYPE) EXTERNAL_ELEMENTS_CHECK(Double
 
template<typename schar >
uint32_t HashSequentialString (const schar *chars, int length, uint32_t seed)
 
 ACCESSORS (TypeFeedbackInfo, type_feedback_cells, TypeFeedbackCells, kTypeFeedbackCellsOffset) Relocatable
 

Variables

 property_accessors
 
 Object
 
kPropertyAccessorsOffset named_property_handler
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset 
instance_template
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset 
access_check_info
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset 
eval_from_instructions_offset
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset 
instance_class_name
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset 
flag
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset 
hidden_prototype
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit 
read_only_prototype
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit 
start_position_and_type
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit 
is_toplevel
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit 
compiler_hints
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit 
allows_lazy_compilation
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation 
uses_arguments
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation
kUsesArguments 
formal_parameter_count
 
kPropertyAccessorsOffset
kNamedPropertyHandlerOffset
kInstanceTemplateOffset
kAccessCheckInfoOffset
kEvalFrominstructionsOffsetOffset
kInstanceClassNameOffset
kHiddenPrototypeBit
kReadOnlyPrototypeBit
kIsTopLevelBit
kAllowLazyCompilation
kUsesArguments
kFormalParameterCountOffset
kStartPositionAndTypeOffset
kCompilerHintsOffset 
stress_deopt_counter
 
 name_should_print_as_anonymous
 

Macro Definition Documentation

#define ACCESSORS (   holder,
  name,
  type,
  offset 
)
Value:
type* holder::name() { return type::cast(READ_FIELD(this, offset)); } \
void holder::set_##name(type* value, WriteBarrierMode mode) { \
WRITE_FIELD(this, offset, value); \
CONDITIONAL_WRITE_BARRIER(GetHeap(), this, offset, value, mode); \
}
#define CONDITIONAL_WRITE_BARRIER(heap, object, offset, value, mode)
Definition: objects-inl.h:886
#define READ_FIELD(p, offset)
Definition: objects-inl.h:873
#define WRITE_FIELD(p, offset, value)
Definition: objects-inl.h:876

Definition at line 90 of file objects-inl.h.

#define ACCESSORS_TO_SMI (   holder,
  name,
  offset 
)
Value:
Smi* holder::name() { return Smi::cast(READ_FIELD(this, offset)); } \
void holder::set_##name(Smi* value, WriteBarrierMode mode) { \
WRITE_FIELD(this, offset, value); \
}
#define READ_FIELD(p, offset)
Definition: objects-inl.h:873
#define WRITE_FIELD(p, offset, value)
Definition: objects-inl.h:876

Definition at line 99 of file objects-inl.h.

#define BOOL_ACCESSORS (   holder,
  field,
  name,
  offset 
)
Value:
bool holder::name() { \
return BooleanBit::get(field(), offset); \
} \
void holder::set_##name(bool value) { \
set_##field(BooleanBit::set(field(), offset, value)); \
}

Definition at line 123 of file objects-inl.h.

#define BOOL_GETTER (   holder,
  field,
  name,
  offset 
)
Value:
bool holder::name() { \
return BooleanBit::get(field(), offset); \
} \

Definition at line 117 of file objects-inl.h.

#define CAST_ACCESSOR (   type)
Value:
type* type::cast(Object* object) { \
ASSERT(object->Is##type()); \
return reinterpret_cast<type*>(object); \
}
#define ASSERT(condition)
Definition: checks.h:270

Definition at line 78 of file objects-inl.h.

#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 886 of file objects-inl.h.

Referenced by Map::ClearTransitions(), JSObject::InObjectPropertyAtPut(), FixedArray::set(), ConsString::set_first(), JSObject::set_map_and_elements(), SlicedString::set_parent(), ConsString::set_second(), FixedArray::set_unchecked(), and Map::SetBackPointer().

#define EXTERNAL_ELEMENTS_CHECK (   name,
  type 
)
Value:
bool JSObject::HasExternal##name##Elements() { \
HeapObject* array = elements(); \
ASSERT(array != NULL); \
if (!array->IsHeapObject()) \
return false; \
return array->map()->instance_type() == type; \
}
#define ASSERT(condition)
Definition: checks.h:270
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL

Definition at line 4846 of file objects-inl.h.

#define INT_ACCESSORS (   holder,
  name,
  offset 
)
Value:
int holder::name() { return READ_INT_FIELD(this, offset); } \
void holder::set_##name(int value) { WRITE_INT_FIELD(this, offset, value); }
#define WRITE_INT_FIELD(p, offset, value)
Definition: objects-inl.h:937
#define READ_INT_FIELD(p, offset)
Definition: objects-inl.h:934

Definition at line 85 of file objects-inl.h.

#define MAKE_STRUCT_CASE (   NAME,
  Name,
  name 
)    case NAME##_TYPE: return true;

Referenced by Object::IsStruct().

#define MAKE_STRUCT_CAST (   NAME,
  Name,
  name 
)    CAST_ACCESSOR(Name)

Definition at line 2388 of file objects-inl.h.

#define MAKE_STRUCT_PREDICATE (   NAME,
  Name,
  name 
)
Value:
bool Object::Is##Name() { \
return Object::IsHeapObject() \
&& HeapObject::cast(this)->map()->instance_type() == NAME##_TYPE; \
}

Definition at line 771 of file objects-inl.h.

#define PSEUDO_SMI_ACCESSORS_HI (   holder,
  name,
  offset 
)
Value:
STATIC_ASSERT(holder::offset % kPointerSize == kIntSize); \
INT_ACCESSORS(holder, name, offset)
const int kIntSize
Definition: globals.h:217
const int kPointerSize
Definition: globals.h:220
#define INT_ACCESSORS(holder, name, offset)
Definition: objects-inl.h:85
#define STATIC_ASSERT(test)
Definition: checks.h:283
#define PSEUDO_SMI_ACCESSORS_LO (   holder,
  name,
  offset 
)
Value:
STATIC_ASSERT(holder::offset % kPointerSize == 0); \
int holder::name() { \
int value = READ_INT_FIELD(this, offset); \
ASSERT((value & kHeapObjectTag) == 0); \
return value >> 1; \
} \
void holder::set_##name(int value) { \
ASSERT((value & 0xC0000000) == 0xC0000000 || \
(value & 0xC0000000) == 0x000000000); \
offset, \
(value << 1) & ~kHeapObjectTag); \
}
#define ASSERT(condition)
Definition: checks.h:270
#define WRITE_INT_FIELD(p, offset, value)
Definition: objects-inl.h:937
#define READ_INT_FIELD(p, offset)
Definition: objects-inl.h:934
const int kPointerSize
Definition: globals.h:220
const int kHeapObjectTag
Definition: v8.h:4009
#define STATIC_ASSERT(test)
Definition: checks.h:283
#define READ_DOUBLE_FIELD (   p,
  offset 
)    (*reinterpret_cast<double*>(FIELD_ADDR(p, offset)))
#define READ_INT64_FIELD (   p,
  offset 
)    (*reinterpret_cast<int64_t*>(FIELD_ADDR(p, offset)))

Definition at line 952 of file objects-inl.h.

Referenced by FixedDoubleArray::get_representation().

#define READ_INT_FIELD (   p,
  offset 
)    (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)))
#define READ_INTPTR_FIELD (   p,
  offset 
)    (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)))

Definition at line 940 of file objects-inl.h.

Referenced by Foreign::foreign_address().

#define READ_SHORT_FIELD (   p,
  offset 
)    (*reinterpret_cast<uint16_t*>(FIELD_ADDR(p, offset)))

Definition at line 958 of file objects-inl.h.

Referenced by SeqTwoByteString::SeqTwoByteStringGet().

#define SMI_ACCESSORS (   holder,
  name,
  offset 
)
Value:
int holder::name() { \
Object* value = READ_FIELD(this, offset); \
return Smi::cast(value)->value(); \
} \
void holder::set_##name(int value) { \
WRITE_FIELD(this, offset, Smi::FromInt(value)); \
}
#define READ_FIELD(p, offset)
Definition: objects-inl.h:873
#define WRITE_FIELD(p, offset, value)
Definition: objects-inl.h:876

Definition at line 107 of file objects-inl.h.

#define TYPE_CHECKER (   type,
  instancetype 
)
Value:
bool Object::Is##type() { \
return Object::IsHeapObject() && \
HeapObject::cast(this)->map()->instance_type() == instancetype; \
}

Definition at line 71 of file objects-inl.h.

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

Definition at line 879 of file objects-inl.h.

Referenced by JSObject::FastPropertyAtPut(), FixedArray::set(), JSFunction::set_context(), JSBuiltinsObject::set_javascript_builtin(), and JSObject::SetInternalField().

#define WRITE_DOUBLE_FIELD (   p,
  offset,
  value 
)    (*reinterpret_cast<double*>(FIELD_ADDR(p, offset)) = value)
#define WRITE_INT64_FIELD (   p,
  offset,
  value 
)    (*reinterpret_cast<int64_t*>(FIELD_ADDR(p, offset)) = value)

Definition at line 955 of file objects-inl.h.

#define WRITE_INT_FIELD (   p,
  offset,
  value 
)    (*reinterpret_cast<int*>(FIELD_ADDR(p, offset)) = value)

Definition at line 937 of file objects-inl.h.

Referenced by Code::set_flags().

#define WRITE_INTPTR_FIELD (   p,
  offset,
  value 
)    (*reinterpret_cast<intptr_t*>(FIELD_ADDR(p, offset)) = value)

Definition at line 943 of file objects-inl.h.

Referenced by JSFunction::set_code(), and Foreign::set_foreign_address().

#define WRITE_SHORT_FIELD (   p,
  offset,
  value 
)    (*reinterpret_cast<uint16_t*>(FIELD_ADDR(p, offset)) = value)

Definition at line 961 of file objects-inl.h.

Referenced by SeqTwoByteString::SeqTwoByteStringSet().