[v8] r12626 committed - Only use OwnDescriptors to decide whether to go slow or not....

1 view
Skip to first unread message

codesite...@google.com

unread,
Sep 27, 2012, 9:56:19 AM9/27/12
to v8-...@googlegroups.com
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,
Reply all
Reply to author
Forward
0 new messages