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

Side by Side Diff: src/objects.h

Issue 1228803005: Replace Set*Callback with TransitionToAccessorPair (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/lookup.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 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 Handle<Object> value, 2303 Handle<Object> value,
2304 PropertyAttributes attributes); 2304 PropertyAttributes attributes);
2305 2305
2306 MUST_USE_RESULT static MaybeHandle<Object> DeletePropertyWithInterceptor( 2306 MUST_USE_RESULT static MaybeHandle<Object> DeletePropertyWithInterceptor(
2307 LookupIterator* it); 2307 LookupIterator* it);
2308 2308
2309 bool ReferencesObjectFromElements(FixedArray* elements, 2309 bool ReferencesObjectFromElements(FixedArray* elements,
2310 ElementsKind kind, 2310 ElementsKind kind,
2311 Object* object); 2311 Object* object);
2312 2312
2313 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name);
2314 static void SetElementCallback(Handle<JSObject> object,
2315 uint32_t index,
2316 Handle<Object> structure,
2317 PropertyAttributes attributes);
2318 static void SetPropertyCallback(Handle<JSObject> object,
2319 Handle<Name> name,
2320 Handle<Object> structure,
2321 PropertyAttributes attributes);
2322
2323 // Return the hash table backing store or the inline stored identity hash, 2313 // Return the hash table backing store or the inline stored identity hash,
2324 // whatever is found. 2314 // whatever is found.
2325 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable(); 2315 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable();
2326 2316
2327 // Return the hash table backing store for hidden properties. If there is no 2317 // Return the hash table backing store for hidden properties. If there is no
2328 // backing store, allocate one. 2318 // backing store, allocate one.
2329 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable( 2319 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable(
2330 Handle<JSObject> object); 2320 Handle<JSObject> object);
2331 2321
2332 // Set the hidden property backing store to either a hash table or 2322 // Set the hidden property backing store to either a hash table or
(...skipping 8470 matching lines...) Expand 10 before | Expand all | Expand 10 after
10803 } else { 10793 } else {
10804 value &= ~(1 << bit_position); 10794 value &= ~(1 << bit_position);
10805 } 10795 }
10806 return value; 10796 return value;
10807 } 10797 }
10808 }; 10798 };
10809 10799
10810 } } // namespace v8::internal 10800 } } // namespace v8::internal
10811 10801
10812 #endif // V8_OBJECTS_H_ 10802 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698