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

Unified Diff: src/factory.h

Issue 1427743011: [proxies] Remove "fix" functionality, add (still unused) target property. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test Created 5 years, 1 month 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
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 80916b8a20d075c443864785d98257f2e07523ce..7f0d2ea4e4028aff660aaca058ccdb88ba132837 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -476,10 +476,13 @@ class Factory final {
Handle<Object> done);
// Allocates a Harmony proxy.
- Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
+ Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target,
+ Handle<JSReceiver> handler,
+ Handle<Object> prototype);
// Allocates a Harmony function proxy.
- Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler,
+ Handle<JSProxy> NewJSFunctionProxy(Handle<JSReceiver> target,
+ Handle<JSReceiver> handler,
Handle<JSReceiver> call_trap,
Handle<Object> construct_trap,
Handle<Object> prototype);
@@ -493,10 +496,6 @@ class Factory final {
Handle<JSGlobalProxy> NewUninitializedJSGlobalProxy();
- // Change the type of the argument into a JS object/function and reinitialize.
- void BecomeJSObject(Handle<JSProxy> object);
- void BecomeJSFunction(Handle<JSProxy> object);
-
Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code,
Handle<Object> prototype,
bool read_only_prototype = false,
@@ -713,12 +712,6 @@ class Factory 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);
};
} // namespace internal
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698