| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 void JSObject::PrintProperties(FILE* out) { | 264 void JSObject::PrintProperties(FILE* out) { |
| 265 if (HasFastProperties()) { | 265 if (HasFastProperties()) { |
| 266 DescriptorArray* descs = map()->instance_descriptors(); | 266 DescriptorArray* descs = map()->instance_descriptors(); |
| 267 for (int i = 0; i < map()->NumberOfOwnDescriptors(); i++) { | 267 for (int i = 0; i < map()->NumberOfOwnDescriptors(); i++) { |
| 268 PrintF(out, " "); | 268 PrintF(out, " "); |
| 269 descs->GetKey(i)->NamePrint(out); | 269 descs->GetKey(i)->NamePrint(out); |
| 270 PrintF(out, ": "); | 270 PrintF(out, ": "); |
| 271 switch (descs->GetType(i)) { | 271 switch (descs->GetType(i)) { |
| 272 case FIELD: { | 272 case FIELD: { |
| 273 int index = descs->GetFieldIndex(i); | 273 int index = descs->GetFieldIndex(i); |
| 274 FastPropertyAt(index)->ShortPrint(out); | 274 RawFastPropertyAt(index)->ShortPrint(out); |
| 275 PrintF(out, " (field at offset %d)\n", index); | 275 PrintF(out, " (field at offset %d)\n", index); |
| 276 break; | 276 break; |
| 277 } | 277 } |
| 278 case CONSTANT_FUNCTION: | 278 case CONSTANT_FUNCTION: |
| 279 descs->GetConstantFunction(i)->ShortPrint(out); | 279 descs->GetConstantFunction(i)->ShortPrint(out); |
| 280 PrintF(out, " (constant function)\n"); | 280 PrintF(out, " (constant function)\n"); |
| 281 break; | 281 break; |
| 282 case CALLBACKS: | 282 case CALLBACKS: |
| 283 descs->GetCallbacksObject(i)->ShortPrint(out); | 283 descs->GetCallbacksObject(i)->ShortPrint(out); |
| 284 PrintF(out, " (callback)\n"); | 284 PrintF(out, " (callback)\n"); |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 } | 1207 } |
| 1208 } | 1208 } |
| 1209 PrintF(out, "\n"); | 1209 PrintF(out, "\n"); |
| 1210 } | 1210 } |
| 1211 | 1211 |
| 1212 | 1212 |
| 1213 #endif // OBJECT_PRINT | 1213 #endif // OBJECT_PRINT |
| 1214 | 1214 |
| 1215 | 1215 |
| 1216 } } // namespace v8::internal | 1216 } } // namespace v8::internal |
| OLD | NEW |