| 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 6092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6103 // Update code cache. | 6103 // Update code cache. |
| 6104 static void UpdateCodeCache(Handle<Map> map, | 6104 static void UpdateCodeCache(Handle<Map> map, |
| 6105 Handle<Name> name, | 6105 Handle<Name> name, |
| 6106 Handle<Code> code); | 6106 Handle<Code> code); |
| 6107 | 6107 |
| 6108 // Extend the descriptor array of the map with the list of descriptors. | 6108 // Extend the descriptor array of the map with the list of descriptors. |
| 6109 // In case of duplicates, the latest descriptor is used. | 6109 // In case of duplicates, the latest descriptor is used. |
| 6110 static void AppendCallbackDescriptors(Handle<Map> map, | 6110 static void AppendCallbackDescriptors(Handle<Map> map, |
| 6111 Handle<Object> descriptors); | 6111 Handle<Object> descriptors); |
| 6112 | 6112 |
| 6113 static inline int SlackForArraySize(int old_size, int size_limit); |
| 6114 |
| 6113 static void EnsureDescriptorSlack(Handle<Map> map, int slack); | 6115 static void EnsureDescriptorSlack(Handle<Map> map, int slack); |
| 6114 | 6116 |
| 6115 // Returns the found code or undefined if absent. | 6117 // Returns the found code or undefined if absent. |
| 6116 Object* FindInCodeCache(Name* name, Code::Flags flags); | 6118 Object* FindInCodeCache(Name* name, Code::Flags flags); |
| 6117 | 6119 |
| 6118 // Returns the non-negative index of the code object if it is in the | 6120 // Returns the non-negative index of the code object if it is in the |
| 6119 // cache and -1 otherwise. | 6121 // cache and -1 otherwise. |
| 6120 int IndexInCodeCache(Object* name, Code* code); | 6122 int IndexInCodeCache(Object* name, Code* code); |
| 6121 | 6123 |
| 6122 // Removes a code object from the code cache at the given index. | 6124 // Removes a code object from the code cache at the given index. |
| (...skipping 4787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10910 } else { | 10912 } else { |
| 10911 value &= ~(1 << bit_position); | 10913 value &= ~(1 << bit_position); |
| 10912 } | 10914 } |
| 10913 return value; | 10915 return value; |
| 10914 } | 10916 } |
| 10915 }; | 10917 }; |
| 10916 | 10918 |
| 10917 } } // namespace v8::internal | 10919 } } // namespace v8::internal |
| 10918 | 10920 |
| 10919 #endif // V8_OBJECTS_H_ | 10921 #endif // V8_OBJECTS_H_ |
| OLD | NEW |