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

Side by Side Diff: src/objects.h

Issue 1802733002: Move elements normalization to the ElementsAccessor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/elements.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 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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 // the inline-stored identity hash. 2534 // the inline-stored identity hash.
2535 static Handle<Object> SetHiddenPropertiesHashTable( 2535 static Handle<Object> SetHiddenPropertiesHashTable(
2536 Handle<JSObject> object, 2536 Handle<JSObject> object,
2537 Handle<Object> value); 2537 Handle<Object> value);
2538 2538
2539 static Handle<Object> GetIdentityHash(Isolate* isolate, 2539 static Handle<Object> GetIdentityHash(Isolate* isolate,
2540 Handle<JSObject> object); 2540 Handle<JSObject> object);
2541 2541
2542 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSObject> object); 2542 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSObject> object);
2543 2543
2544 static Handle<SeededNumberDictionary> GetNormalizedElementDictionary(
2545 Handle<JSObject> object, Handle<FixedArrayBase> elements);
2546
2547 // Helper for fast versions of preventExtensions, seal, and freeze. 2544 // Helper for fast versions of preventExtensions, seal, and freeze.
2548 // attrs is one of NONE, SEALED, or FROZEN (depending on the operation). 2545 // attrs is one of NONE, SEALED, or FROZEN (depending on the operation).
2549 template <PropertyAttributes attrs> 2546 template <PropertyAttributes attrs>
2550 MUST_USE_RESULT static Maybe<bool> PreventExtensionsWithTransition( 2547 MUST_USE_RESULT static Maybe<bool> PreventExtensionsWithTransition(
2551 Handle<JSObject> object, ShouldThrow should_throw); 2548 Handle<JSObject> object, ShouldThrow should_throw);
2552 2549
2553 MUST_USE_RESULT static Maybe<bool> SetPrototypeUnobserved( 2550 MUST_USE_RESULT static Maybe<bool> SetPrototypeUnobserved(
2554 Handle<JSObject> object, Handle<Object> value, bool from_javascript, 2551 Handle<JSObject> object, Handle<Object> value, bool from_javascript,
2555 ShouldThrow should_throw); 2552 ShouldThrow should_throw);
2556 2553
(...skipping 8331 matching lines...) Expand 10 before | Expand all | Expand 10 after
10888 } 10885 }
10889 return value; 10886 return value;
10890 } 10887 }
10891 }; 10888 };
10892 10889
10893 10890
10894 } // NOLINT, false-positive due to second-order macros. 10891 } // NOLINT, false-positive due to second-order macros.
10895 } // NOLINT, false-positive due to second-order macros. 10892 } // NOLINT, false-positive due to second-order macros.
10896 10893
10897 #endif // V8_OBJECTS_H_ 10894 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698