| OLD | NEW |
| 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 6974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6985 | 6985 |
| 6986 | 6986 |
| 6987 #ifdef ENABLE_DISASSEMBLER | 6987 #ifdef ENABLE_DISASSEMBLER |
| 6988 | 6988 |
| 6989 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { | 6989 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { |
| 6990 disasm::NameConverter converter; | 6990 disasm::NameConverter converter; |
| 6991 int deopt_count = DeoptCount(); | 6991 int deopt_count = DeoptCount(); |
| 6992 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); | 6992 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); |
| 6993 if (0 == deopt_count) return; | 6993 if (0 == deopt_count) return; |
| 6994 | 6994 |
| 6995 PrintF(out, "%6s %6s %6s %12s\n", "index", "ast id", "argc", | 6995 PrintF(out, "%6s %6s %6s %6s %12s\n", "index", "ast id", "argc", "pc", |
| 6996 FLAG_print_code_verbose ? "commands" : ""); | 6996 FLAG_print_code_verbose ? "commands" : ""); |
| 6997 for (int i = 0; i < deopt_count; i++) { | 6997 for (int i = 0; i < deopt_count; i++) { |
| 6998 PrintF(out, "%6d %6d %6d", | 6998 PrintF(out, "%6d %6d %6d %6d", |
| 6999 i, AstId(i)->value(), ArgumentsStackHeight(i)->value()); | 6999 i, |
| 7000 AstId(i)->value(), |
| 7001 ArgumentsStackHeight(i)->value(), |
| 7002 Pc(i)->value()); |
| 7000 | 7003 |
| 7001 if (!FLAG_print_code_verbose) { | 7004 if (!FLAG_print_code_verbose) { |
| 7002 PrintF(out, "\n"); | 7005 PrintF(out, "\n"); |
| 7003 continue; | 7006 continue; |
| 7004 } | 7007 } |
| 7005 // Print details of the frame translation. | 7008 // Print details of the frame translation. |
| 7006 int translation_index = TranslationIndex(i)->value(); | 7009 int translation_index = TranslationIndex(i)->value(); |
| 7007 TranslationIterator iterator(TranslationByteArray(), translation_index); | 7010 TranslationIterator iterator(TranslationByteArray(), translation_index); |
| 7008 Translation::Opcode opcode = | 7011 Translation::Opcode opcode = |
| 7009 static_cast<Translation::Opcode>(iterator.Next()); | 7012 static_cast<Translation::Opcode>(iterator.Next()); |
| (...skipping 4614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11624 if (break_point_objects()->IsUndefined()) return 0; | 11627 if (break_point_objects()->IsUndefined()) return 0; |
| 11625 // Single break point. | 11628 // Single break point. |
| 11626 if (!break_point_objects()->IsFixedArray()) return 1; | 11629 if (!break_point_objects()->IsFixedArray()) return 1; |
| 11627 // Multiple break points. | 11630 // Multiple break points. |
| 11628 return FixedArray::cast(break_point_objects())->length(); | 11631 return FixedArray::cast(break_point_objects())->length(); |
| 11629 } | 11632 } |
| 11630 #endif | 11633 #endif |
| 11631 | 11634 |
| 11632 | 11635 |
| 11633 } } // namespace v8::internal | 11636 } } // namespace v8::internal |
| OLD | NEW |