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 5972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5983 // with the given holder if the name is found. The holder may be | 5983 // with the given holder if the name is found. The holder may be |
5984 // NULL when this function is used from the compiler. | 5984 // NULL when this function is used from the compiler. |
5985 inline void LookupDescriptor(JSObject* holder, | 5985 inline void LookupDescriptor(JSObject* holder, |
5986 Name* name, | 5986 Name* name, |
5987 LookupResult* result); | 5987 LookupResult* result); |
5988 | 5988 |
5989 inline void LookupTransition(JSObject* holder, | 5989 inline void LookupTransition(JSObject* holder, |
5990 Name* name, | 5990 Name* name, |
5991 LookupResult* result); | 5991 LookupResult* result); |
5992 | 5992 |
| 5993 inline PropertyDetails GetLastDescriptorDetails(); |
| 5994 |
5993 // The size of transition arrays are limited so they do not end up in large | 5995 // The size of transition arrays are limited so they do not end up in large |
5994 // object space. Otherwise ClearNonLiveTransitions would leak memory while | 5996 // object space. Otherwise ClearNonLiveTransitions would leak memory while |
5995 // applying in-place right trimming. | 5997 // applying in-place right trimming. |
5996 inline bool CanHaveMoreTransitions(); | 5998 inline bool CanHaveMoreTransitions(); |
5997 | 5999 |
5998 int LastAdded() { | 6000 int LastAdded() { |
5999 int number_of_own_descriptors = NumberOfOwnDescriptors(); | 6001 int number_of_own_descriptors = NumberOfOwnDescriptors(); |
6000 ASSERT(number_of_own_descriptors > 0); | 6002 ASSERT(number_of_own_descriptors > 0); |
6001 return number_of_own_descriptors - 1; | 6003 return number_of_own_descriptors - 1; |
6002 } | 6004 } |
(...skipping 4620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10623 } else { | 10625 } else { |
10624 value &= ~(1 << bit_position); | 10626 value &= ~(1 << bit_position); |
10625 } | 10627 } |
10626 return value; | 10628 return value; |
10627 } | 10629 } |
10628 }; | 10630 }; |
10629 | 10631 |
10630 } } // namespace v8::internal | 10632 } } // namespace v8::internal |
10631 | 10633 |
10632 #endif // V8_OBJECTS_H_ | 10634 #endif // V8_OBJECTS_H_ |
OLD | NEW |