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

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

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM and x64 Created 7 years, 7 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/parser.h » ('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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698