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 6380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6391 // Returns a non-deprecated version of the input. If the input was not | 6391 // Returns a non-deprecated version of the input. If the input was not |
6392 // deprecated, it is directly returned. Otherwise, the non-deprecated version | 6392 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
6393 // is found by re-transitioning from the root of the transition tree using the | 6393 // is found by re-transitioning from the root of the transition tree using the |
6394 // descriptor array of the map. Returns NULL if no updated map is found. | 6394 // descriptor array of the map. Returns NULL if no updated map is found. |
6395 // This method also applies any pending migrations along the prototype chain. | 6395 // This method also applies any pending migrations along the prototype chain. |
6396 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map); | 6396 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map); |
6397 // Same as above, but does not touch the prototype chain. | 6397 // Same as above, but does not touch the prototype chain. |
6398 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map); | 6398 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map); |
6399 | 6399 |
6400 static Handle<Map> CopyDropDescriptors(Handle<Map> map); | 6400 static Handle<Map> CopyDropDescriptors(Handle<Map> map); |
6401 static Handle<Map> CopyReplaceDescriptors( | |
6402 Handle<Map> map, | |
6403 Handle<DescriptorArray> descriptors, | |
6404 TransitionFlag flag, | |
6405 Handle<Name> name, | |
6406 SimpleTransitionFlag simple_flag = FULL_TRANSITION); | |
6407 static Handle<Map> CopyReplaceDescriptors( | |
6408 Handle<Map> map, | |
6409 Handle<DescriptorArray> descriptors, | |
6410 TransitionFlag flag, | |
6411 SimpleTransitionFlag simple_flag = FULL_TRANSITION); | |
6412 static Handle<Map> CopyInsertDescriptor(Handle<Map> map, | 6401 static Handle<Map> CopyInsertDescriptor(Handle<Map> map, |
6413 Descriptor* descriptor, | 6402 Descriptor* descriptor, |
6414 TransitionFlag flag); | 6403 TransitionFlag flag); |
6415 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map, | 6404 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map, |
6416 Handle<DescriptorArray> descriptors, | 6405 Handle<DescriptorArray> descriptors, |
6417 Descriptor* descriptor, | 6406 Descriptor* descriptor, |
6418 int index, | 6407 int index, |
6419 TransitionFlag flag); | 6408 TransitionFlag flag); |
6420 | 6409 |
6421 MUST_USE_RESULT static MaybeHandle<Map> CopyWithField( | 6410 MUST_USE_RESULT static MaybeHandle<Map> CopyWithField( |
(...skipping 12 matching lines...) Expand all Loading... |
6434 TransitionFlag flag); | 6423 TransitionFlag flag); |
6435 | 6424 |
6436 static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind); | 6425 static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind); |
6437 | 6426 |
6438 static Handle<Map> CopyAsElementsKind(Handle<Map> map, | 6427 static Handle<Map> CopyAsElementsKind(Handle<Map> map, |
6439 ElementsKind kind, | 6428 ElementsKind kind, |
6440 TransitionFlag flag); | 6429 TransitionFlag flag); |
6441 | 6430 |
6442 static Handle<Map> CopyForObserved(Handle<Map> map); | 6431 static Handle<Map> CopyForObserved(Handle<Map> map); |
6443 | 6432 |
| 6433 static Handle<Map> CopyForFreeze(Handle<Map> map); |
| 6434 |
6444 static Handle<Map> CopyNormalized(Handle<Map> map, | 6435 static Handle<Map> CopyNormalized(Handle<Map> map, |
6445 PropertyNormalizationMode mode, | 6436 PropertyNormalizationMode mode, |
6446 NormalizedMapSharingMode sharing); | 6437 NormalizedMapSharingMode sharing); |
6447 | 6438 |
6448 inline void AppendDescriptor(Descriptor* desc); | 6439 inline void AppendDescriptor(Descriptor* desc); |
6449 | 6440 |
6450 // Returns a copy of the map, with all transitions dropped from the | 6441 // Returns a copy of the map, with all transitions dropped from the |
6451 // instance descriptors. | 6442 // instance descriptors. |
6452 static Handle<Map> Copy(Handle<Map> map); | 6443 static Handle<Map> Copy(Handle<Map> map); |
6453 static Handle<Map> Create(Handle<JSFunction> constructor, | 6444 static Handle<Map> Create(Handle<JSFunction> constructor, |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6679 static Handle<Map> ShareDescriptor(Handle<Map> map, | 6670 static Handle<Map> ShareDescriptor(Handle<Map> map, |
6680 Handle<DescriptorArray> descriptors, | 6671 Handle<DescriptorArray> descriptors, |
6681 Descriptor* descriptor); | 6672 Descriptor* descriptor); |
6682 static Handle<Map> CopyInstallDescriptors( | 6673 static Handle<Map> CopyInstallDescriptors( |
6683 Handle<Map> map, | 6674 Handle<Map> map, |
6684 int new_descriptor, | 6675 int new_descriptor, |
6685 Handle<DescriptorArray> descriptors); | 6676 Handle<DescriptorArray> descriptors); |
6686 static Handle<Map> CopyAddDescriptor(Handle<Map> map, | 6677 static Handle<Map> CopyAddDescriptor(Handle<Map> map, |
6687 Descriptor* descriptor, | 6678 Descriptor* descriptor, |
6688 TransitionFlag flag); | 6679 TransitionFlag flag); |
| 6680 static Handle<Map> CopyReplaceDescriptors( |
| 6681 Handle<Map> map, |
| 6682 Handle<DescriptorArray> descriptors, |
| 6683 TransitionFlag flag, |
| 6684 MaybeHandle<Name> maybe_name, |
| 6685 SimpleTransitionFlag simple_flag = FULL_TRANSITION); |
6689 | 6686 |
6690 // Zaps the contents of backing data structures. Note that the | 6687 // Zaps the contents of backing data structures. Note that the |
6691 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects | 6688 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects |
6692 // holding weak references when incremental marking is used, because it also | 6689 // holding weak references when incremental marking is used, because it also |
6693 // iterates over objects that are otherwise unreachable. | 6690 // iterates over objects that are otherwise unreachable. |
6694 // In general we only want to call these functions in release mode when | 6691 // In general we only want to call these functions in release mode when |
6695 // heap verification is turned on. | 6692 // heap verification is turned on. |
6696 void ZapPrototypeTransitions(); | 6693 void ZapPrototypeTransitions(); |
6697 void ZapTransitions(); | 6694 void ZapTransitions(); |
6698 | 6695 |
(...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11047 } else { | 11044 } else { |
11048 value &= ~(1 << bit_position); | 11045 value &= ~(1 << bit_position); |
11049 } | 11046 } |
11050 return value; | 11047 return value; |
11051 } | 11048 } |
11052 }; | 11049 }; |
11053 | 11050 |
11054 } } // namespace v8::internal | 11051 } } // namespace v8::internal |
11055 | 11052 |
11056 #endif // V8_OBJECTS_H_ | 11053 #endif // V8_OBJECTS_H_ |
OLD | NEW |