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

Side by Side Diff: src/objects.h

Issue 1158023003: Mark proxy map as unstable during fixing freezing, sealing or preventing extensions). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 years, 6 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') | 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 6323 matching lines...) Expand 10 before | Expand all | Expand 10 after
6334 static Handle<Map> CopyAsElementsKind(Handle<Map> map, 6334 static Handle<Map> CopyAsElementsKind(Handle<Map> map,
6335 ElementsKind kind, 6335 ElementsKind kind,
6336 TransitionFlag flag); 6336 TransitionFlag flag);
6337 6337
6338 static Handle<Map> CopyForObserved(Handle<Map> map); 6338 static Handle<Map> CopyForObserved(Handle<Map> map);
6339 6339
6340 static Handle<Map> CopyForPreventExtensions(Handle<Map> map, 6340 static Handle<Map> CopyForPreventExtensions(Handle<Map> map,
6341 PropertyAttributes attrs_to_add, 6341 PropertyAttributes attrs_to_add,
6342 Handle<Symbol> transition_marker, 6342 Handle<Symbol> transition_marker,
6343 const char* reason); 6343 const char* reason);
6344
6345 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size);
6346
6347
6344 // Maximal number of fast properties. Used to restrict the number of map 6348 // Maximal number of fast properties. Used to restrict the number of map
6345 // transitions to avoid an explosion in the number of maps for objects used as 6349 // transitions to avoid an explosion in the number of maps for objects used as
6346 // dictionaries. 6350 // dictionaries.
6347 inline bool TooManyFastProperties(StoreFromKeyed store_mode); 6351 inline bool TooManyFastProperties(StoreFromKeyed store_mode);
6348 static Handle<Map> TransitionToDataProperty(Handle<Map> map, 6352 static Handle<Map> TransitionToDataProperty(Handle<Map> map,
6349 Handle<Name> name, 6353 Handle<Name> name,
6350 Handle<Object> value, 6354 Handle<Object> value,
6351 PropertyAttributes attributes, 6355 PropertyAttributes attributes,
6352 StoreFromKeyed store_mode); 6356 StoreFromKeyed store_mode);
6353 static Handle<Map> TransitionToAccessorProperty( 6357 static Handle<Map> TransitionToAccessorProperty(
(...skipping 4836 matching lines...) Expand 10 before | Expand all | Expand 10 after
11190 } else { 11194 } else {
11191 value &= ~(1 << bit_position); 11195 value &= ~(1 << bit_position);
11192 } 11196 }
11193 return value; 11197 return value;
11194 } 11198 }
11195 }; 11199 };
11196 11200
11197 } } // namespace v8::internal 11201 } } // namespace v8::internal
11198 11202
11199 #endif // V8_OBJECTS_H_ 11203 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698