| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index e60f568a278908fbfe7af23e84de4736af147068..54e037c723a2eac9a98e4b0efeba1725d6a7aa97 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -486,16 +486,6 @@ MaybeObject* Accessors::FunctionSetPrototype(JSObject* object,
|
| NONE);
|
| }
|
|
|
| - if (function->has_initial_map()) {
|
| - // If the function has allocated the initial map
|
| - // replace it with a copy containing the new prototype.
|
| - Object* new_map;
|
| - { MaybeObject* maybe_new_map =
|
| - function->initial_map()->CopyDropTransitions();
|
| - if (!maybe_new_map->ToObject(&new_map)) return maybe_new_map;
|
| - }
|
| - function->set_initial_map(Map::cast(new_map));
|
| - }
|
| Object* prototype;
|
| { MaybeObject* maybe_prototype = function->SetPrototype(value);
|
| if (!maybe_prototype->ToObject(&prototype)) return maybe_prototype;
|
|
|