| 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 5500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5511 inline void set_inobject_properties_or_constructor_function_index(int value); | 5511 inline void set_inobject_properties_or_constructor_function_index(int value); |
| 5512 // Count of properties allocated in the object (JSObject only). | 5512 // Count of properties allocated in the object (JSObject only). |
| 5513 inline int GetInObjectProperties(); | 5513 inline int GetInObjectProperties(); |
| 5514 inline void SetInObjectProperties(int value); | 5514 inline void SetInObjectProperties(int value); |
| 5515 // Index of the constructor function in the native context (primitives only), | 5515 // Index of the constructor function in the native context (primitives only), |
| 5516 // or the special sentinel value to indicate that there is no object wrapper | 5516 // or the special sentinel value to indicate that there is no object wrapper |
| 5517 // for the primitive (i.e. in case of null or undefined). | 5517 // for the primitive (i.e. in case of null or undefined). |
| 5518 static const int kNoConstructorFunctionIndex = 0; | 5518 static const int kNoConstructorFunctionIndex = 0; |
| 5519 inline int GetConstructorFunctionIndex(); | 5519 inline int GetConstructorFunctionIndex(); |
| 5520 inline void SetConstructorFunctionIndex(int value); | 5520 inline void SetConstructorFunctionIndex(int value); |
| 5521 static MaybeHandle<JSFunction> GetConstructorFunction( |
| 5522 Handle<Map> map, Handle<Context> native_context); |
| 5521 | 5523 |
| 5522 // Instance type. | 5524 // Instance type. |
| 5523 inline InstanceType instance_type(); | 5525 inline InstanceType instance_type(); |
| 5524 inline void set_instance_type(InstanceType value); | 5526 inline void set_instance_type(InstanceType value); |
| 5525 | 5527 |
| 5526 // Tells how many unused property fields are available in the | 5528 // Tells how many unused property fields are available in the |
| 5527 // instance (only used for JSObject in fast mode). | 5529 // instance (only used for JSObject in fast mode). |
| 5528 inline int unused_property_fields(); | 5530 inline int unused_property_fields(); |
| 5529 inline void set_unused_property_fields(int value); | 5531 inline void set_unused_property_fields(int value); |
| 5530 | 5532 |
| (...skipping 5307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10838 // (elements + properties) in the current level. | 10840 // (elements + properties) in the current level. |
| 10839 int levelLength_ = 0; | 10841 int levelLength_ = 0; |
| 10840 | 10842 |
| 10841 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10843 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10842 }; | 10844 }; |
| 10843 | 10845 |
| 10844 } // NOLINT, false-positive due to second-order macros. | 10846 } // NOLINT, false-positive due to second-order macros. |
| 10845 } // NOLINT, false-positive due to second-order macros. | 10847 } // NOLINT, false-positive due to second-order macros. |
| 10846 | 10848 |
| 10847 #endif // V8_OBJECTS_H_ | 10849 #endif // V8_OBJECTS_H_ |
| OLD | NEW |