| 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 3096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3107 // drive optimization. | 3107 // drive optimization. |
| 3108 inline int compiler_hints(); | 3108 inline int compiler_hints(); |
| 3109 inline void set_compiler_hints(int value); | 3109 inline void set_compiler_hints(int value); |
| 3110 | 3110 |
| 3111 // Add information on assignments of the form this.x = ...; | 3111 // Add information on assignments of the form this.x = ...; |
| 3112 void SetThisPropertyAssignmentsInfo( | 3112 void SetThisPropertyAssignmentsInfo( |
| 3113 bool has_only_this_property_assignments, | 3113 bool has_only_this_property_assignments, |
| 3114 bool has_only_simple_this_property_assignments, | 3114 bool has_only_simple_this_property_assignments, |
| 3115 FixedArray* this_property_assignments); | 3115 FixedArray* this_property_assignments); |
| 3116 | 3116 |
| 3117 // Clear information on assignments of the form this.x = ...; |
| 3118 void ClearThisPropertyAssignmentsInfo(); |
| 3119 |
| 3117 // Indicate that this function only consists of assignments of the form | 3120 // Indicate that this function only consists of assignments of the form |
| 3118 // this.x = ...;. | 3121 // this.x = ...;. |
| 3119 inline bool has_only_this_property_assignments(); | 3122 inline bool has_only_this_property_assignments(); |
| 3120 | 3123 |
| 3121 // Indicate that this function only consists of assignments of the form | 3124 // Indicate that this function only consists of assignments of the form |
| 3122 // this.x = y; where y is either a constant or refers to an argument. | 3125 // this.x = y; where y is either a constant or refers to an argument. |
| 3123 inline bool has_only_simple_this_property_assignments(); | 3126 inline bool has_only_simple_this_property_assignments(); |
| 3124 | 3127 |
| 3125 // For functions which only contains this property assignments this provides | 3128 // For functions which only contains this property assignments this provides |
| 3126 // access to the names for the properties assigned. | 3129 // access to the names for the properties assigned. |
| 3127 DECL_ACCESSORS(this_property_assignments, Object) | 3130 DECL_ACCESSORS(this_property_assignments, Object) |
| 3128 inline int this_property_assignments_count(); | 3131 inline int this_property_assignments_count(); |
| 3129 inline void set_this_property_assignments_count(int value); | 3132 inline void set_this_property_assignments_count(int value); |
| 3130 String* GetThisPropertyAssignmentName(int index); | 3133 String* GetThisPropertyAssignmentName(int index); |
| 3134 bool IsThisPropertyAssignmentArgument(int index); |
| 3135 int GetThisPropertyAssignmentArgument(int index); |
| 3136 Object* GetThisPropertyAssignmentConstant(int index); |
| 3131 | 3137 |
| 3132 // [source code]: Source code for the function. | 3138 // [source code]: Source code for the function. |
| 3133 bool HasSourceCode(); | 3139 bool HasSourceCode(); |
| 3134 Object* GetSourceCode(); | 3140 Object* GetSourceCode(); |
| 3135 | 3141 |
| 3136 // Calculate the instance size. | 3142 // Calculate the instance size. |
| 3137 int CalculateInstanceSize(); | 3143 int CalculateInstanceSize(); |
| 3138 | 3144 |
| 3139 // Calculate the number of in-object properties. | 3145 // Calculate the number of in-object properties. |
| 3140 int CalculateInObjectProperties(); | 3146 int CalculateInObjectProperties(); |
| (...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4847 } else { | 4853 } else { |
| 4848 value &= ~(1 << bit_position); | 4854 value &= ~(1 << bit_position); |
| 4849 } | 4855 } |
| 4850 return value; | 4856 return value; |
| 4851 } | 4857 } |
| 4852 }; | 4858 }; |
| 4853 | 4859 |
| 4854 } } // namespace v8::internal | 4860 } } // namespace v8::internal |
| 4855 | 4861 |
| 4856 #endif // V8_OBJECTS_H_ | 4862 #endif // V8_OBJECTS_H_ |
| OLD | NEW |