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

Side by Side Diff: src/objects.h

Issue 1238533003: Use the LookupIterator to transition to elements accessors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disallow defining accessors on typed arrays 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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2312 2312
2313 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name); 2313 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name);
2314 static void SetElementCallback(Handle<JSObject> object, 2314 static void SetElementCallback(Handle<JSObject> object,
2315 uint32_t index, 2315 uint32_t index,
2316 Handle<Object> structure, 2316 Handle<Object> structure,
2317 PropertyAttributes attributes); 2317 PropertyAttributes attributes);
2318 static void SetPropertyCallback(Handle<JSObject> object, 2318 static void SetPropertyCallback(Handle<JSObject> object,
2319 Handle<Name> name, 2319 Handle<Name> name,
2320 Handle<Object> structure, 2320 Handle<Object> structure,
2321 PropertyAttributes attributes); 2321 PropertyAttributes attributes);
2322 static void DefineElementAccessor(Handle<JSObject> object,
2323 uint32_t index,
2324 Handle<Object> getter,
2325 Handle<Object> setter,
2326 PropertyAttributes attributes);
2327 2322
2328 // Return the hash table backing store or the inline stored identity hash, 2323 // Return the hash table backing store or the inline stored identity hash,
2329 // whatever is found. 2324 // whatever is found.
2330 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable(); 2325 MUST_USE_RESULT Object* GetHiddenPropertiesHashTable();
2331 2326
2332 // Return the hash table backing store for hidden properties. If there is no 2327 // Return the hash table backing store for hidden properties. If there is no
2333 // backing store, allocate one. 2328 // backing store, allocate one.
2334 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable( 2329 static Handle<ObjectHashTable> GetOrCreateHiddenPropertiesHashtable(
2335 Handle<JSObject> object); 2330 Handle<JSObject> object);
2336 2331
(...skipping 8471 matching lines...) Expand 10 before | Expand all | Expand 10 after
10808 } else { 10803 } else {
10809 value &= ~(1 << bit_position); 10804 value &= ~(1 << bit_position);
10810 } 10805 }
10811 return value; 10806 return value;
10812 } 10807 }
10813 }; 10808 };
10814 10809
10815 } } // namespace v8::internal 10810 } } // namespace v8::internal
10816 10811
10817 #endif // V8_OBJECTS_H_ 10812 #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