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

Unified Diff: src/factory.cc

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: doh Created 5 years 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/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 38e1f94ab0fcf108c1c73c35963675bc505ccb0f..abcdf1f670db1b723361a69dfdf6f3b9d17d1db1 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1944,30 +1944,6 @@ Handle<JSProxy> Factory::NewJSProxy(Handle<JSReceiver> target,
}
-Handle<JSProxy> Factory::NewJSFunctionProxy(Handle<JSReceiver> target,
- Handle<JSReceiver> handler,
- Handle<JSReceiver> call_trap,
- Handle<Object> construct_trap,
- Handle<Object> prototype) {
- // Allocate map.
- // TODO(rossberg): Once we optimize proxies, think about a scheme to share
- // maps. Will probably depend on the identity of the handler object, too.
- Handle<Map> map = NewMap(JS_FUNCTION_PROXY_TYPE, JSFunctionProxy::kSize);
- Map::SetPrototype(map, prototype);
- map->set_is_callable();
- map->set_is_constructor(construct_trap->IsCallable());
-
- // Allocate the proxy object.
- Handle<JSFunctionProxy> result = New<JSFunctionProxy>(map, NEW_SPACE);
- result->set_target(*target);
- result->set_handler(*handler);
- result->set_hash(*undefined_value(), SKIP_WRITE_BARRIER);
- result->set_call_trap(*call_trap);
- result->set_construct_trap(*construct_trap);
- return result;
-}
-
-
Handle<JSGlobalProxy> Factory::NewUninitializedJSGlobalProxy() {
// Create an empty shell of a JSGlobalProxy that needs to be reinitialized
// via ReinitializeJSGlobalProxy later.

Powered by Google App Engine
This is Rietveld 408576698