Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: src/json-stringifier.h

Issue 11358096: Fix stack overflow for mac build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-stringifier.h
diff --git a/src/json-stringifier.h b/src/json-stringifier.h
index 1aa72b71b4e08a3f519696488cb2efe2ed3fd0d4..74f38fe99cd3496f9ca69b44491d6a5ea3867c21 100644
--- a/src/json-stringifier.h
+++ b/src/json-stringifier.h
@@ -569,8 +569,7 @@ BasicJsonStringifier::Result BasicJsonStringifier::SerializeJSObject(
!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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698