Revision: 12861
Author:   [email protected]
Date:     Mon Nov  5 10:39:59 2012
Log:      Fix stack overflow for mac build.

[email protected]
BUG=

Review URL: https://chromiumcodereview.appspot.com/11358096
http://code.google.com/p/v8/source/detail?r=12861

Modified:
 /branches/bleeding_edge/src/json-stringifier.h

=======================================
--- /branches/bleeding_edge/src/json-stringifier.h      Mon Nov  5 07:01:51 2012
+++ /branches/bleeding_edge/src/json-stringifier.h      Mon Nov  5 10:39:59 2012
@@ -569,8 +569,7 @@
       !object->HasNamedInterceptor() &&
       object->elements()->length() == 0) {
     Handle<Map> map(object->map());
-    int num_desc = map->NumberOfOwnDescriptors();
-    for (int i = 0; i < num_desc; i++) {
+    for (int i = 0; i < map->NumberOfOwnDescriptors(); i++) {
       Handle<String> key(map->instance_descriptors()->GetKey(i), isolate_);
       PropertyDetails details = map->instance_descriptors()->GetDetails(i);
       if (details.IsDontEnum() || details.IsDeleted()) continue;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to