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

Side by Side Diff: src/objects.cc

Issue 7003093: Always print the deoptimization data when disassembling the generated code (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 7038 matching lines...) Expand 10 before | Expand all | Expand 10 after
7049 PrintF(out, "name = %s\n", name); 7049 PrintF(out, "name = %s\n", name);
7050 } 7050 }
7051 if (kind() == OPTIMIZED_FUNCTION) { 7051 if (kind() == OPTIMIZED_FUNCTION) {
7052 PrintF(out, "stack_slots = %d\n", stack_slots()); 7052 PrintF(out, "stack_slots = %d\n", stack_slots());
7053 } 7053 }
7054 7054
7055 PrintF(out, "Instructions (size = %d)\n", instruction_size()); 7055 PrintF(out, "Instructions (size = %d)\n", instruction_size());
7056 Disassembler::Decode(out, this); 7056 Disassembler::Decode(out, this);
7057 PrintF(out, "\n"); 7057 PrintF(out, "\n");
7058 7058
7059 #ifdef DEBUG
7060 if (kind() == FUNCTION) { 7059 if (kind() == FUNCTION) {
7061 DeoptimizationOutputData* data = 7060 DeoptimizationOutputData* data =
7062 DeoptimizationOutputData::cast(this->deoptimization_data()); 7061 DeoptimizationOutputData::cast(this->deoptimization_data());
7063 data->DeoptimizationOutputDataPrint(out); 7062 data->DeoptimizationOutputDataPrint(out);
7064 } else if (kind() == OPTIMIZED_FUNCTION) { 7063 } else if (kind() == OPTIMIZED_FUNCTION) {
7065 DeoptimizationInputData* data = 7064 DeoptimizationInputData* data =
7066 DeoptimizationInputData::cast(this->deoptimization_data()); 7065 DeoptimizationInputData::cast(this->deoptimization_data());
7067 data->DeoptimizationInputDataPrint(out); 7066 data->DeoptimizationInputDataPrint(out);
7068 } 7067 }
7069 PrintF("\n"); 7068 PrintF("\n");
7070 #endif
7071 7069
7072 if (kind() == OPTIMIZED_FUNCTION) { 7070 if (kind() == OPTIMIZED_FUNCTION) {
7073 SafepointTable table(this); 7071 SafepointTable table(this);
7074 PrintF(out, "Safepoints (size = %u)\n", table.size()); 7072 PrintF(out, "Safepoints (size = %u)\n", table.size());
7075 for (unsigned i = 0; i < table.length(); i++) { 7073 for (unsigned i = 0; i < table.length(); i++) {
7076 unsigned pc_offset = table.GetPcOffset(i); 7074 unsigned pc_offset = table.GetPcOffset(i);
7077 PrintF(out, "%p %4d ", (instruction_start() + pc_offset), pc_offset); 7075 PrintF(out, "%p %4d ", (instruction_start() + pc_offset), pc_offset);
7078 table.PrintEntry(i); 7076 table.PrintEntry(i);
7079 PrintF(out, " (sp -> fp)"); 7077 PrintF(out, " (sp -> fp)");
7080 SafepointEntry entry = table.GetEntry(i); 7078 SafepointEntry entry = table.GetEntry(i);
(...skipping 4127 matching lines...) Expand 10 before | Expand all | Expand 10 after
11208 if (break_point_objects()->IsUndefined()) return 0; 11206 if (break_point_objects()->IsUndefined()) return 0;
11209 // Single beak point. 11207 // Single beak point.
11210 if (!break_point_objects()->IsFixedArray()) return 1; 11208 if (!break_point_objects()->IsFixedArray()) return 1;
11211 // Multiple break points. 11209 // Multiple break points.
11212 return FixedArray::cast(break_point_objects())->length(); 11210 return FixedArray::cast(break_point_objects())->length();
11213 } 11211 }
11214 #endif 11212 #endif
11215 11213
11216 11214
11217 } } // namespace v8::internal 11215 } } // 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