| OLD | NEW | 
|     1 // Copyright 2013 the V8 project authors. All rights reserved. |     1 // Copyright 2013 the V8 project authors. All rights reserved. | 
|     2 // Redistribution and use in source and binary forms, with or without |     2 // Redistribution and use in source and binary forms, with or without | 
|     3 // modification, are permitted provided that the following conditions are |     3 // modification, are permitted provided that the following conditions are | 
|     4 // met: |     4 // met: | 
|     5 // |     5 // | 
|     6 //     * Redistributions of source code must retain the above copyright |     6 //     * Redistributions of source code must retain the above copyright | 
|     7 //       notice, this list of conditions and the following disclaimer. |     7 //       notice, this list of conditions and the following disclaimer. | 
|     8 //     * Redistributions in binary form must reproduce the above |     8 //     * Redistributions in binary form must reproduce the above | 
|     9 //       copyright notice, this list of conditions and the following |     9 //       copyright notice, this list of conditions and the following | 
|    10 //       disclaimer in the documentation and/or other materials provided |    10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1584 } |  1584 } | 
|  1585  |  1585  | 
|  1586  |  1586  | 
|  1587 void V8HeapExplorer::ExtractPropertyReferences(JSObject* js_obj, int entry) { |  1587 void V8HeapExplorer::ExtractPropertyReferences(JSObject* js_obj, int entry) { | 
|  1588   if (js_obj->HasFastProperties()) { |  1588   if (js_obj->HasFastProperties()) { | 
|  1589     DescriptorArray* descs = js_obj->map()->instance_descriptors(); |  1589     DescriptorArray* descs = js_obj->map()->instance_descriptors(); | 
|  1590     int real_size = js_obj->map()->NumberOfOwnDescriptors(); |  1590     int real_size = js_obj->map()->NumberOfOwnDescriptors(); | 
|  1591     for (int i = 0; i < real_size; i++) { |  1591     for (int i = 0; i < real_size; i++) { | 
|  1592       switch (descs->GetType(i)) { |  1592       switch (descs->GetType(i)) { | 
|  1593         case FIELD: { |  1593         case FIELD: { | 
 |  1594           Representation r = descs->GetDetails(i).representation(); | 
 |  1595           if (r.IsSmi() || r.IsDouble()) break; | 
|  1594           int index = descs->GetFieldIndex(i); |  1596           int index = descs->GetFieldIndex(i); | 
|  1595  |  1597  | 
|  1596           Name* k = descs->GetKey(i); |  1598           Name* k = descs->GetKey(i); | 
|  1597           if (index < js_obj->map()->inobject_properties()) { |  1599           if (index < js_obj->map()->inobject_properties()) { | 
|  1598             Object* value = js_obj->InObjectPropertyAt(index); |  1600             Object* value = js_obj->InObjectPropertyAt(index); | 
|  1599             if (k != heap_->hidden_string()) { |  1601             if (k != heap_->hidden_string()) { | 
|  1600               SetPropertyReference( |  1602               SetPropertyReference( | 
|  1601                   js_obj, entry, |  1603                   js_obj, entry, | 
|  1602                   k, value, |  1604                   k, value, | 
|  1603                   NULL, |  1605                   NULL, | 
| (...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3076   writer_->AddString("\"<dummy>\""); |  3078   writer_->AddString("\"<dummy>\""); | 
|  3077   for (int i = 1; i < sorted_strings.length(); ++i) { |  3079   for (int i = 1; i < sorted_strings.length(); ++i) { | 
|  3078     writer_->AddCharacter(','); |  3080     writer_->AddCharacter(','); | 
|  3079     SerializeString(sorted_strings[i]); |  3081     SerializeString(sorted_strings[i]); | 
|  3080     if (writer_->aborted()) return; |  3082     if (writer_->aborted()) return; | 
|  3081   } |  3083   } | 
|  3082 } |  3084 } | 
|  3083  |  3085  | 
|  3084  |  3086  | 
|  3085 } }  // namespace v8::internal |  3087 } }  // namespace v8::internal | 
| OLD | NEW |