OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3744 DECL_ACCESSORS(code_cache, Object) | 3744 DECL_ACCESSORS(code_cache, Object) |
3745 | 3745 |
3746 // [prototype transitions]: cache of prototype transitions. | 3746 // [prototype transitions]: cache of prototype transitions. |
3747 // Prototype transition is a transition that happens | 3747 // Prototype transition is a transition that happens |
3748 // when we change object's prototype to a new one. | 3748 // when we change object's prototype to a new one. |
3749 // Cache format: | 3749 // Cache format: |
3750 // 0: finger - index of the first free cell in the cache | 3750 // 0: finger - index of the first free cell in the cache |
3751 // 1 + 2 * i: prototype | 3751 // 1 + 2 * i: prototype |
3752 // 2 + 2 * i: target map | 3752 // 2 + 2 * i: target map |
3753 DECL_ACCESSORS(prototype_transitions, FixedArray) | 3753 DECL_ACCESSORS(prototype_transitions, FixedArray) |
3754 inline FixedArray* unchecked_prototype_transitions(); | |
3755 | 3754 |
3756 // Lookup in the map's instance descriptors and fill out the result | 3755 // Lookup in the map's instance descriptors and fill out the result |
3757 // with the given holder if the name is found. The holder may be | 3756 // with the given holder if the name is found. The holder may be |
3758 // NULL when this function is used from the compiler. | 3757 // NULL when this function is used from the compiler. |
3759 void LookupInDescriptors(JSObject* holder, | 3758 void LookupInDescriptors(JSObject* holder, |
3760 String* name, | 3759 String* name, |
3761 LookupResult* result); | 3760 LookupResult* result); |
3762 | 3761 |
3763 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); | 3762 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); |
3764 | 3763 |
(...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6756 } else { | 6755 } else { |
6757 value &= ~(1 << bit_position); | 6756 value &= ~(1 << bit_position); |
6758 } | 6757 } |
6759 return value; | 6758 return value; |
6760 } | 6759 } |
6761 }; | 6760 }; |
6762 | 6761 |
6763 } } // namespace v8::internal | 6762 } } // namespace v8::internal |
6764 | 6763 |
6765 #endif // V8_OBJECTS_H_ | 6764 #endif // V8_OBJECTS_H_ |
OLD | NEW |