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 3505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3516 | 3516 |
3517 set_instance_descriptors(descriptors); | 3517 set_instance_descriptors(descriptors); |
3518 | 3518 |
3519 for (int i = 0; i < len; ++i) { | 3519 for (int i = 0; i < len; ++i) { |
3520 if (descriptors->GetDetails(i).index() == len) { | 3520 if (descriptors->GetDetails(i).index() == len) { |
3521 SetLastAdded(i); | 3521 SetLastAdded(i); |
3522 break; | 3522 break; |
3523 } | 3523 } |
3524 } | 3524 } |
3525 | 3525 |
3526 ASSERT(len == 0 || | 3526 ASSERT((len == 0 && LastAdded() == kNoneAdded) || |
3527 len == descriptors->GetDetails(LastAdded()).index()); | 3527 len == descriptors->GetDetails(LastAdded()).index()); |
3528 } | 3528 } |
3529 | 3529 |
3530 | 3530 |
3531 SMI_ACCESSORS(Map, bit_field3, kBitField3Offset) | 3531 SMI_ACCESSORS(Map, bit_field3, kBitField3Offset) |
3532 | 3532 |
3533 | 3533 |
3534 void Map::ClearDescriptorArray(Heap* heap, WriteBarrierMode mode) { | 3534 void Map::ClearDescriptorArray(Heap* heap, WriteBarrierMode mode) { |
3535 Object* back_pointer = GetBackPointer(); | 3535 Object* back_pointer = GetBackPointer(); |
3536 #ifdef DEBUG | 3536 #ifdef DEBUG |
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5390 #undef WRITE_UINT32_FIELD | 5390 #undef WRITE_UINT32_FIELD |
5391 #undef READ_SHORT_FIELD | 5391 #undef READ_SHORT_FIELD |
5392 #undef WRITE_SHORT_FIELD | 5392 #undef WRITE_SHORT_FIELD |
5393 #undef READ_BYTE_FIELD | 5393 #undef READ_BYTE_FIELD |
5394 #undef WRITE_BYTE_FIELD | 5394 #undef WRITE_BYTE_FIELD |
5395 | 5395 |
5396 | 5396 |
5397 } } // namespace v8::internal | 5397 } } // namespace v8::internal |
5398 | 5398 |
5399 #endif // V8_OBJECTS_INL_H_ | 5399 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |