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/handles.h

Issue 7349005: Added dictionary that can use objects as keys. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added unit test to gyp buildfile as well. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/handles.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 Handle<Object> GetPrototype(Handle<Object> obj); 262 Handle<Object> GetPrototype(Handle<Object> obj);
263 263
264 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); 264 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
265 265
266 // Return the object's hidden properties object. If the object has no hidden 266 // Return the object's hidden properties object. If the object has no hidden
267 // properties and create_if_needed is true, then a new hidden property object 267 // properties and create_if_needed is true, then a new hidden property object
268 // will be allocated. Otherwise the Heap::undefined_value is returned. 268 // will be allocated. Otherwise the Heap::undefined_value is returned.
269 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed); 269 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, bool create_if_needed);
270 270
271 Handle<Smi> GetIdentityHash(Handle<JSObject> obj);
272
271 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); 273 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index);
272 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); 274 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop);
273 275
274 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); 276 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
275 277
276 Handle<JSObject> Copy(Handle<JSObject> obj); 278 Handle<JSObject> Copy(Handle<JSObject> obj);
277 279
278 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); 280 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info);
279 281
280 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, 282 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 inline NoHandleAllocation(); 372 inline NoHandleAllocation();
371 inline ~NoHandleAllocation(); 373 inline ~NoHandleAllocation();
372 private: 374 private:
373 int level_; 375 int level_;
374 #endif 376 #endif
375 }; 377 };
376 378
377 } } // namespace v8::internal 379 } } // namespace v8::internal
378 380
379 #endif // V8_HANDLES_H_ 381 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698