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

Side by Side Diff: src/objects.h

Issue 50016: Allow hidden properties and implement GetIdentityHash (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 bool ShouldConvertToSlowElements(int new_capacity); 1245 bool ShouldConvertToSlowElements(int new_capacity);
1246 // Returns true if the backing storage for the slow-case elements of 1246 // Returns true if the backing storage for the slow-case elements of
1247 // this object takes up nearly as much space as a fast-case backing 1247 // this object takes up nearly as much space as a fast-case backing
1248 // storage would. In that case the JSObject should have fast 1248 // storage would. In that case the JSObject should have fast
1249 // elements. 1249 // elements.
1250 bool ShouldConvertToFastElements(); 1250 bool ShouldConvertToFastElements();
1251 1251
1252 // Return the object's prototype (might be Heap::null_value()). 1252 // Return the object's prototype (might be Heap::null_value()).
1253 inline Object* GetPrototype(); 1253 inline Object* GetPrototype();
1254 1254
1255 // Return the object's hidden properties object. If the object has no hidden
1256 // properties and create_if_needed is true, then a new hidden property object
1257 // will be allocated. Otherwise the Heap::undefined_value is returned.
1258 Object* GetHiddenProperties(bool create_if_needed);
1259
1255 // Tells whether the index'th element is present. 1260 // Tells whether the index'th element is present.
1256 inline bool HasElement(uint32_t index); 1261 inline bool HasElement(uint32_t index);
1257 bool HasElementWithReceiver(JSObject* receiver, uint32_t index); 1262 bool HasElementWithReceiver(JSObject* receiver, uint32_t index);
1258 bool HasLocalElement(uint32_t index); 1263 bool HasLocalElement(uint32_t index);
1259 1264
1260 bool HasElementWithInterceptor(JSObject* receiver, uint32_t index); 1265 bool HasElementWithInterceptor(JSObject* receiver, uint32_t index);
1261 bool HasElementPostInterceptor(JSObject* receiver, uint32_t index); 1266 bool HasElementPostInterceptor(JSObject* receiver, uint32_t index);
1262 1267
1263 Object* SetFastElement(uint32_t index, Object* value); 1268 Object* SetFastElement(uint32_t index, Object* value);
1264 1269
(...skipping 3043 matching lines...) Expand 10 before | Expand all | Expand 10 after
4308 } else { 4313 } else {
4309 value &= ~(1 << bit_position); 4314 value &= ~(1 << bit_position);
4310 } 4315 }
4311 return value; 4316 return value;
4312 } 4317 }
4313 }; 4318 };
4314 4319
4315 } } // namespace v8::internal 4320 } } // namespace v8::internal
4316 4321
4317 #endif // V8_OBJECTS_H_ 4322 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698