OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // Indicates whether a get method should implicitly create the object looked up. | 247 // Indicates whether a get method should implicitly create the object looked up. |
248 enum CreationFlag { | 248 enum CreationFlag { |
249 ALLOW_CREATION, | 249 ALLOW_CREATION, |
250 OMIT_CREATION | 250 OMIT_CREATION |
251 }; | 251 }; |
252 | 252 |
253 | 253 |
254 // Indicates whether transitions can be added to a source map or not. | 254 // Indicates whether transitions can be added to a source map or not. |
255 enum TransitionFlag { | 255 enum TransitionFlag { |
256 INSERT_TRANSITION, | 256 INSERT_TRANSITION, |
| 257 OMIT_TRANSITION_KEEP_REPRESENTATIONS, |
257 OMIT_TRANSITION | 258 OMIT_TRANSITION |
258 }; | 259 }; |
259 | 260 |
260 | 261 |
261 enum DebugExtraICState { | 262 enum DebugExtraICState { |
262 DEBUG_BREAK, | 263 DEBUG_BREAK, |
263 DEBUG_PREPARE_STEP_IN | 264 DEBUG_PREPARE_STEP_IN |
264 }; | 265 }; |
265 | 266 |
266 | 267 |
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2193 int transition_index, | 2194 int transition_index, |
2194 Name* name, | 2195 Name* name, |
2195 Object* new_value, | 2196 Object* new_value, |
2196 PropertyAttributes attributes); | 2197 PropertyAttributes attributes); |
2197 | 2198 |
2198 // Converts a descriptor of any other type to a real field, backed by the | 2199 // Converts a descriptor of any other type to a real field, backed by the |
2199 // properties array. | 2200 // properties array. |
2200 MUST_USE_RESULT MaybeObject* ConvertDescriptorToField( | 2201 MUST_USE_RESULT MaybeObject* ConvertDescriptorToField( |
2201 Name* name, | 2202 Name* name, |
2202 Object* new_value, | 2203 Object* new_value, |
2203 PropertyAttributes attributes); | 2204 PropertyAttributes attributes, |
| 2205 TransitionFlag flag = OMIT_TRANSITION); |
2204 | 2206 |
2205 MUST_USE_RESULT MaybeObject* MigrateToMap(Map* new_map); | 2207 MUST_USE_RESULT MaybeObject* MigrateToMap(Map* new_map); |
2206 MUST_USE_RESULT MaybeObject* GeneralizeFieldRepresentation( | 2208 MUST_USE_RESULT MaybeObject* GeneralizeFieldRepresentation( |
2207 int modify_index, | 2209 int modify_index, |
2208 Representation new_representation); | 2210 Representation new_representation); |
2209 | 2211 |
2210 // Add a property to a fast-case object. | 2212 // Add a property to a fast-case object. |
2211 MUST_USE_RESULT MaybeObject* AddFastProperty( | 2213 MUST_USE_RESULT MaybeObject* AddFastProperty( |
2212 Name* name, | 2214 Name* name, |
2213 Object* value, | 2215 Object* value, |
(...skipping 7393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9607 } else { | 9609 } else { |
9608 value &= ~(1 << bit_position); | 9610 value &= ~(1 << bit_position); |
9609 } | 9611 } |
9610 return value; | 9612 return value; |
9611 } | 9613 } |
9612 }; | 9614 }; |
9613 | 9615 |
9614 } } // namespace v8::internal | 9616 } } // namespace v8::internal |
9615 | 9617 |
9616 #endif // V8_OBJECTS_H_ | 9618 #endif // V8_OBJECTS_H_ |
OLD | NEW |