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

Side by Side Diff: src/objects.h

Issue 715313003: Avoid fast short-cut in Map::GeneralizeRepresentation() for literals with non-simple transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/json-parser.h ('k') | src/objects.cc » ('j') | no next file with comments »
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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 5807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5818 // TODO(ishell): candidate with JSObject::MigrateToMap(). 5818 // TODO(ishell): candidate with JSObject::MigrateToMap().
5819 bool InstancesNeedRewriting(Map* target, int target_number_of_fields, 5819 bool InstancesNeedRewriting(Map* target, int target_number_of_fields,
5820 int target_inobject, int target_unused, 5820 int target_inobject, int target_unused,
5821 int* old_number_of_fields); 5821 int* old_number_of_fields);
5822 // TODO(ishell): moveit! 5822 // TODO(ishell): moveit!
5823 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map); 5823 static Handle<Map> GeneralizeAllFieldRepresentations(Handle<Map> map);
5824 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType( 5824 MUST_USE_RESULT static Handle<HeapType> GeneralizeFieldType(
5825 Handle<HeapType> type1, 5825 Handle<HeapType> type1,
5826 Handle<HeapType> type2, 5826 Handle<HeapType> type2,
5827 Isolate* isolate); 5827 Isolate* isolate);
5828 static void GeneralizeFieldType(Handle<Map> map, 5828 static void GeneralizeFieldType(Handle<Map> map, int modify_index,
5829 int modify_index, 5829 Representation new_representation,
5830 Handle<HeapType> new_field_type); 5830 Handle<HeapType> new_field_type);
5831 static Handle<Map> GeneralizeRepresentation( 5831 static Handle<Map> GeneralizeRepresentation(
5832 Handle<Map> map, 5832 Handle<Map> map,
5833 int modify_index, 5833 int modify_index,
5834 Representation new_representation, 5834 Representation new_representation,
5835 Handle<HeapType> new_field_type, 5835 Handle<HeapType> new_field_type,
5836 StoreMode store_mode); 5836 StoreMode store_mode);
5837 static Handle<Map> CopyGeneralizeAllRepresentations( 5837 static Handle<Map> CopyGeneralizeAllRepresentations(
5838 Handle<Map> map, 5838 Handle<Map> map,
5839 int modify_index, 5839 int modify_index,
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
6370 6370
6371 void DeprecateTransitionTree(); 6371 void DeprecateTransitionTree();
6372 void DeprecateTarget(PropertyType type, Name* key, 6372 void DeprecateTarget(PropertyType type, Name* key,
6373 PropertyAttributes attributes, 6373 PropertyAttributes attributes,
6374 DescriptorArray* new_descriptors, 6374 DescriptorArray* new_descriptors,
6375 LayoutDescriptor* new_layout_descriptor); 6375 LayoutDescriptor* new_layout_descriptor);
6376 6376
6377 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors); 6377 Map* FindLastMatchMap(int verbatim, int length, DescriptorArray* descriptors);
6378 6378
6379 void UpdateFieldType(int descriptor_number, Handle<Name> name, 6379 void UpdateFieldType(int descriptor_number, Handle<Name> name,
6380 Representation new_representation,
6380 Handle<HeapType> new_type); 6381 Handle<HeapType> new_type);
6381 6382
6382 void PrintGeneralization(FILE* file, 6383 void PrintGeneralization(FILE* file,
6383 const char* reason, 6384 const char* reason,
6384 int modify_index, 6385 int modify_index,
6385 int split, 6386 int split,
6386 int descriptors, 6387 int descriptors,
6387 bool constant_to_field, 6388 bool constant_to_field,
6388 Representation old_representation, 6389 Representation old_representation,
6389 Representation new_representation, 6390 Representation new_representation,
(...skipping 4581 matching lines...) Expand 10 before | Expand all | Expand 10 after
10971 } else { 10972 } else {
10972 value &= ~(1 << bit_position); 10973 value &= ~(1 << bit_position);
10973 } 10974 }
10974 return value; 10975 return value;
10975 } 10976 }
10976 }; 10977 };
10977 10978
10978 } } // namespace v8::internal 10979 } } // namespace v8::internal
10979 10980
10980 #endif // V8_OBJECTS_H_ 10981 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/json-parser.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698