| 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 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 inline AccessorDescriptor* GetCallbacks(int descriptor_number); | 2537 inline AccessorDescriptor* GetCallbacks(int descriptor_number); |
| 2538 | 2538 |
| 2539 // Accessor for complete descriptor. | 2539 // Accessor for complete descriptor. |
| 2540 inline void Get(int descriptor_number, Descriptor* desc); | 2540 inline void Get(int descriptor_number, Descriptor* desc); |
| 2541 inline void Set(int descriptor_number, | 2541 inline void Set(int descriptor_number, |
| 2542 Descriptor* desc, | 2542 Descriptor* desc, |
| 2543 const WhitenessWitness&); | 2543 const WhitenessWitness&); |
| 2544 // Append automatically sets the enumeration index. This should only be used | 2544 // Append automatically sets the enumeration index. This should only be used |
| 2545 // to add descriptors in bulk at the end, followed by sorting the descriptor | 2545 // to add descriptors in bulk at the end, followed by sorting the descriptor |
| 2546 // array. | 2546 // array. |
| 2547 inline void Append(Descriptor* desc, | 2547 inline int Append(Descriptor* desc, |
| 2548 const WhitenessWitness&); | 2548 const WhitenessWitness&, |
| 2549 int number_of_set_descriptors); |
| 2549 | 2550 |
| 2550 // Transfer a complete descriptor from the src descriptor array to this | 2551 // Transfer a complete descriptor from the src descriptor array to this |
| 2551 // descriptor array. | 2552 // descriptor array. |
| 2552 void CopyFrom(int dst_index, | 2553 void CopyFrom(int dst_index, |
| 2553 DescriptorArray* src, | 2554 DescriptorArray* src, |
| 2554 int src_index, | 2555 int src_index, |
| 2555 const WhitenessWitness&); | 2556 const WhitenessWitness&); |
| 2556 | 2557 |
| 2557 // Copy the descriptor array, inserting new descriptor. Its enumeration index | 2558 // Copy the descriptor array, inserting new descriptor. Its enumeration index |
| 2558 // is automatically set to the size of the descriptor array to which it was | 2559 // is automatically set to the size of the descriptor array to which it was |
| (...skipping 2359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4918 TransitionFlag flag); | 4919 TransitionFlag flag); |
| 4919 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor(Descriptor* descriptor, | 4920 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor(Descriptor* descriptor, |
| 4920 int index, | 4921 int index, |
| 4921 TransitionFlag flag); | 4922 TransitionFlag flag); |
| 4922 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, | 4923 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, |
| 4923 TransitionFlag flag); | 4924 TransitionFlag flag); |
| 4924 | 4925 |
| 4925 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, | 4926 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, |
| 4926 NormalizedMapSharingMode sharing); | 4927 NormalizedMapSharingMode sharing); |
| 4927 | 4928 |
| 4929 inline void AppendDescriptor(Descriptor* desc, |
| 4930 const DescriptorArray::WhitenessWitness&); |
| 4931 |
| 4928 // Returns a copy of the map, with all transitions dropped from the | 4932 // Returns a copy of the map, with all transitions dropped from the |
| 4929 // instance descriptors. | 4933 // instance descriptors. |
| 4930 MUST_USE_RESULT MaybeObject* Copy(DescriptorArray::SharedMode shared_mode); | 4934 MUST_USE_RESULT MaybeObject* Copy(DescriptorArray::SharedMode shared_mode); |
| 4931 | 4935 |
| 4932 // Returns the property index for name (only valid for FAST MODE). | 4936 // Returns the property index for name (only valid for FAST MODE). |
| 4933 int PropertyIndexFor(String* name); | 4937 int PropertyIndexFor(String* name); |
| 4934 | 4938 |
| 4935 // Returns the next free property index (only valid for FAST MODE). | 4939 // Returns the next free property index (only valid for FAST MODE). |
| 4936 int NextFreePropertyIndex(); | 4940 int NextFreePropertyIndex(); |
| 4937 | 4941 |
| (...skipping 3946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8884 } else { | 8888 } else { |
| 8885 value &= ~(1 << bit_position); | 8889 value &= ~(1 << bit_position); |
| 8886 } | 8890 } |
| 8887 return value; | 8891 return value; |
| 8888 } | 8892 } |
| 8889 }; | 8893 }; |
| 8890 | 8894 |
| 8891 } } // namespace v8::internal | 8895 } } // namespace v8::internal |
| 8892 | 8896 |
| 8893 #endif // V8_OBJECTS_H_ | 8897 #endif // V8_OBJECTS_H_ |
| OLD | NEW |