Home | History | Annotate | Download | only in src

Lines Matching refs:Array

50 // Getters and setters are stored in a fixed array property.  These are
839 accumulator->Add("<JS array[%u]>", static_cast<uint32_t>(length));
1383 // Ensure the descriptor array does not get too big.
1491 // Make new properties array if necessary.
2093 // Check whether the name is an array index.
2219 FixedArray* array = FixedArray::cast(elements());
2224 array->length();
2230 Object* value = array->get(i);
2233 Object* result = dictionary->AddNumberEntry(i, array->get(i), details);
2399 // Pixel and external array elements cannot be deleted. Just
2524 // Get the constructor function for arguments array.
2542 // If it is an arguments array check the content.
2738 // Ignore getters and setters on pixel and external array
2783 // Allocate the fixed array to hold getter and setter.
2841 Object* array = DefineGetterSetter(name, attributes);
2842 if (array->IsFailure() || array->IsUndefined()) return array;
2843 FixedArray::cast(array)->set(is_getter ? 0 : 1, fun);
2939 // array describing these properties.
3043 FixedArray* array = code_cache();
3044 int len = array->length();
3046 if (array->get(i + 1) == code) return i + 1;
3053 FixedArray* array = code_cache();
3054 ASSERT(array->length() >= index && array->get(index)->IsCode());
3058 array->set_null(index - 1); // key
3059 array->set_null(index); // code
3068 static bool HasKey(FixedArray* array, Object* key) {
3069 int len0 = array->length();
3071 Object* element = array->get(i);
3082 Object* FixedArray::AddKeysFromJSArray(JSArray* array) {
3083 ASSERT(!array->HasPixelElements() && !array->HasExternalArrayElements());
3084 switch (array->GetElementsKind()) {
3086 return UnionOfKeys(FixedArray::cast(array->elements()));
3088 NumberDictionary* dict = array->element_dictionary();
3091 // Allocate a temporary fixed array.
3098 // Copy the elements from the JSArray to the temporary fixed array.
3104 // Compute the union of this and the temporary fixed array.
3197 // Allocate the array of keys.
3198 Object* array =
3200 if (array->IsFailure()) return array;
3202 FixedArray* result = FixedArray::cast(array);
3204 // Allocate the content array and set it in the descriptor array.
3205 array = Heap::AllocateFixedArray(number_of_descriptors << 1);
3206 if (array->IsFailure()) return array;
3207 result->set(kContentArrayIndex, array);
3221 if (IsEmpty()) return; // Do nothing for empty descriptor array.
3335 // Remove all transitions and null descriptors. Return a copy of the array
3336 // with all transitions removed, or a Failure object if the new array could
3345 // Allocate the new descriptor array.
3381 // Extract elements and create sorted array.
3383 // Put max element at the back of the array.
4475 // of it to be a legal array index.
4481 // Convert string to uint32 array index; character by character.
4503 // Isolate the array index form the full hash field.
4519 // For array indexes mix the length into the hash as an array index could
4557 // Do the iterative array index computation as long as there is a
4558 // chance this is an array index.
4563 // Process the remaining characters without updating the array
5124 // We should never end in here with a pixel or external array.
5127 // Check the provided array is filled with the_hole.
5137 // Fill out the new array with this content and array holes.
5163 // We should never end in here with a pixel or external array.
5240 // We should never end in here with a pixel or external array.
5254 // last part of the elements backing storage array and
5280 // If the length of a slow array is reset to zero, we clear
5281 // the array and flush backing storage. This has the added
5282 // benefit that the array returns to fast mode.
5303 if (Array
5310 // len is not a number so make the array size one and
5392 ExternalArray* array = ExternalArray::cast(elements());
5393 if (index < static_cast<uint32_t>(array->length())) {
5492 ExternalArray* array = ExternalArray::cast(elements());
5493 return (index < static_cast<uint32_t>(array->length()));
5545 ExternalArray* array = ExternalArray::cast(elements());
5546 if (index < static_cast<uint32_t>(array->length())) {
5618 // Check whether there is extra space in fixed array..
5622 // Update the length of the array if needed.
5624 CHECK(Array::IndexFromObject(JSArray::cast(this)->length(),
5692 ExternalByteArray* array = ExternalByteArray::cast(elements());
5693 return array->SetValue(index, value);
5696 ExternalUnsignedByteArray* array =
5698 return array->SetValue(index, value);
5701 ExternalShortArray* array = ExternalShortArray::cast(elements());
5702 return array->SetValue(index, value);
5705 ExternalUnsignedShortArray* array =
5707 return array->SetValue(index, value);
5710 ExternalIntArray* array = ExternalIntArray::cast(elements());
5711 return array->SetValue(index, value);
5714 ExternalUnsignedIntArray* array =
5716 return array->SetValue(index, value);
5719 ExternalFloatArray* array = ExternalFloatArray::cast(elements());
5720 return array->SetValue(index, value);
5764 // Update the array length if this JSObject is an array.
5766 JSArray* array = JSArray::cast(this);
5767 Object* return_value = array->JSArrayUpdateLengthFromIndex(index,
5776 CHECK(Array::IndexFromObject(JSArray::cast(this)->length(),
5808 CHECK(Array::IndexFromObject(length(), &old_len));
5949 ExternalByteArray* array = ExternalByteArray::cast(elements());
5950 if (index < static_cast<uint32_t>(array->length())) {
5951 int8_t value = array->get(index);
5957 ExternalUnsignedByteArray* array =
5959 if (index < static_cast<uint32_t>(array->length())) {
5960 uint8_t value = array->get(index);
5966 ExternalShortArray* array = ExternalShortArray::cast(elements());
5967 if (index < static_cast<uint32_t>(array->length())) {
5968 int16_t value = array->get(index);
5974 ExternalUnsignedShortArray* array =
5976 if (index < static_cast<uint32_t>(array->length())) {
5977 uint16_t value = array->get(index);
5983 ExternalIntArray* array = ExternalIntArray::cast(elements());
5984 if (index < static_cast<uint32_t>(array->length())) {
5985 int32_t value = array->get(index);
5991 ExternalUnsignedIntArray* array =
5993 if (index < static_cast<uint32_t>(array->length())) {
5994 uint32_t value = array->get(index);
6000 ExternalFloatArray* array = ExternalFloatArray::cast(elements());
6001 if (index < static_cast<uint32_t>(array->length())) {
6002 float value = array->get(index);
6078 // Keep the array in fast case if the current backing storage is
6098 // space as a fast-case backing storage would the array should have
6102 CHECK(Array::IndexFromObject(JSArray::cast(this)->length(), &length));
6288 ExternalArray* array = ExternalArray::cast(elements());
6289 return index < static_cast<uint32_t>(array->length());
6388 // Extract elements and create sorted array.
6390 // Put max element at the back of the array.
6414 // Sort this array and the numbers as pairs wrt. the (distinct) numbers.
6892 // Copy prefix to new array.
7046 // Bail out and do the sorting of undefineds and array holes in JS.
7083 // Collects all defined (non-hole) and non-undefined (array) elements at
7084 // the start of the elements array.
7127 // we start mutating the array.
7555 // SymbolsKey used for HashTable where key is array of symbols.
7589 Object* MapCache::Lookup(FixedArray* array) {
7590 SymbolsKey key(array);
7597 Object* MapCache::Put(FixedArray* array, Map* value) {
7598 SymbolsKey key(array);
7604 cache->set(EntryToIndex(entry), array);
7627 // Allocate and initialize iteration order array.
7635 // Allocate array with enumeration order.
7640 // Fill the enumeration order array with property details.
7985 // Allocate the fixed array for the fields.
8115 // No free slot - extend break point info array.
8215 // If there are multiple break points shrink the array
8246 // If there was one break point object before replace with array.
8248 Handle<FixedArray> array = Factory::NewFixedArray(2);
8249 array->set(0, break_point_info->break_point_objects());
8250 array->set(1, *break_point_object);
8251 break_point_info->set_break_point_objects(*array);
8254 // If there was more than one break point before extend array.
8281 FixedArray* array = FixedArray::cast(break_point_info->break_point_objects());
8282 for (int i = 0; i < array->length(); i++) {
8283 if (array->get(i) == *break_point_object) {