| Index: src/heap.h
|
| diff --git a/src/heap.h b/src/heap.h
|
| index d90a681d436794173bee8680c17c3bb7df6177f3..6cd4f840b93e4abfcd052e2ab71392dda182b2b1 100644
|
| --- a/src/heap.h
|
| +++ b/src/heap.h
|
| @@ -441,6 +441,11 @@ class Heap {
|
| MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler,
|
| Object* prototype);
|
|
|
| + // Reinitialize a JSProxy 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* ReinitializeJSProxyAsJSObject(JSProxy* 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
|
|
|