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

Side by Side Diff: src/objects.h

Issue 1239803004: Bubble up the transitions associated with PreventExtensionsWithTransition (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix nits Created 5 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
« 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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 5914 matching lines...) Expand 10 before | Expand all | Expand 10 after
5925 ElementsKind kind, 5925 ElementsKind kind,
5926 TransitionFlag flag); 5926 TransitionFlag flag);
5927 5927
5928 static Handle<Map> CopyForObserved(Handle<Map> map); 5928 static Handle<Map> CopyForObserved(Handle<Map> map);
5929 5929
5930 static Handle<Map> CopyForPreventExtensions(Handle<Map> map, 5930 static Handle<Map> CopyForPreventExtensions(Handle<Map> map,
5931 PropertyAttributes attrs_to_add, 5931 PropertyAttributes attrs_to_add,
5932 Handle<Symbol> transition_marker, 5932 Handle<Symbol> transition_marker,
5933 const char* reason); 5933 const char* reason);
5934 5934
5935 static MaybeHandle<Map> TransitionForPreventExtensions(
5936 Handle<Map> old_map, PropertyAttributes attrs,
5937 Handle<Symbol> transition_marker);
5938
5939 static Handle<Symbol> AsTransitionMarker(Isolate* isolate,
5940 PropertyAttributes attrs);
5941
5935 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size); 5942 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size);
5936 5943
5937 5944
5938 // Maximal number of fast properties. Used to restrict the number of map 5945 // Maximal number of fast properties. Used to restrict the number of map
5939 // transitions to avoid an explosion in the number of maps for objects used as 5946 // transitions to avoid an explosion in the number of maps for objects used as
5940 // dictionaries. 5947 // dictionaries.
5941 inline bool TooManyFastProperties(StoreFromKeyed store_mode); 5948 inline bool TooManyFastProperties(StoreFromKeyed store_mode);
5942 static Handle<Map> TransitionToDataProperty(Handle<Map> map, 5949 static Handle<Map> TransitionToDataProperty(Handle<Map> map,
5943 Handle<Name> name, 5950 Handle<Name> name,
5944 Handle<Object> value, 5951 Handle<Object> value,
(...skipping 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after
10788 } else { 10795 } else {
10789 value &= ~(1 << bit_position); 10796 value &= ~(1 << bit_position);
10790 } 10797 }
10791 return value; 10798 return value;
10792 } 10799 }
10793 }; 10800 };
10794 10801
10795 } } // namespace v8::internal 10802 } } // namespace v8::internal
10796 10803
10797 #endif // V8_OBJECTS_H_ 10804 #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