Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/objects.h

Issue 239203002: Move CopyReplaceDescriptors to private (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6397 matching lines...) Expand 10 before | Expand all | Expand 10 after
6408 // Returns a non-deprecated version of the input. If the input was not 6408 // Returns a non-deprecated version of the input. If the input was not
6409 // deprecated, it is directly returned. Otherwise, the non-deprecated version 6409 // deprecated, it is directly returned. Otherwise, the non-deprecated version
6410 // is found by re-transitioning from the root of the transition tree using the 6410 // is found by re-transitioning from the root of the transition tree using the
6411 // descriptor array of the map. Returns NULL if no updated map is found. 6411 // descriptor array of the map. Returns NULL if no updated map is found.
6412 // This method also applies any pending migrations along the prototype chain. 6412 // This method also applies any pending migrations along the prototype chain.
6413 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map); 6413 static Handle<Map> CurrentMapForDeprecated(Handle<Map> map);
6414 // Same as above, but does not touch the prototype chain. 6414 // Same as above, but does not touch the prototype chain.
6415 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map); 6415 static Handle<Map> CurrentMapForDeprecatedInternal(Handle<Map> map);
6416 6416
6417 static Handle<Map> CopyDropDescriptors(Handle<Map> map); 6417 static Handle<Map> CopyDropDescriptors(Handle<Map> map);
6418 static Handle<Map> CopyReplaceDescriptors(
6419 Handle<Map> map,
6420 Handle<DescriptorArray> descriptors,
6421 TransitionFlag flag,
6422 Handle<Name> name,
6423 SimpleTransitionFlag simple_flag = FULL_TRANSITION);
6424 static Handle<Map> CopyReplaceDescriptors(
6425 Handle<Map> map,
6426 Handle<DescriptorArray> descriptors,
6427 TransitionFlag flag,
6428 SimpleTransitionFlag simple_flag = FULL_TRANSITION);
6429 static Handle<Map> CopyInsertDescriptor(Handle<Map> map, 6418 static Handle<Map> CopyInsertDescriptor(Handle<Map> map,
6430 Descriptor* descriptor, 6419 Descriptor* descriptor,
6431 TransitionFlag flag); 6420 TransitionFlag flag);
6432 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map, 6421 static Handle<Map> CopyReplaceDescriptor(Handle<Map> map,
6433 Handle<DescriptorArray> descriptors, 6422 Handle<DescriptorArray> descriptors,
6434 Descriptor* descriptor, 6423 Descriptor* descriptor,
6435 int index, 6424 int index,
6436 TransitionFlag flag); 6425 TransitionFlag flag);
6437 6426
6438 static Handle<Map> CopyWithField(Handle<Map> map, 6427 static Handle<Map> CopyWithField(Handle<Map> map,
(...skipping 10 matching lines...) Expand all
6449 TransitionFlag flag); 6438 TransitionFlag flag);
6450 6439
6451 static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind); 6440 static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind);
6452 6441
6453 static Handle<Map> CopyAsElementsKind(Handle<Map> map, 6442 static Handle<Map> CopyAsElementsKind(Handle<Map> map,
6454 ElementsKind kind, 6443 ElementsKind kind,
6455 TransitionFlag flag); 6444 TransitionFlag flag);
6456 6445
6457 static Handle<Map> CopyForObserved(Handle<Map> map); 6446 static Handle<Map> CopyForObserved(Handle<Map> map);
6458 6447
6448 static Handle<Map> CopyForFreeze(Handle<Map> map);
6449
6459 static Handle<Map> CopyNormalized(Handle<Map> map, 6450 static Handle<Map> CopyNormalized(Handle<Map> map,
6460 PropertyNormalizationMode mode, 6451 PropertyNormalizationMode mode,
6461 NormalizedMapSharingMode sharing); 6452 NormalizedMapSharingMode sharing);
6462 6453
6463 inline void AppendDescriptor(Descriptor* desc); 6454 inline void AppendDescriptor(Descriptor* desc);
6464 6455
6465 // Returns a copy of the map, with all transitions dropped from the 6456 // Returns a copy of the map, with all transitions dropped from the
6466 // instance descriptors. 6457 // instance descriptors.
6467 static Handle<Map> Copy(Handle<Map> map); 6458 static Handle<Map> Copy(Handle<Map> map);
6468 static Handle<Map> Create(Handle<JSFunction> constructor, 6459 static Handle<Map> Create(Handle<JSFunction> constructor,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
6694 static Handle<Map> ShareDescriptor(Handle<Map> map, 6685 static Handle<Map> ShareDescriptor(Handle<Map> map,
6695 Handle<DescriptorArray> descriptors, 6686 Handle<DescriptorArray> descriptors,
6696 Descriptor* descriptor); 6687 Descriptor* descriptor);
6697 static Handle<Map> CopyInstallDescriptors( 6688 static Handle<Map> CopyInstallDescriptors(
6698 Handle<Map> map, 6689 Handle<Map> map,
6699 int new_descriptor, 6690 int new_descriptor,
6700 Handle<DescriptorArray> descriptors); 6691 Handle<DescriptorArray> descriptors);
6701 static Handle<Map> CopyAddDescriptor(Handle<Map> map, 6692 static Handle<Map> CopyAddDescriptor(Handle<Map> map,
6702 Descriptor* descriptor, 6693 Descriptor* descriptor,
6703 TransitionFlag flag); 6694 TransitionFlag flag);
6695 static Handle<Map> CopyReplaceDescriptors(
6696 Handle<Map> map,
6697 Handle<DescriptorArray> descriptors,
6698 TransitionFlag flag,
6699 Handle<Name> name,
6700 SimpleTransitionFlag simple_flag = FULL_TRANSITION);
6704 6701
6705 // Zaps the contents of backing data structures. Note that the 6702 // Zaps the contents of backing data structures. Note that the
6706 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects 6703 // heap verifier (i.e. VerifyMarkingVisitor) relies on zapping of objects
6707 // holding weak references when incremental marking is used, because it also 6704 // holding weak references when incremental marking is used, because it also
6708 // iterates over objects that are otherwise unreachable. 6705 // iterates over objects that are otherwise unreachable.
6709 // In general we only want to call these functions in release mode when 6706 // In general we only want to call these functions in release mode when
6710 // heap verification is turned on. 6707 // heap verification is turned on.
6711 void ZapPrototypeTransitions(); 6708 void ZapPrototypeTransitions();
6712 void ZapTransitions(); 6709 void ZapTransitions();
6713 6710
(...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after
11062 } else { 11059 } else {
11063 value &= ~(1 << bit_position); 11060 value &= ~(1 << bit_position);
11064 } 11061 }
11065 return value; 11062 return value;
11066 } 11063 }
11067 }; 11064 };
11068 11065
11069 } } // namespace v8::internal 11066 } } // namespace v8::internal
11070 11067
11071 #endif // V8_OBJECTS_H_ 11068 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698