| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1876 // or null), its enumeration index is kept as is. | 1876 // or null), its enumeration index is kept as is. |
| 1877 // If adding a real property, map transitions must be removed. If adding | 1877 // If adding a real property, map transitions must be removed. If adding |
| 1878 // a transition, they must not be removed. All null descriptors are removed. | 1878 // a transition, they must not be removed. All null descriptors are removed. |
| 1879 Object* CopyInsert(Descriptor* descriptor, TransitionFlag transition_flag); | 1879 Object* CopyInsert(Descriptor* descriptor, TransitionFlag transition_flag); |
| 1880 | 1880 |
| 1881 // Remove all transitions. Return a copy of the array with all transitions | 1881 // Remove all transitions. Return a copy of the array with all transitions |
| 1882 // removed, or a Failure object if the new array could not be allocated. | 1882 // removed, or a Failure object if the new array could not be allocated. |
| 1883 Object* RemoveTransitions(); | 1883 Object* RemoveTransitions(); |
| 1884 | 1884 |
| 1885 // Sort the instance descriptors by the hash codes of their keys. | 1885 // Sort the instance descriptors by the hash codes of their keys. |
| 1886 // Does not check for duplicates. |
| 1887 void SortUnchecked(); |
| 1888 |
| 1889 // Sort the instance descriptors by the hash codes of their keys. |
| 1890 // Checks the result for duplicates. |
| 1886 void Sort(); | 1891 void Sort(); |
| 1887 | 1892 |
| 1888 // Search the instance descriptors for given name. | 1893 // Search the instance descriptors for given name. |
| 1889 inline int Search(String* name); | 1894 inline int Search(String* name); |
| 1890 | 1895 |
| 1891 // As the above, but uses DescriptorLookupCache and updates it when | 1896 // As the above, but uses DescriptorLookupCache and updates it when |
| 1892 // necessary. | 1897 // necessary. |
| 1893 inline int SearchWithCache(String* name); | 1898 inline int SearchWithCache(String* name); |
| 1894 | 1899 |
| 1895 // Tells whether the name is present int the array. | 1900 // Tells whether the name is present int the array. |
| (...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3527 // Age is reset when GC notices that the code object is referenced | 3532 // Age is reset when GC notices that the code object is referenced |
| 3528 // from the stack or compilation cache. | 3533 // from the stack or compilation cache. |
| 3529 inline int code_age(); | 3534 inline int code_age(); |
| 3530 inline void set_code_age(int age); | 3535 inline void set_code_age(int age); |
| 3531 | 3536 |
| 3532 | 3537 |
| 3533 // Check whether a inlined constructor can be generated with the given | 3538 // Check whether a inlined constructor can be generated with the given |
| 3534 // prototype. | 3539 // prototype. |
| 3535 bool CanGenerateInlineConstructor(Object* prototype); | 3540 bool CanGenerateInlineConstructor(Object* prototype); |
| 3536 | 3541 |
| 3542 // Prevents further attempts to generate inline constructors. |
| 3543 // To be called if generation failed for any reason. |
| 3544 void ForbidInlineConstructor(); |
| 3545 |
| 3537 // For functions which only contains this property assignments this provides | 3546 // For functions which only contains this property assignments this provides |
| 3538 // access to the names for the properties assigned. | 3547 // access to the names for the properties assigned. |
| 3539 DECL_ACCESSORS(this_property_assignments, Object) | 3548 DECL_ACCESSORS(this_property_assignments, Object) |
| 3540 inline int this_property_assignments_count(); | 3549 inline int this_property_assignments_count(); |
| 3541 inline void set_this_property_assignments_count(int value); | 3550 inline void set_this_property_assignments_count(int value); |
| 3542 String* GetThisPropertyAssignmentName(int index); | 3551 String* GetThisPropertyAssignmentName(int index); |
| 3543 bool IsThisPropertyAssignmentArgument(int index); | 3552 bool IsThisPropertyAssignmentArgument(int index); |
| 3544 int GetThisPropertyAssignmentArgument(int index); | 3553 int GetThisPropertyAssignmentArgument(int index); |
| 3545 Object* GetThisPropertyAssignmentConstant(int index); | 3554 Object* GetThisPropertyAssignmentConstant(int index); |
| 3546 | 3555 |
| (...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5547 } else { | 5556 } else { |
| 5548 value &= ~(1 << bit_position); | 5557 value &= ~(1 << bit_position); |
| 5549 } | 5558 } |
| 5550 return value; | 5559 return value; |
| 5551 } | 5560 } |
| 5552 }; | 5561 }; |
| 5553 | 5562 |
| 5554 } } // namespace v8::internal | 5563 } } // namespace v8::internal |
| 5555 | 5564 |
| 5556 #endif // V8_OBJECTS_H_ | 5565 #endif // V8_OBJECTS_H_ |
| OLD | NEW |