| Index: src/objects.cc
|
| ===================================================================
|
| --- src/objects.cc (revision 4462)
|
| +++ src/objects.cc (working copy)
|
| @@ -4906,6 +4906,7 @@
|
|
|
|
|
| Object* JSFunction::SetPrototype(Object* value) {
|
| + ASSERT(should_have_prototype());
|
| Object* construct_prototype = value;
|
|
|
| // If the value is not a JSObject, store the value in the map's
|
| @@ -4931,6 +4932,14 @@
|
| }
|
|
|
|
|
| +Object* JSFunction::RemovePrototype() {
|
| + ASSERT(map() == context()->global_context()->function_map());
|
| + set_map(context()->global_context()->function_without_prototype_map());
|
| + set_prototype_or_initial_map(Heap::the_hole_value());
|
| + return this;
|
| +}
|
| +
|
| +
|
| Object* JSFunction::SetInstanceClassName(String* name) {
|
| shared()->set_instance_class_name(name);
|
| return this;
|
|
|