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

Side by Side Diff: src/handles.h

Issue 7754015: Implement identity hashes for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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 | « no previous file | src/handles.cc » ('j') | src/heap.cc » ('J')
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 HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new 267 // properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new
268 // hidden property object will be allocated. Otherwise Heap::undefined_value 268 // hidden property object will be allocated. Otherwise Heap::undefined_value
269 // is returned. 269 // is returned.
270 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, 270 Handle<Object> GetHiddenProperties(Handle<JSObject> obj,
271 JSObject::HiddenPropertiesFlag flag); 271 JSObject::CreationFlag flag);
272 272
273 int GetIdentityHash(Handle<JSObject> obj); 273 int GetIdentityHash(Handle<JSReceiver> obj);
274 274
275 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); 275 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index);
276 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); 276 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop);
277 277
278 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); 278 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
279 279
280 Handle<JSObject> Copy(Handle<JSObject> obj); 280 Handle<JSObject> Copy(Handle<JSObject> obj);
281 281
282 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); 282 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info);
283 283
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( 341 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy(
342 Handle<JSFunction> constructor, 342 Handle<JSFunction> constructor,
343 Handle<JSGlobalProxy> global); 343 Handle<JSGlobalProxy> global);
344 344
345 Handle<Object> SetPrototype(Handle<JSFunction> function, 345 Handle<Object> SetPrototype(Handle<JSFunction> function,
346 Handle<Object> prototype); 346 Handle<Object> prototype);
347 347
348 Handle<Object> PreventExtensions(Handle<JSObject> object); 348 Handle<Object> PreventExtensions(Handle<JSObject> object);
349 349
350 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, 350 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table,
351 Handle<JSObject> key, 351 Handle<JSReceiver> key,
352 Handle<Object> value); 352 Handle<Object> value);
353 353
354 // Does lazy compilation of the given function. Returns true on success and 354 // Does lazy compilation of the given function. Returns true on success and
355 // false if the compilation resulted in a stack overflow. 355 // false if the compilation resulted in a stack overflow.
356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; 356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
357 357
358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, 358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared,
359 ClearExceptionFlag flag); 359 ClearExceptionFlag flag);
360 360
361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, 361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
(...skipping 16 matching lines...) Expand all
378 inline NoHandleAllocation(); 378 inline NoHandleAllocation();
379 inline ~NoHandleAllocation(); 379 inline ~NoHandleAllocation();
380 private: 380 private:
381 int level_; 381 int level_;
382 #endif 382 #endif
383 }; 383 };
384 384
385 } } // namespace v8::internal 385 } } // namespace v8::internal
386 386
387 #endif // V8_HANDLES_H_ 387 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/handles.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698