Revision: 12626
Author:
verw...@chromium.org
Date: Thu Sep 27 06:55:50 2012
Log: Only use OwnDescriptors to decide whether to go slow or not.
Review URL:
https://chromiumcodereview.appspot.com/10996044
http://code.google.com/p/v8/source/detail?r=12626
Modified:
/branches/bleeding_edge/src/objects.cc
=======================================
--- /branches/bleeding_edge/src/objects.cc Mon Sep 24 07:23:46 2012
+++ /branches/bleeding_edge/src/objects.cc Thu Sep 27 06:55:50 2012
@@ -1690,7 +1690,7 @@
}
if (HasFastProperties()) {
// Ensure the descriptor array does not get too big.
- if (map_of_this->instance_descriptors()->number_of_descriptors() <
+ if (map_of_this->NumberOfOwnDescriptors() <
DescriptorArray::kMaxNumberOfDescriptors) {
if (value->IsJSFunction()) {
return AddConstantFunctionProperty(name,