| 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 7303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7314 | 7314 |
| 7315 inline BindingsArray* function_bindings(); | 7315 inline BindingsArray* function_bindings(); |
| 7316 inline void set_function_bindings(BindingsArray* bindings); | 7316 inline void set_function_bindings(BindingsArray* bindings); |
| 7317 | 7317 |
| 7318 // The initial map for an object created by this constructor. | 7318 // The initial map for an object created by this constructor. |
| 7319 inline Map* initial_map(); | 7319 inline Map* initial_map(); |
| 7320 static void SetInitialMap(Handle<JSFunction> function, Handle<Map> map, | 7320 static void SetInitialMap(Handle<JSFunction> function, Handle<Map> map, |
| 7321 Handle<Object> prototype); | 7321 Handle<Object> prototype); |
| 7322 inline bool has_initial_map(); | 7322 inline bool has_initial_map(); |
| 7323 static void EnsureHasInitialMap(Handle<JSFunction> function); | 7323 static void EnsureHasInitialMap(Handle<JSFunction> function); |
| 7324 // Ensures that the |original_constructor| has correct initial map and | 7324 // Ensures that the |new_target| has correct initial map and |
| 7325 // returns it. If the |original_constructor| is not a subclass constructor | 7325 // returns it. If the |new_target| is not a subclass constructor |
| 7326 // its initial map is left unmodified. | 7326 // its initial map is left unmodified. |
| 7327 static Handle<Map> EnsureDerivedHasInitialMap( | 7327 static Handle<Map> EnsureDerivedHasInitialMap(Handle<JSFunction> new_target, |
| 7328 Handle<JSFunction> original_constructor, Handle<JSFunction> constructor); | 7328 Handle<JSFunction> constructor); |
| 7329 | 7329 |
| 7330 // Get and set the prototype property on a JSFunction. If the | 7330 // Get and set the prototype property on a JSFunction. If the |
| 7331 // function has an initial map the prototype is set on the initial | 7331 // function has an initial map the prototype is set on the initial |
| 7332 // map. Otherwise, the prototype is put in the initial map field | 7332 // map. Otherwise, the prototype is put in the initial map field |
| 7333 // until an initial map is needed. | 7333 // until an initial map is needed. |
| 7334 inline bool has_prototype(); | 7334 inline bool has_prototype(); |
| 7335 inline bool has_instance_prototype(); | 7335 inline bool has_instance_prototype(); |
| 7336 inline Object* prototype(); | 7336 inline Object* prototype(); |
| 7337 inline Object* instance_prototype(); | 7337 inline Object* instance_prototype(); |
| 7338 static void SetPrototype(Handle<JSFunction> function, | 7338 static void SetPrototype(Handle<JSFunction> function, |
| (...skipping 3367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10706 } | 10706 } |
| 10707 return value; | 10707 return value; |
| 10708 } | 10708 } |
| 10709 }; | 10709 }; |
| 10710 | 10710 |
| 10711 | 10711 |
| 10712 } // NOLINT, false-positive due to second-order macros. | 10712 } // NOLINT, false-positive due to second-order macros. |
| 10713 } // NOLINT, false-positive due to second-order macros. | 10713 } // NOLINT, false-positive due to second-order macros. |
| 10714 | 10714 |
| 10715 #endif // V8_OBJECTS_H_ | 10715 #endif // V8_OBJECTS_H_ |
| OLD | NEW |