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

Side by Side Diff: src/objects.h

Issue 2725153002: Merged: [runtime] Mark old JSGlobalProxy's map as unstable when an iframe navigates away. (Closed)
Patch Set: Created 3 years, 9 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 | « src/factory.cc ('k') | test/mjsunit/regress/regress-crbug-683667.js » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 6250 matching lines...) Expand 10 before | Expand all | Expand 10 after
6261 6261
6262 #if TRACE_MAPS 6262 #if TRACE_MAPS
6263 static void TraceTransition(const char* what, Map* from, Map* to, Name* name); 6263 static void TraceTransition(const char* what, Map* from, Map* to, Name* name);
6264 static void TraceAllTransitions(Map* map); 6264 static void TraceAllTransitions(Map* map);
6265 #endif 6265 #endif
6266 6266
6267 static inline Handle<Map> AddMissingTransitionsForTesting( 6267 static inline Handle<Map> AddMissingTransitionsForTesting(
6268 Handle<Map> split_map, Handle<DescriptorArray> descriptors, 6268 Handle<Map> split_map, Handle<DescriptorArray> descriptors,
6269 Handle<LayoutDescriptor> full_layout_descriptor); 6269 Handle<LayoutDescriptor> full_layout_descriptor);
6270 6270
6271 // Fires when the layout of an object with a leaf map changes.
6272 // This includes adding transitions to the leaf map or changing
6273 // the descriptor array.
6274 inline void NotifyLeafMapLayoutChange();
6275
6271 private: 6276 private:
6272 // Returns the map that this (root) map transitions to if its elements_kind 6277 // Returns the map that this (root) map transitions to if its elements_kind
6273 // is changed to |elements_kind|, or |nullptr| if no such map is cached yet. 6278 // is changed to |elements_kind|, or |nullptr| if no such map is cached yet.
6274 Map* LookupElementsTransitionMap(ElementsKind elements_kind); 6279 Map* LookupElementsTransitionMap(ElementsKind elements_kind);
6275 6280
6276 // Tries to replay property transitions starting from this (root) map using 6281 // Tries to replay property transitions starting from this (root) map using
6277 // the descriptor array of the |map|. The |root_map| is expected to have 6282 // the descriptor array of the |map|. The |root_map| is expected to have
6278 // proper elements kind and therefore elements kinds transitions are not 6283 // proper elements kind and therefore elements kinds transitions are not
6279 // taken by this function. Returns |nullptr| if matching transition map is 6284 // taken by this function. Returns |nullptr| if matching transition map is
6280 // not found. 6285 // not found.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6314 PropertyAttributes attributes, const char** reason); 6319 PropertyAttributes attributes, const char** reason);
6315 6320
6316 static Handle<Map> CopyNormalized(Handle<Map> map, 6321 static Handle<Map> CopyNormalized(Handle<Map> map,
6317 PropertyNormalizationMode mode); 6322 PropertyNormalizationMode mode);
6318 6323
6319 // TODO(ishell): Move to MapUpdater. 6324 // TODO(ishell): Move to MapUpdater.
6320 static Handle<Map> CopyGeneralizeAllFields( 6325 static Handle<Map> CopyGeneralizeAllFields(
6321 Handle<Map> map, ElementsKind elements_kind, int modify_index, 6326 Handle<Map> map, ElementsKind elements_kind, int modify_index,
6322 PropertyKind kind, PropertyAttributes attributes, const char* reason); 6327 PropertyKind kind, PropertyAttributes attributes, const char* reason);
6323 6328
6324 // Fires when the layout of an object with a leaf map changes.
6325 // This includes adding transitions to the leaf map or changing
6326 // the descriptor array.
6327 inline void NotifyLeafMapLayoutChange();
6328
6329 void DeprecateTransitionTree(); 6329 void DeprecateTransitionTree();
6330 6330
6331 void ReplaceDescriptors(DescriptorArray* new_descriptors, 6331 void ReplaceDescriptors(DescriptorArray* new_descriptors,
6332 LayoutDescriptor* new_layout_descriptor); 6332 LayoutDescriptor* new_layout_descriptor);
6333 6333
6334 6334
6335 // Update field type of the given descriptor to new representation and new 6335 // Update field type of the given descriptor to new representation and new
6336 // type. The type must be prepared for storing in descriptor array: 6336 // type. The type must be prepared for storing in descriptor array:
6337 // it must be either a simple type or a map wrapped in a weak cell. 6337 // it must be either a simple type or a map wrapped in a weak cell.
6338 void UpdateFieldType(int descriptor_number, Handle<Name> name, 6338 void UpdateFieldType(int descriptor_number, Handle<Name> name,
(...skipping 5223 matching lines...) Expand 10 before | Expand all | Expand 10 after
11562 } 11562 }
11563 }; 11563 };
11564 11564
11565 11565
11566 } // NOLINT, false-positive due to second-order macros. 11566 } // NOLINT, false-positive due to second-order macros.
11567 } // NOLINT, false-positive due to second-order macros. 11567 } // NOLINT, false-positive due to second-order macros.
11568 11568
11569 #include "src/objects/object-macros-undef.h" 11569 #include "src/objects/object-macros-undef.h"
11570 11570
11571 #endif // V8_OBJECTS_H_ 11571 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | test/mjsunit/regress/regress-crbug-683667.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698