33 using namespace v8::internal;
38 void*
New(
size_t size) {
40 size_t true_size = size +
sizeof(size_t);
41 size_t* result =
reinterpret_cast<size_t*
>(malloc(true_size));
42 if (result ==
NULL)
return result;
48 size_t* true_ptr =
reinterpret_cast<size_t*
>(ptr) - 1;
49 memset(true_ptr, 0, *true_ptr);
77 for (
int i = 0; i < 3; i++) {
86 for (
int i = 0; i < 3; i++) {
98 for (
int i = 0; i < 6; i++) {
122 const int kElements = 100;
123 for (
int i = 0; i < kElements; i++) list.
Add(i);
124 for (
int j = kElements - 1; j >= 0; j--) {
148 for (
int i = 0; i < 4; ++i) list.
Add(i);
#define CHECK_EQ(expected, value)
static void Delete(void *ptr)
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 trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt 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 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL
void Add(const T &element, AllocationPolicy allocator=AllocationPolicy())
void AddAll(const List< T, AllocationPolicy > &other, AllocationPolicy allocator=AllocationPolicy())