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

Unified Diff: src/heap.h

Issue 7391001: Implement sealing, freezing, and related functions for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Oops, forgot to rebase branch. 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 side-by-side diff with in-line comments
Download patch
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index d90a681d436794173bee8680c17c3bb7df6177f3..3211dfdc70419eb9569766e457925b8ae3c47f30 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -441,6 +441,12 @@ class Heap {
MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler,
Object* prototype);
+ // Reinitialize a JSReceiver into an (empty) JSObject. The receiver
+ // must have the same size as an empty object. The object is reinitialized
+ // and behaves as an object that has been freshly allocated.
+ MUST_USE_RESULT MaybeObject* ReinitializeJSReceiverAsJSObject(
Mads Ager (chromium) 2011/07/17 10:43:47 JSReceiver -> JSProxy We don't need this operatio
rossberg 2011/07/18 10:53:53 Done.
+ JSReceiver* object);
+
// Reinitialize an JSGlobalProxy based on a constructor. The object
// must have the same size as objects allocated using the
// constructor. The object is reinitialized and behaves as an

Powered by Google App Engine
This is Rietveld 408576698