Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: src/objects-inl.h

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 } 1937 }
1938 1938
1939 1939
1940 void FixedArray::set_null_unchecked(Heap* heap, int index) { 1940 void FixedArray::set_null_unchecked(Heap* heap, int index) {
1941 ASSERT(index >= 0 && index < this->length()); 1941 ASSERT(index >= 0 && index < this->length());
1942 ASSERT(!heap->InNewSpace(heap->null_value())); 1942 ASSERT(!heap->InNewSpace(heap->null_value()));
1943 WRITE_FIELD(this, kHeaderSize + index * kPointerSize, heap->null_value()); 1943 WRITE_FIELD(this, kHeaderSize + index * kPointerSize, heap->null_value());
1944 } 1944 }
1945 1945
1946 1946
1947 Object** FixedArray::data_start() { 1947 Object** FixedArrayBase::data_start() {
danno 2012/11/13 22:05:12 Whoa. Either return a void* and the caller has to
Toon Verwaest 2012/11/14 11:53:13 Done.
1948 return HeapObject::RawField(this, kHeaderSize); 1948 return HeapObject::RawField(this, kHeaderSize);
1949 } 1949 }
1950 1950
1951 1951
1952 bool DescriptorArray::IsEmpty() { 1952 bool DescriptorArray::IsEmpty() {
1953 ASSERT(length() >= kFirstIndex || 1953 ASSERT(length() >= kFirstIndex ||
1954 this == HEAP->empty_descriptor_array()); 1954 this == HEAP->empty_descriptor_array());
1955 return length() < kFirstIndex; 1955 return length() < kFirstIndex;
1956 } 1956 }
1957 1957
(...skipping 3599 matching lines...) Expand 10 before | Expand all | Expand 10 after
5557 #undef WRITE_UINT32_FIELD 5557 #undef WRITE_UINT32_FIELD
5558 #undef READ_SHORT_FIELD 5558 #undef READ_SHORT_FIELD
5559 #undef WRITE_SHORT_FIELD 5559 #undef WRITE_SHORT_FIELD
5560 #undef READ_BYTE_FIELD 5560 #undef READ_BYTE_FIELD
5561 #undef WRITE_BYTE_FIELD 5561 #undef WRITE_BYTE_FIELD
5562 5562
5563 5563
5564 } } // namespace v8::internal 5564 } } // namespace v8::internal
5565 5565
5566 #endif // V8_OBJECTS_INL_H_ 5566 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698