Chromium Code Reviews| Index: src/factory.h |
| diff --git a/src/factory.h b/src/factory.h |
| index c3ad0dc5a5aafe1c8cfdb7692a7edb24197fa2d3..f9329aebde8117c128ce6b95c55385469975e987 100644 |
| --- a/src/factory.h |
| +++ b/src/factory.h |
| @@ -449,13 +449,6 @@ class Factory V8_FINAL { |
| Handle<Object> construct_trap, |
| Handle<Object> prototype); |
| - // Reinitialize a JSReceiver into an (empty) JS object of respective type and |
| - // size, but keeping the original prototype. The receiver must have at least |
| - // the size of the new object. The object is reinitialized and behaves as an |
| - // object that has been freshly allocated. |
| - void ReinitializeJSReceiver( |
| - Handle<JSReceiver> object, InstanceType type, int size); |
| - |
| // 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 |
| @@ -464,8 +457,8 @@ class Factory V8_FINAL { |
| Handle<JSFunction> constructor); |
| // Change the type of the argument into a JS object/function and reinitialize. |
| - void BecomeJSObject(Handle<JSReceiver> object); |
| - void BecomeJSFunction(Handle<JSReceiver> object); |
| + void BecomeJSObject(Handle<JSProxy> object); |
| + void BecomeJSFunction(Handle<JSProxy> object); |
| Handle<JSFunction> NewFunction(Handle<String> name, |
| Handle<Code> code, |
| @@ -707,6 +700,12 @@ class Factory V8_FINAL { |
| Handle<JSFunction> NewFunction(Handle<Map> map, |
| Handle<String> name, |
| MaybeHandle<Code> maybe_code); |
| + |
| + // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| + // size, but keeping the original prototype. The receiver must have at least |
| + // the size of the new object. The object is reinitialized and behaves as an |
| + // object that has been freshly allocated. |
| + void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
|
adamk
2014/08/26 22:10:53
I made this private since the only callers are Bec
|
| }; |
| } } // namespace v8::internal |