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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2150 // lowest upper bound of all known representations for that field. | 2150 // lowest upper bound of all known representations for that field. |
2151 static void MigrateInstance(Handle<JSObject> instance); | 2151 static void MigrateInstance(Handle<JSObject> instance); |
2152 | 2152 |
2153 // Migrates the given object only if the target map is already available, | 2153 // Migrates the given object only if the target map is already available, |
2154 // or returns false if such a map is not yet available. | 2154 // or returns false if such a map is not yet available. |
2155 static bool TryMigrateInstance(Handle<JSObject> instance); | 2155 static bool TryMigrateInstance(Handle<JSObject> instance); |
2156 | 2156 |
2157 // Retrieve a value in a normalized object given a lookup result. | 2157 // Retrieve a value in a normalized object given a lookup result. |
2158 // Handles the special representation of JS global objects. | 2158 // Handles the special representation of JS global objects. |
2159 Object* GetNormalizedProperty(const LookupResult* result); | 2159 Object* GetNormalizedProperty(const LookupResult* result); |
| 2160 static Handle<Object> GetNormalizedProperty(Handle<JSObject> object, |
| 2161 const LookupResult* result); |
2160 | 2162 |
2161 // Sets the property value in a normalized object given (key, value, details). | 2163 // Sets the property value in a normalized object given (key, value, details). |
2162 // Handles the special representation of JS global objects. | 2164 // Handles the special representation of JS global objects. |
2163 static void SetNormalizedProperty(Handle<JSObject> object, | 2165 static void SetNormalizedProperty(Handle<JSObject> object, |
2164 Handle<Name> key, | 2166 Handle<Name> key, |
2165 Handle<Object> value, | 2167 Handle<Object> value, |
2166 PropertyDetails details); | 2168 PropertyDetails details); |
2167 | 2169 |
2168 static void OptimizeAsPrototype(Handle<JSObject> object, | 2170 static void OptimizeAsPrototype(Handle<JSObject> object, |
2169 PrototypeOptimizationMode mode); | 2171 PrototypeOptimizationMode mode); |
(...skipping 9039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11209 } else { | 11211 } else { |
11210 value &= ~(1 << bit_position); | 11212 value &= ~(1 << bit_position); |
11211 } | 11213 } |
11212 return value; | 11214 return value; |
11213 } | 11215 } |
11214 }; | 11216 }; |
11215 | 11217 |
11216 } } // namespace v8::internal | 11218 } } // namespace v8::internal |
11217 | 11219 |
11218 #endif // V8_OBJECTS_H_ | 11220 #endif // V8_OBJECTS_H_ |
OLD | NEW |