| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 | 248 |
| 249 void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) { | 249 void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) { |
| 250 PrintF(out, "external double array"); | 250 PrintF(out, "external double array"); |
| 251 } | 251 } |
| 252 | 252 |
| 253 | 253 |
| 254 void JSObject::PrintProperties(FILE* out) { | 254 void JSObject::PrintProperties(FILE* out) { |
| 255 if (HasFastProperties()) { | 255 if (HasFastProperties()) { |
| 256 DescriptorArray* descs = map()->instance_descriptors(); | 256 DescriptorArray* descs = map()->instance_descriptors(); |
| 257 for (int i = 0; i < descs->number_of_descriptors(); i++) { | 257 for (int i = 0; i < map()->NumberOfOwnDescriptors(); i++) { |
| 258 PrintF(out, " "); | 258 PrintF(out, " "); |
| 259 descs->GetKey(i)->StringPrint(out); | 259 descs->GetKey(i)->StringPrint(out); |
| 260 PrintF(out, ": "); | 260 PrintF(out, ": "); |
| 261 switch (descs->GetType(i)) { | 261 switch (descs->GetType(i)) { |
| 262 case FIELD: { | 262 case FIELD: { |
| 263 int index = descs->GetFieldIndex(i); | 263 int index = descs->GetFieldIndex(i); |
| 264 FastPropertyAt(index)->ShortPrint(out); | 264 FastPropertyAt(index)->ShortPrint(out); |
| 265 PrintF(out, " (field at offset %d)\n", index); | 265 PrintF(out, " (field at offset %d)\n", index); |
| 266 break; | 266 break; |
| 267 } | 267 } |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 } | 1090 } |
| 1091 } | 1091 } |
| 1092 PrintF(out, "\n"); | 1092 PrintF(out, "\n"); |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 | 1095 |
| 1096 #endif // OBJECT_PRINT | 1096 #endif // OBJECT_PRINT |
| 1097 | 1097 |
| 1098 | 1098 |
| 1099 } } // namespace v8::internal | 1099 } } // namespace v8::internal |
| OLD | NEW |