| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 10701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10712 // If there is no back edge table, the "table start" will be at or after | 10712 // If there is no back edge table, the "table start" will be at or after |
| 10713 // (due to alignment) the end of the instruction stream. | 10713 // (due to alignment) the end of the instruction stream. |
| 10714 if (static_cast<int>(offset) < instruction_size()) { | 10714 if (static_cast<int>(offset) < instruction_size()) { |
| 10715 Address back_edge_cursor = instruction_start() + offset; | 10715 Address back_edge_cursor = instruction_start() + offset; |
| 10716 uint32_t table_length = Memory::uint32_at(back_edge_cursor); | 10716 uint32_t table_length = Memory::uint32_at(back_edge_cursor); |
| 10717 PrintF(out, "Back edges (size = %u)\n", table_length); | 10717 PrintF(out, "Back edges (size = %u)\n", table_length); |
| 10718 PrintF(out, "ast_id pc_offset loop_depth\n"); | 10718 PrintF(out, "ast_id pc_offset loop_depth\n"); |
| 10719 for (uint32_t i = 0; i < table_length; ++i) { | 10719 for (uint32_t i = 0; i < table_length; ++i) { |
| 10720 uint32_t ast_id = Memory::uint32_at(back_edge_cursor); | 10720 uint32_t ast_id = Memory::uint32_at(back_edge_cursor); |
| 10721 uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); | 10721 uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); |
| 10722 uint8_t loop_depth = Memory::uint8_at(back_edge_cursor + 2 * kIntSize); | 10722 uint32_t loop_depth = Memory::uint32_at(back_edge_cursor + |
| 10723 2 * kIntSize); |
| 10723 PrintF(out, "%6u %9u %10u\n", ast_id, pc_offset, loop_depth); | 10724 PrintF(out, "%6u %9u %10u\n", ast_id, pc_offset, loop_depth); |
| 10724 back_edge_cursor += FullCodeGenerator::kBackEdgeEntrySize; | 10725 back_edge_cursor += FullCodeGenerator::kBackEdgeEntrySize; |
| 10725 } | 10726 } |
| 10726 PrintF(out, "\n"); | 10727 PrintF(out, "\n"); |
| 10727 } | 10728 } |
| 10728 #ifdef OBJECT_PRINT | 10729 #ifdef OBJECT_PRINT |
| 10729 if (!type_feedback_info()->IsUndefined()) { | 10730 if (!type_feedback_info()->IsUndefined()) { |
| 10730 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(out); | 10731 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(out); |
| 10731 PrintF(out, "\n"); | 10732 PrintF(out, "\n"); |
| 10732 } | 10733 } |
| (...skipping 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15823 return static_cast<Type*>(type_raw()); | 15824 return static_cast<Type*>(type_raw()); |
| 15824 } | 15825 } |
| 15825 | 15826 |
| 15826 | 15827 |
| 15827 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { | 15828 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { |
| 15828 set_type_raw(type, ignored); | 15829 set_type_raw(type, ignored); |
| 15829 } | 15830 } |
| 15830 | 15831 |
| 15831 | 15832 |
| 15832 } } // namespace v8::internal | 15833 } } // namespace v8::internal |
| OLD | NEW |