v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
objects.cc File Reference
#include "v8.h"
#include "accessors.h"
#include "allocation-site-scopes.h"
#include "api.h"
#include "arguments.h"
#include "bootstrapper.h"
#include "codegen.h"
#include "code-stubs.h"
#include "cpu-profiler.h"
#include "debug.h"
#include "deoptimizer.h"
#include "date.h"
#include "elements.h"
#include "execution.h"
#include "full-codegen.h"
#include "hydrogen.h"
#include "isolate-inl.h"
#include "log.h"
#include "objects-inl.h"
#include "objects-visiting-inl.h"
#include "macro-assembler.h"
#include "mark-compact.h"
#include "safepoint-table.h"
#include "string-stream.h"
#include "utils.h"
Include dependency graph for objects.cc:

Go to the source code of this file.

Data Structures

struct  DescriptorArrayAppender
 
struct  FixedArrayAppender
 
class  JSObjectWalkVisitor< ContextObject >
 
class  IntrusiveMapTransitionIterator
 
class  IntrusivePrototypeTransitionIterator
 
class  TraversableMap
 
class  CodeCacheHashTableKey
 
class  PolymorphicCodeCacheHashTableKey
 
class  RawStringComparator< Chars1, Chars2 >
 
class  RawStringComparator< uint16_t, uint16_t >
 
class  RawStringComparator< uint8_t, uint8_t >
 
class  StringComparator
 
class  IteratingStringHasher
 
class  StringKey
 
class  StringSharedKey
 
class  RegExpKey
 
class  InternalizedStringKey
 
class  TwoCharHashTableKey
 
class  StringsKey
 
struct  EnumIndexComparator
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define TYPED_ARRAY_SHORT_PRINT(Type, type, TYPE, ctype, size)
 
#define MAKE_STRUCT_CASE(NAME, Name, name)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define MAKE_STRUCT_CASE(NAME, Name, name)   case NAME##_TYPE:
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define DECLARE_TAG(ignore1, name, ignore2)   name,
 
#define DECLARE_TAG(ignore1, ignore2, name)   name,
 
#define HANDLE_CODE_AGE(AGE)
 
#define HANDLE_CODE_AGE(AGE)
 
#define CASE(name)   case name: return #name;
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)
 
#define INSTANCE_TYPE_TO_ARRAY_TYPE(Type, type, TYPE, ctype, size)
 
#define INSTANCE_TYPE_TO_ELEMENT_SIZE(Type, type, TYPE, ctype, size)
 
#define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size)   case TYPE##_ELEMENTS: return EXTERNAL_##TYPE##_ELEMENTS;
 
#define ERROR_MESSAGES_TEXTS(C, T)   T,
 

Functions

Handle< NameDictionary > NameDictionaryShrink (Handle< NameDictionary > dict, Handle< Name > name)
 
Handle< Object > CacheInitialJSArrayMaps (Handle< Context > native_context, Handle< Map > initial_map)
 
void HeapSortPairs (FixedArray *content, FixedArray *numbers, int len)
 
const char * GetBailoutReason (BailoutReason reason)
 

Macro Definition Documentation

#define CASE (   name)    case name: return #name;

Referenced by Code::Kind2String().

#define DECLARE_TAG (   ignore1,
  name,
  ignore2 
)    name,

Definition at line 10226 of file objects.cc.

#define DECLARE_TAG (   ignore1,
  ignore2,
  name 
)    name,

Definition at line 10226 of file objects.cc.

#define ERROR_MESSAGES_TEXTS (   C,
  T 
)    T,
#define HANDLE_CODE_AGE (   AGE)
Value:
stub = *builtins->Make##AGE##CodeYoungAgainEvenMarking(); \
if (code == stub) { \
*age = k##AGE##CodeAge; \
*parity = EVEN_MARKING_PARITY; \
return; \
} \
stub = *builtins->Make##AGE##CodeYoungAgainOddMarking(); \
if (code == stub) { \
*age = k##AGE##CodeAge; \
*parity = ODD_MARKING_PARITY; \
return; \
}
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization extra verbose compilation tracing generate extra code(assertions) for debugging") DEFINE_bool(code_comments
#define HANDLE_CODE_AGE (   AGE)
Value:
case k##AGE##CodeAge: { \
Code* stub = parity == EVEN_MARKING_PARITY \
? *builtins->Make##AGE##CodeYoungAgainEvenMarking() \
: *builtins->Make##AGE##CodeYoungAgainOddMarking(); \
return stub; \
}
#define INSTANCE_TYPE_TO_ARRAY_TYPE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ARRAY_TYPE: \
case FIXED_##TYPE##_ARRAY_TYPE: \
return kExternal##Type##Array;
TypeImpl< ZoneTypeConfig > Type

Referenced by JSTypedArray::type().

#define INSTANCE_TYPE_TO_ELEMENT_SIZE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ARRAY_TYPE: \
return size;
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object size

Referenced by JSTypedArray::element_size().

#define MAKE_STRUCT_CASE (   NAME,
  Name,
  name 
)
Value:
case NAME##_TYPE: \
accumulator->Put('<'); \
accumulator->Add(#Name); \
accumulator->Put('>'); \
break;

Referenced by HeapObject::HeapObjectShortPrint(), and HeapObject::IterateBody().

#define MAKE_STRUCT_CASE (   NAME,
  Name,
  name 
)    case NAME##_TYPE:
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ARRAY_TYPE: \
case FIXED_##TYPE##_ARRAY_TYPE: \
break;

Referenced by JSObject::GetLocalElementKeys(), HeapObject::IterateBody(), JSObject::ReferencesObject(), JSObject::SetAccessor(), and JSObjectWalkVisitor< ContextObject >::StructureWalk().

#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: \
case TYPE##_ELEMENTS: \
break;
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: \
case TYPE##_ELEMENTS: \
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: \
case TYPE##_ELEMENTS: \
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: \
case TYPE##_ELEMENTS: \
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: { \
Handle<External##Type##Array> array( \
External##Type##Array::cast(object->elements())); \
return External##Type##Array::SetValue(array, index, value); \
} \
case TYPE##_ELEMENTS: { \
Handle<Fixed##Type##Array> array( \
Fixed##Type##Array::cast(object->elements())); \
return Fixed##Type##Array::SetValue(array, index, value); \
}
TypeImpl< ZoneTypeConfig > Type
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: \
case TYPE##_ELEMENTS: \
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ELEMENTS: \
case TYPE##_ELEMENTS: \
#define TYPED_ARRAY_CASE (   Type,
  type,
  TYPE,
  ctype,
  size 
)    case TYPE##_ELEMENTS: return EXTERNAL_##TYPE##_ELEMENTS;
#define TYPED_ARRAY_SHORT_PRINT (   Type,
  type,
  TYPE,
  ctype,
  size 
)
Value:
case EXTERNAL_##TYPE##_ARRAY_TYPE: \
accumulator->Add("<External" #Type "Array[%u]>", \
External##Type##Array::cast(this)->length()); \
break; \
case FIXED_##TYPE##_ARRAY_TYPE: \
accumulator->Add("<Fixed" #Type "Array[%u]>", \
Fixed##Type##Array::cast(this)->length()); \
break;
TypeImpl< ZoneTypeConfig > Type

Referenced by HeapObject::HeapObjectShortPrint().