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

Side by Side Diff: src/objects.cc

Issue 7617008: Fixed printing of deoptimization input data without --print-code-verbose. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 6943 matching lines...) Expand 10 before | Expand all | Expand 10 after
6954 6954
6955 6955
6956 #ifdef ENABLE_DISASSEMBLER 6956 #ifdef ENABLE_DISASSEMBLER
6957 6957
6958 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { 6958 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) {
6959 disasm::NameConverter converter; 6959 disasm::NameConverter converter;
6960 int deopt_count = DeoptCount(); 6960 int deopt_count = DeoptCount();
6961 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); 6961 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count);
6962 if (0 == deopt_count) return; 6962 if (0 == deopt_count) return;
6963 6963
6964 PrintF(out, "%6s %6s %6s %12s\n", "index", "ast id", "argc", "commands"); 6964 PrintF(out, "%6s %6s %6s %12s\n", "index", "ast id", "argc",
6965 FLAG_print_code_verbose ? "commands" : "");
6965 for (int i = 0; i < deopt_count; i++) { 6966 for (int i = 0; i < deopt_count; i++) {
6966 PrintF(out, "%6d %6d %6d", 6967 PrintF(out, "%6d %6d %6d",
6967 i, AstId(i)->value(), ArgumentsStackHeight(i)->value()); 6968 i, AstId(i)->value(), ArgumentsStackHeight(i)->value());
6968 6969
6969 if (!FLAG_print_code_verbose) continue; 6970 if (!FLAG_print_code_verbose) {
6971 PrintF(out, "\n");
6972 continue;
6973 }
6970 // Print details of the frame translation. 6974 // Print details of the frame translation.
6971 int translation_index = TranslationIndex(i)->value(); 6975 int translation_index = TranslationIndex(i)->value();
6972 TranslationIterator iterator(TranslationByteArray(), translation_index); 6976 TranslationIterator iterator(TranslationByteArray(), translation_index);
6973 Translation::Opcode opcode = 6977 Translation::Opcode opcode =
6974 static_cast<Translation::Opcode>(iterator.Next()); 6978 static_cast<Translation::Opcode>(iterator.Next());
6975 ASSERT(Translation::BEGIN == opcode); 6979 ASSERT(Translation::BEGIN == opcode);
6976 int frame_count = iterator.Next(); 6980 int frame_count = iterator.Next();
6977 PrintF(out, " %s {count=%d}\n", Translation::StringFor(opcode), 6981 PrintF(out, " %s {count=%d}\n", Translation::StringFor(opcode),
6978 frame_count); 6982 frame_count);
6979 6983
(...skipping 4602 matching lines...) Expand 10 before | Expand all | Expand 10 after
11582 if (break_point_objects()->IsUndefined()) return 0; 11586 if (break_point_objects()->IsUndefined()) return 0;
11583 // Single break point. 11587 // Single break point.
11584 if (!break_point_objects()->IsFixedArray()) return 1; 11588 if (!break_point_objects()->IsFixedArray()) return 1;
11585 // Multiple break points. 11589 // Multiple break points.
11586 return FixedArray::cast(break_point_objects())->length(); 11590 return FixedArray::cast(break_point_objects())->length();
11587 } 11591 }
11588 #endif 11592 #endif
11589 11593
11590 11594
11591 } } // namespace v8::internal 11595 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698