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

Side by Side Diff: src/objects.h

Issue 10700160: Refactor copying of maps and descriptor arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 | « src/heap.cc ('k') | 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 4892 matching lines...) Expand 10 before | Expand all | Expand 10 after
4903 LookupResult* result); 4903 LookupResult* result);
4904 4904
4905 void LookupTransition(JSObject* holder, 4905 void LookupTransition(JSObject* holder,
4906 String* name, 4906 String* name,
4907 LookupResult* result); 4907 LookupResult* result);
4908 4908
4909 void LookupTransitionOrDescriptor(JSObject* holder, 4909 void LookupTransitionOrDescriptor(JSObject* holder,
4910 String* name, 4910 String* name,
4911 LookupResult* result); 4911 LookupResult* result);
4912 4912
4913 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
4914 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
4913 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 4915 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
4916 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors(
4917 DescriptorArray* descriptors);
4914 4918
4915 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, 4919 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode,
4916 NormalizedMapSharingMode sharing); 4920 NormalizedMapSharingMode sharing);
4917 4921
4918 // Returns a copy of the map, with all transitions dropped from the 4922 // Returns a copy of the map, with all transitions dropped from the
4919 // instance descriptors. 4923 // instance descriptors.
4920 MUST_USE_RESULT MaybeObject* CopyDropTransitions( 4924 MUST_USE_RESULT MaybeObject* CopyDropTransitions(
4921 DescriptorArray::SharedMode shared_mode); 4925 DescriptorArray::SharedMode shared_mode);
4922 4926
4923 // Returns the property index for name (only valid for FAST MODE). 4927 // Returns the property index for name (only valid for FAST MODE).
(...skipping 3954 matching lines...) Expand 10 before | Expand all | Expand 10 after
8878 } else { 8882 } else {
8879 value &= ~(1 << bit_position); 8883 value &= ~(1 << bit_position);
8880 } 8884 }
8881 return value; 8885 return value;
8882 } 8886 }
8883 }; 8887 };
8884 8888
8885 } } // namespace v8::internal 8889 } } // namespace v8::internal
8886 8890
8887 #endif // V8_OBJECTS_H_ 8891 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698