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

Side by Side Diff: src/objects-printer.cc

Issue 11093026: Reapply descriptor array sharing. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: fix long line Created 8 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/profile-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698