| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 6009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6020 // Update code cache. | 6020 // Update code cache. |
| 6021 static void UpdateCodeCache(Handle<Map> map, | 6021 static void UpdateCodeCache(Handle<Map> map, |
| 6022 Handle<Name> name, | 6022 Handle<Name> name, |
| 6023 Handle<Code> code); | 6023 Handle<Code> code); |
| 6024 | 6024 |
| 6025 // Extend the descriptor array of the map with the list of descriptors. | 6025 // Extend the descriptor array of the map with the list of descriptors. |
| 6026 // In case of duplicates, the latest descriptor is used. | 6026 // In case of duplicates, the latest descriptor is used. |
| 6027 static void AppendCallbackDescriptors(Handle<Map> map, | 6027 static void AppendCallbackDescriptors(Handle<Map> map, |
| 6028 Handle<Object> descriptors); | 6028 Handle<Object> descriptors); |
| 6029 | 6029 |
| 6030 static inline int SlackForArraySize(bool is_prototype_map, int old_size, | 6030 static inline int SlackForArraySize(int old_size, int size_limit); |
| 6031 int size_limit); | |
| 6032 | 6031 |
| 6033 static void EnsureDescriptorSlack(Handle<Map> map, int slack); | 6032 static void EnsureDescriptorSlack(Handle<Map> map, int slack); |
| 6034 | 6033 |
| 6035 // Returns the found code or undefined if absent. | 6034 // Returns the found code or undefined if absent. |
| 6036 Object* FindInCodeCache(Name* name, Code::Flags flags); | 6035 Object* FindInCodeCache(Name* name, Code::Flags flags); |
| 6037 | 6036 |
| 6038 // Returns the non-negative index of the code object if it is in the | 6037 // Returns the non-negative index of the code object if it is in the |
| 6039 // cache and -1 otherwise. | 6038 // cache and -1 otherwise. |
| 6040 int IndexInCodeCache(Object* name, Code* code); | 6039 int IndexInCodeCache(Object* name, Code* code); |
| 6041 | 6040 |
| (...skipping 4790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10832 } else { | 10831 } else { |
| 10833 value &= ~(1 << bit_position); | 10832 value &= ~(1 << bit_position); |
| 10834 } | 10833 } |
| 10835 return value; | 10834 return value; |
| 10836 } | 10835 } |
| 10837 }; | 10836 }; |
| 10838 | 10837 |
| 10839 } } // namespace v8::internal | 10838 } } // namespace v8::internal |
| 10840 | 10839 |
| 10841 #endif // V8_OBJECTS_H_ | 10840 #endif // V8_OBJECTS_H_ |
| OLD | NEW |