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

Issue 7754015: Implement identity hashes for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. 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 | « src/handles.cc ('k') | src/heap.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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 444
445 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, 445 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler,
446 Object* call_trap, 446 Object* call_trap,
447 Object* construct_trap, 447 Object* construct_trap,
448 Object* prototype); 448 Object* prototype);
449 449
450 // Reinitialize a JSReceiver into an (empty) JS object of respective type and 450 // Reinitialize a JSReceiver into an (empty) JS object of respective type and
451 // size, but keeping the original prototype. The receiver must have at least 451 // size, but keeping the original prototype. The receiver must have at least
452 // the size of the new object. The object is reinitialized and behaves as an 452 // the size of the new object. The object is reinitialized and behaves as an
453 // object that has been freshly allocated. 453 // object that has been freshly allocated.
454 // Returns failure if an error occured, otherwise object.
454 MUST_USE_RESULT MaybeObject* ReinitializeJSReceiver(JSReceiver* object, 455 MUST_USE_RESULT MaybeObject* ReinitializeJSReceiver(JSReceiver* object,
455 InstanceType type, 456 InstanceType type,
456 int size); 457 int size);
457 458
458 // Reinitialize an JSGlobalProxy based on a constructor. The object 459 // Reinitialize an JSGlobalProxy based on a constructor. The object
459 // must have the same size as objects allocated using the 460 // must have the same size as objects allocated using the
460 // constructor. The object is reinitialized and behaves as an 461 // constructor. The object is reinitialized and behaves as an
461 // object that has been freshly allocated using the constructor. 462 // object that has been freshly allocated using the constructor.
462 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( 463 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy(
463 JSFunction* constructor, JSGlobalProxy* global); 464 JSFunction* constructor, JSGlobalProxy* global);
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
2317 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2318 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2318 }; 2319 };
2319 #endif // DEBUG || LIVE_OBJECT_LIST 2320 #endif // DEBUG || LIVE_OBJECT_LIST
2320 2321
2321 2322
2322 } } // namespace v8::internal 2323 } } // namespace v8::internal
2323 2324
2324 #undef HEAP 2325 #undef HEAP
2325 2326
2326 #endif // V8_HEAP_H_ 2327 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698