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 9295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9306 } | 9306 } |
9307 } | 9307 } |
9308 } | 9308 } |
9309 | 9309 |
9310 | 9310 |
9311 // Identify kind of code. | 9311 // Identify kind of code. |
9312 const char* Code::Kind2String(Kind kind) { | 9312 const char* Code::Kind2String(Kind kind) { |
9313 switch (kind) { | 9313 switch (kind) { |
9314 case FUNCTION: return "FUNCTION"; | 9314 case FUNCTION: return "FUNCTION"; |
9315 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; | 9315 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; |
9316 case COMPILED_STUB: return "COMPILED_STUB"; | |
9317 case STUB: return "STUB"; | 9316 case STUB: return "STUB"; |
9318 case BUILTIN: return "BUILTIN"; | 9317 case BUILTIN: return "BUILTIN"; |
9319 case LOAD_IC: return "LOAD_IC"; | 9318 case LOAD_IC: return "LOAD_IC"; |
9320 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; | 9319 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; |
9321 case STORE_IC: return "STORE_IC"; | 9320 case STORE_IC: return "STORE_IC"; |
9322 case KEYED_STORE_IC: return "KEYED_STORE_IC"; | 9321 case KEYED_STORE_IC: return "KEYED_STORE_IC"; |
9323 case CALL_IC: return "CALL_IC"; | 9322 case CALL_IC: return "CALL_IC"; |
9324 case KEYED_CALL_IC: return "KEYED_CALL_IC"; | 9323 case KEYED_CALL_IC: return "KEYED_CALL_IC"; |
9325 case UNARY_OP_IC: return "UNARY_OP_IC"; | 9324 case UNARY_OP_IC: return "UNARY_OP_IC"; |
9326 case BINARY_OP_IC: return "BINARY_OP_IC"; | 9325 case BINARY_OP_IC: return "BINARY_OP_IC"; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9606 DeoptimizationOutputData* data = | 9605 DeoptimizationOutputData* data = |
9607 DeoptimizationOutputData::cast(this->deoptimization_data()); | 9606 DeoptimizationOutputData::cast(this->deoptimization_data()); |
9608 data->DeoptimizationOutputDataPrint(out); | 9607 data->DeoptimizationOutputDataPrint(out); |
9609 } else if (kind() == OPTIMIZED_FUNCTION) { | 9608 } else if (kind() == OPTIMIZED_FUNCTION) { |
9610 DeoptimizationInputData* data = | 9609 DeoptimizationInputData* data = |
9611 DeoptimizationInputData::cast(this->deoptimization_data()); | 9610 DeoptimizationInputData::cast(this->deoptimization_data()); |
9612 data->DeoptimizationInputDataPrint(out); | 9611 data->DeoptimizationInputDataPrint(out); |
9613 } | 9612 } |
9614 PrintF("\n"); | 9613 PrintF("\n"); |
9615 | 9614 |
9616 if (kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB) { | 9615 if (is_crankshafted()) { |
9617 SafepointTable table(this); | 9616 SafepointTable table(this); |
9618 PrintF(out, "Safepoints (size = %u)\n", table.size()); | 9617 PrintF(out, "Safepoints (size = %u)\n", table.size()); |
9619 for (unsigned i = 0; i < table.length(); i++) { | 9618 for (unsigned i = 0; i < table.length(); i++) { |
9620 unsigned pc_offset = table.GetPcOffset(i); | 9619 unsigned pc_offset = table.GetPcOffset(i); |
9621 PrintF(out, "%p %4d ", (instruction_start() + pc_offset), pc_offset); | 9620 PrintF(out, "%p %4d ", (instruction_start() + pc_offset), pc_offset); |
9622 table.PrintEntry(i); | 9621 table.PrintEntry(i); |
9623 PrintF(out, " (sp -> fp)"); | 9622 PrintF(out, " (sp -> fp)"); |
9624 SafepointEntry entry = table.GetEntry(i); | 9623 SafepointEntry entry = table.GetEntry(i); |
9625 if (entry.deoptimization_index() != Safepoint::kNoDeoptimizationIndex) { | 9624 if (entry.deoptimization_index() != Safepoint::kNoDeoptimizationIndex) { |
9626 PrintF(out, " %6d", entry.deoptimization_index()); | 9625 PrintF(out, " %6d", entry.deoptimization_index()); |
(...skipping 4852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14479 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 14478 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
14480 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 14479 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
14481 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 14480 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
14482 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 14481 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
14483 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 14482 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
14484 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 14483 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
14485 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 14484 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
14486 } | 14485 } |
14487 | 14486 |
14488 } } // namespace v8::internal | 14487 } } // namespace v8::internal |
OLD | NEW |