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

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

Issue 19485008: Replace CONSTANT_FUNCTION by CONSTANT (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 5 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/property.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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 PrintF(out, " "); 287 PrintF(out, " ");
288 descs->GetKey(i)->NamePrint(out); 288 descs->GetKey(i)->NamePrint(out);
289 PrintF(out, ": "); 289 PrintF(out, ": ");
290 switch (descs->GetType(i)) { 290 switch (descs->GetType(i)) {
291 case FIELD: { 291 case FIELD: {
292 int index = descs->GetFieldIndex(i); 292 int index = descs->GetFieldIndex(i);
293 RawFastPropertyAt(index)->ShortPrint(out); 293 RawFastPropertyAt(index)->ShortPrint(out);
294 PrintF(out, " (field at offset %d)\n", index); 294 PrintF(out, " (field at offset %d)\n", index);
295 break; 295 break;
296 } 296 }
297 case CONSTANT_FUNCTION: 297 case CONSTANT:
298 descs->GetConstantFunction(i)->ShortPrint(out); 298 descs->GetConstant(i)->ShortPrint(out);
299 PrintF(out, " (constant function)\n"); 299 PrintF(out, " (constant)\n");
300 break; 300 break;
301 case CALLBACKS: 301 case CALLBACKS:
302 descs->GetCallbacksObject(i)->ShortPrint(out); 302 descs->GetCallbacksObject(i)->ShortPrint(out);
303 PrintF(out, " (callback)\n"); 303 PrintF(out, " (callback)\n");
304 break; 304 break;
305 case NORMAL: // only in slow mode 305 case NORMAL: // only in slow mode
306 case HANDLER: // only in lookup results, not in descriptors 306 case HANDLER: // only in lookup results, not in descriptors
307 case INTERCEPTOR: // only in lookup results, not in descriptors 307 case INTERCEPTOR: // only in lookup results, not in descriptors
308 // There are no transitions in the descriptor array. 308 // There are no transitions in the descriptor array.
309 case TRANSITION: 309 case TRANSITION:
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 TransitionArray* transitions = map()->transitions(); 443 TransitionArray* transitions = map()->transitions();
444 for (int i = 0; i < transitions->number_of_transitions(); i++) { 444 for (int i = 0; i < transitions->number_of_transitions(); i++) {
445 PrintF(out, " "); 445 PrintF(out, " ");
446 transitions->GetKey(i)->NamePrint(out); 446 transitions->GetKey(i)->NamePrint(out);
447 PrintF(out, ": "); 447 PrintF(out, ": ");
448 switch (transitions->GetTargetDetails(i).type()) { 448 switch (transitions->GetTargetDetails(i).type()) {
449 case FIELD: { 449 case FIELD: {
450 PrintF(out, " (transition to field)\n"); 450 PrintF(out, " (transition to field)\n");
451 break; 451 break;
452 } 452 }
453 case CONSTANT_FUNCTION: 453 case CONSTANT:
454 PrintF(out, " (transition to constant function)\n"); 454 PrintF(out, " (transition to constant)\n");
455 break; 455 break;
456 case CALLBACKS: 456 case CALLBACKS:
457 PrintF(out, " (transition to callback)\n"); 457 PrintF(out, " (transition to callback)\n");
458 break; 458 break;
459 // Values below are never in the target descriptor array. 459 // Values below are never in the target descriptor array.
460 case NORMAL: 460 case NORMAL:
461 case HANDLER: 461 case HANDLER:
462 case INTERCEPTOR: 462 case INTERCEPTOR:
463 case TRANSITION: 463 case TRANSITION:
464 case NONEXISTENT: 464 case NONEXISTENT:
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 PrintF(out, "Transition array %d\n", number_of_transitions()); 1255 PrintF(out, "Transition array %d\n", number_of_transitions());
1256 for (int i = 0; i < number_of_transitions(); i++) { 1256 for (int i = 0; i < number_of_transitions(); i++) {
1257 PrintF(out, " %d: ", i); 1257 PrintF(out, " %d: ", i);
1258 GetKey(i)->NamePrint(out); 1258 GetKey(i)->NamePrint(out);
1259 PrintF(out, ": "); 1259 PrintF(out, ": ");
1260 switch (GetTargetDetails(i).type()) { 1260 switch (GetTargetDetails(i).type()) {
1261 case FIELD: { 1261 case FIELD: {
1262 PrintF(out, " (transition to field)\n"); 1262 PrintF(out, " (transition to field)\n");
1263 break; 1263 break;
1264 } 1264 }
1265 case CONSTANT_FUNCTION: 1265 case CONSTANT:
1266 PrintF(out, " (transition to constant function)\n"); 1266 PrintF(out, " (transition to constant)\n");
1267 break; 1267 break;
1268 case CALLBACKS: 1268 case CALLBACKS:
1269 PrintF(out, " (transition to callback)\n"); 1269 PrintF(out, " (transition to callback)\n");
1270 break; 1270 break;
1271 // Values below are never in the target descriptor array. 1271 // Values below are never in the target descriptor array.
1272 case NORMAL: 1272 case NORMAL:
1273 case HANDLER: 1273 case HANDLER:
1274 case INTERCEPTOR: 1274 case INTERCEPTOR:
1275 case TRANSITION: 1275 case TRANSITION:
1276 case NONEXISTENT: 1276 case NONEXISTENT:
1277 UNREACHABLE(); 1277 UNREACHABLE();
1278 break; 1278 break;
1279 } 1279 }
1280 } 1280 }
1281 PrintF(out, "\n"); 1281 PrintF(out, "\n");
1282 } 1282 }
1283 1283
1284 1284
1285 #endif // OBJECT_PRINT 1285 #endif // OBJECT_PRINT
1286 1286
1287 1287
1288 } } // namespace v8::internal 1288 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698