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 2179 matching lines...) Loading... |
2190 Handle<Object> value); | 2190 Handle<Object> value); |
2191 | 2191 |
2192 // Sets the property value in a normalized object given (key, value, details). | 2192 // Sets the property value in a normalized object given (key, value, details). |
2193 // Handles the special representation of JS global objects. | 2193 // Handles the special representation of JS global objects. |
2194 static void SetNormalizedProperty(Handle<JSObject> object, | 2194 static void SetNormalizedProperty(Handle<JSObject> object, |
2195 Handle<Name> key, | 2195 Handle<Name> key, |
2196 Handle<Object> value, | 2196 Handle<Object> value, |
2197 PropertyDetails details); | 2197 PropertyDetails details); |
2198 | 2198 |
2199 static void OptimizeAsPrototype(Handle<JSObject> object); | 2199 static void OptimizeAsPrototype(Handle<JSObject> object); |
| 2200 static void ReoptimizeIfPrototype(Handle<JSObject> object); |
2200 | 2201 |
2201 // Retrieve interceptors. | 2202 // Retrieve interceptors. |
2202 InterceptorInfo* GetNamedInterceptor(); | 2203 InterceptorInfo* GetNamedInterceptor(); |
2203 InterceptorInfo* GetIndexedInterceptor(); | 2204 InterceptorInfo* GetIndexedInterceptor(); |
2204 | 2205 |
2205 // Used from JSReceiver. | 2206 // Used from JSReceiver. |
2206 MUST_USE_RESULT static Maybe<PropertyAttributes> | 2207 MUST_USE_RESULT static Maybe<PropertyAttributes> |
2207 GetPropertyAttributesWithInterceptor(Handle<JSObject> holder, | 2208 GetPropertyAttributesWithInterceptor(Handle<JSObject> holder, |
2208 Handle<Object> receiver, | 2209 Handle<Object> receiver, |
2209 Handle<Name> name); | 2210 Handle<Name> name); |
(...skipping 9053 matching lines...) Loading... |
11263 } else { | 11264 } else { |
11264 value &= ~(1 << bit_position); | 11265 value &= ~(1 << bit_position); |
11265 } | 11266 } |
11266 return value; | 11267 return value; |
11267 } | 11268 } |
11268 }; | 11269 }; |
11269 | 11270 |
11270 } } // namespace v8::internal | 11271 } } // namespace v8::internal |
11271 | 11272 |
11272 #endif // V8_OBJECTS_H_ | 11273 #endif // V8_OBJECTS_H_ |
OLD | NEW |