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 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 inline bool HasExternalShortElements(); | 2109 inline bool HasExternalShortElements(); |
2110 inline bool HasExternalUnsignedShortElements(); | 2110 inline bool HasExternalUnsignedShortElements(); |
2111 inline bool HasExternalIntElements(); | 2111 inline bool HasExternalIntElements(); |
2112 inline bool HasExternalUnsignedIntElements(); | 2112 inline bool HasExternalUnsignedIntElements(); |
2113 inline bool HasExternalFloatElements(); | 2113 inline bool HasExternalFloatElements(); |
2114 inline bool HasExternalDoubleElements(); | 2114 inline bool HasExternalDoubleElements(); |
2115 bool HasFastArgumentsElements(); | 2115 bool HasFastArgumentsElements(); |
2116 bool HasDictionaryArgumentsElements(); | 2116 bool HasDictionaryArgumentsElements(); |
2117 inline SeededNumberDictionary* element_dictionary(); // Gets slow elements. | 2117 inline SeededNumberDictionary* element_dictionary(); // Gets slow elements. |
2118 | 2118 |
2119 inline bool ShouldTrackAllocationInfo(); | |
2120 | |
2121 inline void set_map_and_elements( | 2119 inline void set_map_and_elements( |
2122 Map* map, | 2120 Map* map, |
2123 FixedArrayBase* value, | 2121 FixedArrayBase* value, |
2124 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | 2122 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
2125 | 2123 |
2126 // Requires: HasFastElements(). | 2124 // Requires: HasFastElements(). |
2127 static Handle<FixedArray> EnsureWritableFastElements( | 2125 static Handle<FixedArray> EnsureWritableFastElements( |
2128 Handle<JSObject> object); | 2126 Handle<JSObject> object); |
2129 MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements(); | 2127 MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements(); |
2130 | 2128 |
(...skipping 8475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10606 } else { | 10604 } else { |
10607 value &= ~(1 << bit_position); | 10605 value &= ~(1 << bit_position); |
10608 } | 10606 } |
10609 return value; | 10607 return value; |
10610 } | 10608 } |
10611 }; | 10609 }; |
10612 | 10610 |
10613 } } // namespace v8::internal | 10611 } } // namespace v8::internal |
10614 | 10612 |
10615 #endif // V8_OBJECTS_H_ | 10613 #endif // V8_OBJECTS_H_ |
OLD | NEW |