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

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: fixing merge artifacts 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
« no previous file with comments | « src/factory.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index f9fd3cc9086b06c18c416954e5b47d203cc3a026..7c215c865ff02e140bdf1808258f6d0ecf061e77 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1951,30 +1951,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.
« no previous file with comments | « src/factory.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698