OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 8498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8509 PrintF(out, " %6d", entry.deoptimization_index()); | 8509 PrintF(out, " %6d", entry.deoptimization_index()); |
8510 } else { | 8510 } else { |
8511 PrintF(out, " <none>"); | 8511 PrintF(out, " <none>"); |
8512 } | 8512 } |
8513 if (entry.argument_count() > 0) { | 8513 if (entry.argument_count() > 0) { |
8514 PrintF(out, " argc: %d", entry.argument_count()); | 8514 PrintF(out, " argc: %d", entry.argument_count()); |
8515 } | 8515 } |
8516 PrintF(out, "\n"); | 8516 PrintF(out, "\n"); |
8517 } | 8517 } |
8518 PrintF(out, "\n"); | 8518 PrintF(out, "\n"); |
| 8519 // Just print if type feedback info is ever used for optimized code. |
| 8520 ASSERT(type_feedback_info()->IsUndefined()); |
8519 } else if (kind() == FUNCTION) { | 8521 } else if (kind() == FUNCTION) { |
8520 unsigned offset = stack_check_table_offset(); | 8522 unsigned offset = stack_check_table_offset(); |
8521 // If there is no stack check table, the "table start" will at or after | 8523 // If there is no stack check table, the "table start" will at or after |
8522 // (due to alignment) the end of the instruction stream. | 8524 // (due to alignment) the end of the instruction stream. |
8523 if (static_cast<int>(offset) < instruction_size()) { | 8525 if (static_cast<int>(offset) < instruction_size()) { |
8524 unsigned* address = | 8526 unsigned* address = |
8525 reinterpret_cast<unsigned*>(instruction_start() + offset); | 8527 reinterpret_cast<unsigned*>(instruction_start() + offset); |
8526 unsigned length = address[0]; | 8528 unsigned length = address[0]; |
8527 PrintF(out, "Stack checks (size = %u)\n", length); | 8529 PrintF(out, "Stack checks (size = %u)\n", length); |
8528 PrintF(out, "ast_id pc_offset\n"); | 8530 PrintF(out, "ast_id pc_offset\n"); |
8529 for (unsigned i = 0; i < length; ++i) { | 8531 for (unsigned i = 0; i < length; ++i) { |
8530 unsigned index = (2 * i) + 1; | 8532 unsigned index = (2 * i) + 1; |
8531 PrintF(out, "%6u %9u\n", address[index], address[index + 1]); | 8533 PrintF(out, "%6u %9u\n", address[index], address[index + 1]); |
8532 } | 8534 } |
8533 PrintF(out, "\n"); | 8535 PrintF(out, "\n"); |
8534 } | 8536 } |
| 8537 if (!type_feedback_info()->IsUndefined()) { |
| 8538 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(out); |
| 8539 PrintF(out, "\n"); |
| 8540 } |
8535 } | 8541 } |
8536 | 8542 |
8537 PrintF("RelocInfo (size = %d)\n", relocation_size()); | 8543 PrintF("RelocInfo (size = %d)\n", relocation_size()); |
8538 for (RelocIterator it(this); !it.done(); it.next()) it.rinfo()->Print(out); | 8544 for (RelocIterator it(this); !it.done(); it.next()) it.rinfo()->Print(out); |
8539 PrintF(out, "\n"); | 8545 PrintF(out, "\n"); |
8540 } | 8546 } |
8541 #endif // ENABLE_DISASSEMBLER | 8547 #endif // ENABLE_DISASSEMBLER |
8542 | 8548 |
8543 | 8549 |
8544 MaybeObject* JSObject::SetFastElementsCapacityAndLength( | 8550 MaybeObject* JSObject::SetFastElementsCapacityAndLength( |
(...skipping 4582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13127 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13133 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13128 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13134 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13129 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13135 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13130 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13136 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13131 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13137 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13132 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13138 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13133 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13139 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13134 } | 13140 } |
13135 | 13141 |
13136 } } // namespace v8::internal | 13142 } } // namespace v8::internal |
OLD | NEW |