| 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 3355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3366 JSFunction* Map::unchecked_constructor() { | 3366 JSFunction* Map::unchecked_constructor() { |
| 3367 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); | 3367 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); |
| 3368 } | 3368 } |
| 3369 | 3369 |
| 3370 | 3370 |
| 3371 Code::Flags Code::flags() { | 3371 Code::Flags Code::flags() { |
| 3372 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset)); | 3372 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset)); |
| 3373 } | 3373 } |
| 3374 | 3374 |
| 3375 | 3375 |
| 3376 inline bool Map::CanTrackAllocationSite() { |
| 3377 return instance_type() == JS_ARRAY_TYPE; |
| 3378 } |
| 3379 |
| 3380 |
| 3376 void Map::set_owns_descriptors(bool is_shared) { | 3381 void Map::set_owns_descriptors(bool is_shared) { |
| 3377 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); | 3382 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); |
| 3378 } | 3383 } |
| 3379 | 3384 |
| 3380 | 3385 |
| 3381 bool Map::owns_descriptors() { | 3386 bool Map::owns_descriptors() { |
| 3382 return OwnsDescriptors::decode(bit_field3()); | 3387 return OwnsDescriptors::decode(bit_field3()); |
| 3383 } | 3388 } |
| 3384 | 3389 |
| 3385 | 3390 |
| (...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5783 #undef WRITE_UINT32_FIELD | 5788 #undef WRITE_UINT32_FIELD |
| 5784 #undef READ_SHORT_FIELD | 5789 #undef READ_SHORT_FIELD |
| 5785 #undef WRITE_SHORT_FIELD | 5790 #undef WRITE_SHORT_FIELD |
| 5786 #undef READ_BYTE_FIELD | 5791 #undef READ_BYTE_FIELD |
| 5787 #undef WRITE_BYTE_FIELD | 5792 #undef WRITE_BYTE_FIELD |
| 5788 | 5793 |
| 5789 | 5794 |
| 5790 } } // namespace v8::internal | 5795 } } // namespace v8::internal |
| 5791 | 5796 |
| 5792 #endif // V8_OBJECTS_INL_H_ | 5797 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |