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

Side by Side Diff: src/objects.h

Issue 861173004: Do not generalize field representations when making elements kind or observed transition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | 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 6126 matching lines...) Expand 10 before | Expand all | Expand 10 after
6137 PropertyAttributes attributes, 6137 PropertyAttributes attributes,
6138 StoreFromKeyed store_mode); 6138 StoreFromKeyed store_mode);
6139 static Handle<Map> TransitionToAccessorProperty( 6139 static Handle<Map> TransitionToAccessorProperty(
6140 Handle<Map> map, Handle<Name> name, AccessorComponent component, 6140 Handle<Map> map, Handle<Name> name, AccessorComponent component,
6141 Handle<Object> accessor, PropertyAttributes attributes); 6141 Handle<Object> accessor, PropertyAttributes attributes);
6142 static Handle<Map> ReconfigureDataProperty(Handle<Map> map, int descriptor, 6142 static Handle<Map> ReconfigureDataProperty(Handle<Map> map, int descriptor,
6143 PropertyAttributes attributes); 6143 PropertyAttributes attributes);
6144 6144
6145 inline void AppendDescriptor(Descriptor* desc); 6145 inline void AppendDescriptor(Descriptor* desc);
6146 6146
6147 // Returns a copy of the map, prepared for inserting into the transition
6148 // tree (if the |map| owns descriptors then the new one will share
6149 // descriptors with |map|).
6150 static Handle<Map> CopyForTransition(Handle<Map> map, const char* reason);
6151
6147 // Returns a copy of the map, with all transitions dropped from the 6152 // Returns a copy of the map, with all transitions dropped from the
6148 // instance descriptors. 6153 // instance descriptors.
6149 static Handle<Map> Copy(Handle<Map> map, const char* reason); 6154 static Handle<Map> Copy(Handle<Map> map, const char* reason);
6150 static Handle<Map> Create(Isolate* isolate, int inobject_properties); 6155 static Handle<Map> Create(Isolate* isolate, int inobject_properties);
6151 6156
6152 // Returns the next free property index (only valid for FAST MODE). 6157 // Returns the next free property index (only valid for FAST MODE).
6153 int NextFreePropertyIndex(); 6158 int NextFreePropertyIndex();
6154 6159
6155 // Returns the number of properties described in instance_descriptors 6160 // Returns the number of properties described in instance_descriptors
6156 // filtering out properties with the specified attributes. 6161 // filtering out properties with the specified attributes.
(...skipping 4777 matching lines...) Expand 10 before | Expand all | Expand 10 after
10934 } else { 10939 } else {
10935 value &= ~(1 << bit_position); 10940 value &= ~(1 << bit_position);
10936 } 10941 }
10937 return value; 10942 return value;
10938 } 10943 }
10939 }; 10944 };
10940 10945
10941 } } // namespace v8::internal 10946 } } // namespace v8::internal
10942 10947
10943 #endif // V8_OBJECTS_H_ 10948 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698