Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 4e00b2941db0c159cfacb20ed1a714c28c9c3c99..792a14296c4964fce21b15df2855055db6d0d6b8 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -9216,26 +9216,6 @@ RUNTIME_FUNCTION(ObjectPair, Runtime_ResolvePossiblyDirectEval) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_SetNewFunctionAttributes) { |
- // This utility adjusts the property attributes for newly created Function |
- // object ("new Function(...)") by changing the map. |
- // All it does is changing the prototype property to enumerable |
- // as specified in ECMA262, 15.3.5.2. |
- HandleScope scope(isolate); |
- ASSERT(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
- |
- Handle<Map> map = func->shared()->is_classic_mode() |
- ? isolate->function_instance_map() |
- : isolate->strict_mode_function_instance_map(); |
- |
- ASSERT(func->map()->instance_type() == map->instance_type()); |
- ASSERT(func->map()->instance_size() == map->instance_size()); |
- func->set_map(*map); |
- return *func; |
-} |
- |
- |
RUNTIME_FUNCTION(MaybeObject*, Runtime_AllocateInNewSpace) { |
// Allocate a block of memory in NewSpace (filled with a filler). |
// Use as fallback for allocation in generated code when NewSpace |