Revision: 10429 Author: [email protected] Date: Wed Jan 18 05:15:22 2012 Log: Immediately use the generic stub when storing into COW arrays
Review URL: https://chromiumcodereview.appspot.com/9254005 http://code.google.com/p/v8/source/detail?r=10429 Modified: /branches/bleeding_edge/src/ic.cc ======================================= --- /branches/bleeding_edge/src/ic.cc Thu Jan 5 09:16:19 2012 +++ /branches/bleeding_edge/src/ic.cc Wed Jan 18 05:15:22 2012 @@ -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: @@ -1677,6 +1677,9 @@ if (receiver->elements()->map() == isolate()->heap()->non_strict_arguments_elements_map()) { stub = non_strict_arguments_stub(); + } else if (receiver->elements()->map() == + isolate()->heap()->fixed_cow_array_map()) { + // Do nothing, just keep the generic stub. } else if (!force_generic) { if (key->IsSmi() && (target() != *non_strict_arguments_stub())) { StubKind stub_kind = STORE_NO_TRANSITION; -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
