OLD | NEW |
---|---|
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 Loading... | |
1937 | 1937 |
1938 | 1938 |
1939 void FixedArray::set_null_unchecked(Heap* heap, int index) { | 1939 void FixedArray::set_null_unchecked(Heap* heap, int index) { |
1940 ASSERT(index >= 0 && index < this->length()); | 1940 ASSERT(index >= 0 && index < this->length()); |
1941 ASSERT(!heap->InNewSpace(heap->null_value())); | 1941 ASSERT(!heap->InNewSpace(heap->null_value())); |
1942 WRITE_FIELD(this, kHeaderSize + index * kPointerSize, heap->null_value()); | 1942 WRITE_FIELD(this, kHeaderSize + index * kPointerSize, heap->null_value()); |
1943 } | 1943 } |
1944 | 1944 |
1945 | 1945 |
1946 double* FixedDoubleArray::data_start() { | 1946 double* FixedDoubleArray::data_start() { |
1947 return &READ_DOUBLE_FIELD(this, kHeaderSize); | 1947 return reinterpret_cast<double*>(FIELD_ADDR(this, kHeaderSize)); |
palfia
2012/11/21 00:50:50
I've modified this line, because the READ_DOUBLE_F
| |
1948 } | 1948 } |
1949 | 1949 |
1950 | 1950 |
1951 Object** FixedArray::data_start() { | 1951 Object** FixedArray::data_start() { |
1952 return HeapObject::RawField(this, kHeaderSize); | 1952 return HeapObject::RawField(this, kHeaderSize); |
1953 } | 1953 } |
1954 | 1954 |
1955 | 1955 |
1956 bool DescriptorArray::IsEmpty() { | 1956 bool DescriptorArray::IsEmpty() { |
1957 ASSERT(length() >= kFirstIndex || | 1957 ASSERT(length() >= kFirstIndex || |
(...skipping 3594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5552 #undef WRITE_UINT32_FIELD | 5552 #undef WRITE_UINT32_FIELD |
5553 #undef READ_SHORT_FIELD | 5553 #undef READ_SHORT_FIELD |
5554 #undef WRITE_SHORT_FIELD | 5554 #undef WRITE_SHORT_FIELD |
5555 #undef READ_BYTE_FIELD | 5555 #undef READ_BYTE_FIELD |
5556 #undef WRITE_BYTE_FIELD | 5556 #undef WRITE_BYTE_FIELD |
5557 | 5557 |
5558 | 5558 |
5559 } } // namespace v8::internal | 5559 } } // namespace v8::internal |
5560 | 5560 |
5561 #endif // V8_OBJECTS_INL_H_ | 5561 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |