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 10206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10217 // If there is no back edge table, the "table start" will be at or after | 10217 // If there is no back edge table, the "table start" will be at or after |
10218 // (due to alignment) the end of the instruction stream. | 10218 // (due to alignment) the end of the instruction stream. |
10219 if (static_cast<int>(offset) < instruction_size()) { | 10219 if (static_cast<int>(offset) < instruction_size()) { |
10220 Address back_edge_cursor = instruction_start() + offset; | 10220 Address back_edge_cursor = instruction_start() + offset; |
10221 uint32_t table_length = Memory::uint32_at(back_edge_cursor); | 10221 uint32_t table_length = Memory::uint32_at(back_edge_cursor); |
10222 PrintF(out, "Back edges (size = %u)\n", table_length); | 10222 PrintF(out, "Back edges (size = %u)\n", table_length); |
10223 PrintF(out, "ast_id pc_offset loop_depth\n"); | 10223 PrintF(out, "ast_id pc_offset loop_depth\n"); |
10224 for (uint32_t i = 0; i < table_length; ++i) { | 10224 for (uint32_t i = 0; i < table_length; ++i) { |
10225 uint32_t ast_id = Memory::uint32_at(back_edge_cursor); | 10225 uint32_t ast_id = Memory::uint32_at(back_edge_cursor); |
10226 uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); | 10226 uint32_t pc_offset = Memory::uint32_at(back_edge_cursor + kIntSize); |
10227 uint8_t loop_depth = Memory::uint8_at(back_edge_cursor + 2 * kIntSize); | 10227 uint32_t loop_depth = Memory::uint32_at(back_edge_cursor + |
| 10228 2 * kIntSize); |
10228 PrintF(out, "%6u %9u %10u\n", ast_id, pc_offset, loop_depth); | 10229 PrintF(out, "%6u %9u %10u\n", ast_id, pc_offset, loop_depth); |
10229 back_edge_cursor += FullCodeGenerator::kBackEdgeEntrySize; | 10230 back_edge_cursor += FullCodeGenerator::kBackEdgeEntrySize; |
10230 } | 10231 } |
10231 PrintF(out, "\n"); | 10232 PrintF(out, "\n"); |
10232 } | 10233 } |
10233 #ifdef OBJECT_PRINT | 10234 #ifdef OBJECT_PRINT |
10234 if (!type_feedback_info()->IsUndefined()) { | 10235 if (!type_feedback_info()->IsUndefined()) { |
10235 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(out); | 10236 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(out); |
10236 PrintF(out, "\n"); | 10237 PrintF(out, "\n"); |
10237 } | 10238 } |
(...skipping 4860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15098 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 15099 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
15099 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 15100 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
15100 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 15101 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
15101 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 15102 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
15102 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 15103 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
15103 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 15104 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
15104 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 15105 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
15105 } | 15106 } |
15106 | 15107 |
15107 } } // namespace v8::internal | 15108 } } // namespace v8::internal |
OLD | NEW |