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

Side by Side Diff: src/objects.h

Issue 437953004: Don't insert transitions between maps for prototypes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Insert transition in ConnectTransition Created 6 years, 4 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 6749 matching lines...) Expand 10 before | Expand all | Expand 10 after
6760 kPointerFieldsEndOffset, 6760 kPointerFieldsEndOffset,
6761 kSize> BodyDescriptor; 6761 kSize> BodyDescriptor;
6762 6762
6763 // Compares this map to another to see if they describe equivalent objects. 6763 // Compares this map to another to see if they describe equivalent objects.
6764 // If |mode| is set to CLEAR_INOBJECT_PROPERTIES, |other| is treated as if 6764 // If |mode| is set to CLEAR_INOBJECT_PROPERTIES, |other| is treated as if
6765 // it had exactly zero inobject properties. 6765 // it had exactly zero inobject properties.
6766 // The "shared" flags of both this map and |other| are ignored. 6766 // The "shared" flags of both this map and |other| are ignored.
6767 bool EquivalentToForNormalization(Map* other, PropertyNormalizationMode mode); 6767 bool EquivalentToForNormalization(Map* other, PropertyNormalizationMode mode);
6768 6768
6769 private: 6769 private:
6770 static Handle<TransitionArray> SetElementsTransitionMap( 6770 static void ConnectElementsTransition(Handle<Map> parent, Handle<Map> child);
6771 Handle<Map> map, Handle<Map> transitioned_map); 6771 static void ConnectTransition(Handle<Map> parent, Handle<Map> child,
6772 Handle<Name> name, SimpleTransitionFlag flag);
6772 6773
6773 bool EquivalentToForTransition(Map* other); 6774 bool EquivalentToForTransition(Map* other);
6774 static Handle<Map> RawCopy(Handle<Map> map, int instance_size); 6775 static Handle<Map> RawCopy(Handle<Map> map, int instance_size);
6775 static Handle<Map> ShareDescriptor(Handle<Map> map, 6776 static Handle<Map> ShareDescriptor(Handle<Map> map,
6776 Handle<DescriptorArray> descriptors, 6777 Handle<DescriptorArray> descriptors,
6777 Descriptor* descriptor); 6778 Descriptor* descriptor);
6778 static Handle<Map> CopyInstallDescriptors( 6779 static Handle<Map> CopyInstallDescriptors(
6779 Handle<Map> map, 6780 Handle<Map> map,
6780 int new_descriptor, 6781 int new_descriptor,
6781 Handle<DescriptorArray> descriptors); 6782 Handle<DescriptorArray> descriptors);
(...skipping 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after
11264 } else { 11265 } else {
11265 value &= ~(1 << bit_position); 11266 value &= ~(1 << bit_position);
11266 } 11267 }
11267 return value; 11268 return value;
11268 } 11269 }
11269 }; 11270 };
11270 11271
11271 } } // namespace v8::internal 11272 } } // namespace v8::internal
11272 11273
11273 #endif // V8_OBJECTS_H_ 11274 #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