| 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 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3371 JSFunction* Map::unchecked_constructor() { | 3371 JSFunction* Map::unchecked_constructor() { |
| 3372 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); | 3372 return reinterpret_cast<JSFunction*>(READ_FIELD(this, kConstructorOffset)); |
| 3373 } | 3373 } |
| 3374 | 3374 |
| 3375 | 3375 |
| 3376 Code::Flags Code::flags() { | 3376 Code::Flags Code::flags() { |
| 3377 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset)); | 3377 return static_cast<Flags>(READ_INT_FIELD(this, kFlagsOffset)); |
| 3378 } | 3378 } |
| 3379 | 3379 |
| 3380 | 3380 |
| 3381 inline bool Map::CanTrackAllocationSite() { |
| 3382 return instance_type() == JS_ARRAY_TYPE; |
| 3383 } |
| 3384 |
| 3385 |
| 3381 void Map::set_owns_descriptors(bool is_shared) { | 3386 void Map::set_owns_descriptors(bool is_shared) { |
| 3382 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); | 3387 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); |
| 3383 } | 3388 } |
| 3384 | 3389 |
| 3385 | 3390 |
| 3386 bool Map::owns_descriptors() { | 3391 bool Map::owns_descriptors() { |
| 3387 return OwnsDescriptors::decode(bit_field3()); | 3392 return OwnsDescriptors::decode(bit_field3()); |
| 3388 } | 3393 } |
| 3389 | 3394 |
| 3390 | 3395 |
| (...skipping 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5805 #undef WRITE_UINT32_FIELD | 5810 #undef WRITE_UINT32_FIELD |
| 5806 #undef READ_SHORT_FIELD | 5811 #undef READ_SHORT_FIELD |
| 5807 #undef WRITE_SHORT_FIELD | 5812 #undef WRITE_SHORT_FIELD |
| 5808 #undef READ_BYTE_FIELD | 5813 #undef READ_BYTE_FIELD |
| 5809 #undef WRITE_BYTE_FIELD | 5814 #undef WRITE_BYTE_FIELD |
| 5810 | 5815 |
| 5811 | 5816 |
| 5812 } } // namespace v8::internal | 5817 } } // namespace v8::internal |
| 5813 | 5818 |
| 5814 #endif // V8_OBJECTS_INL_H_ | 5819 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |