Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 5219a6882b2ea72c61f4ff9f53dba107f74a8cdd..51e682f3255e8fed7f9082d61434e4b15c0e145a 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -74,19 +74,6 @@ RUNTIME_FUNCTION(Runtime_ThrowIfStaticPrototype) { |
} |
-RUNTIME_FUNCTION(Runtime_ToMethod) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 2); |
- CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); |
- CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 1); |
- Handle<JSFunction> clone = JSFunction::CloneClosure(fun); |
- Handle<Symbol> home_object_symbol(isolate->factory()->home_object_symbol()); |
- JSObject::SetOwnPropertyIgnoreAttributes(clone, home_object_symbol, |
- home_object, DONT_ENUM).Assert(); |
- return *clone; |
-} |
- |
- |
RUNTIME_FUNCTION(Runtime_HomeObjectSymbol) { |
DCHECK(args.length() == 0); |
return isolate->heap()->home_object_symbol(); |