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 9139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9150 bailout_id == Deoptimizer::GetDeoptimizationId( | 9150 bailout_id == Deoptimizer::GetDeoptimizationId( |
9151 info->target_address(), Deoptimizer::EAGER)) { | 9151 info->target_address(), Deoptimizer::EAGER)) { |
9152 CHECK(info->rmode() == RelocInfo::RUNTIME_ENTRY); | 9152 CHECK(info->rmode() == RelocInfo::RUNTIME_ENTRY); |
9153 PrintF(" %s\n", last_comment); | 9153 PrintF(" %s\n", last_comment); |
9154 return; | 9154 return; |
9155 } | 9155 } |
9156 } | 9156 } |
9157 } | 9157 } |
9158 | 9158 |
9159 | 9159 |
| 9160 // Identify kind of code. |
| 9161 const char* Code::Kind2String(Kind kind) { |
| 9162 switch (kind) { |
| 9163 case FUNCTION: return "FUNCTION"; |
| 9164 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; |
| 9165 case COMPILED_STUB: return "COMPILED_STUB"; |
| 9166 case STUB: return "STUB"; |
| 9167 case BUILTIN: return "BUILTIN"; |
| 9168 case LOAD_IC: return "LOAD_IC"; |
| 9169 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; |
| 9170 case STORE_IC: return "STORE_IC"; |
| 9171 case KEYED_STORE_IC: return "KEYED_STORE_IC"; |
| 9172 case CALL_IC: return "CALL_IC"; |
| 9173 case KEYED_CALL_IC: return "KEYED_CALL_IC"; |
| 9174 case UNARY_OP_IC: return "UNARY_OP_IC"; |
| 9175 case BINARY_OP_IC: return "BINARY_OP_IC"; |
| 9176 case COMPARE_IC: return "COMPARE_IC"; |
| 9177 case TO_BOOLEAN_IC: return "TO_BOOLEAN_IC"; |
| 9178 } |
| 9179 UNREACHABLE(); |
| 9180 return NULL; |
| 9181 } |
| 9182 |
| 9183 |
9160 #ifdef ENABLE_DISASSEMBLER | 9184 #ifdef ENABLE_DISASSEMBLER |
9161 | 9185 |
9162 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { | 9186 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { |
9163 disasm::NameConverter converter; | 9187 disasm::NameConverter converter; |
9164 int deopt_count = DeoptCount(); | 9188 int deopt_count = DeoptCount(); |
9165 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); | 9189 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); |
9166 if (0 == deopt_count) return; | 9190 if (0 == deopt_count) return; |
9167 | 9191 |
9168 PrintF(out, "%6s %6s %6s %6s %12s\n", "index", "ast id", "argc", "pc", | 9192 PrintF(out, "%6s %6s %6s %6s %12s\n", "index", "ast id", "argc", "pc", |
9169 FLAG_print_code_verbose ? "commands" : ""); | 9193 FLAG_print_code_verbose ? "commands" : ""); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9328 int pc_and_state = this->PcAndState(i)->value(); | 9352 int pc_and_state = this->PcAndState(i)->value(); |
9329 PrintF("%6d %8d %s\n", | 9353 PrintF("%6d %8d %s\n", |
9330 this->AstId(i).ToInt(), | 9354 this->AstId(i).ToInt(), |
9331 FullCodeGenerator::PcField::decode(pc_and_state), | 9355 FullCodeGenerator::PcField::decode(pc_and_state), |
9332 FullCodeGenerator::State2String( | 9356 FullCodeGenerator::State2String( |
9333 FullCodeGenerator::StateField::decode(pc_and_state))); | 9357 FullCodeGenerator::StateField::decode(pc_and_state))); |
9334 } | 9358 } |
9335 } | 9359 } |
9336 | 9360 |
9337 | 9361 |
9338 // Identify kind of code. | |
9339 const char* Code::Kind2String(Kind kind) { | |
9340 switch (kind) { | |
9341 case FUNCTION: return "FUNCTION"; | |
9342 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; | |
9343 case COMPILED_STUB: return "COMPILED_STUB"; | |
9344 case STUB: return "STUB"; | |
9345 case BUILTIN: return "BUILTIN"; | |
9346 case LOAD_IC: return "LOAD_IC"; | |
9347 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; | |
9348 case STORE_IC: return "STORE_IC"; | |
9349 case KEYED_STORE_IC: return "KEYED_STORE_IC"; | |
9350 case CALL_IC: return "CALL_IC"; | |
9351 case KEYED_CALL_IC: return "KEYED_CALL_IC"; | |
9352 case UNARY_OP_IC: return "UNARY_OP_IC"; | |
9353 case BINARY_OP_IC: return "BINARY_OP_IC"; | |
9354 case COMPARE_IC: return "COMPARE_IC"; | |
9355 case TO_BOOLEAN_IC: return "TO_BOOLEAN_IC"; | |
9356 } | |
9357 UNREACHABLE(); | |
9358 return NULL; | |
9359 } | |
9360 | |
9361 | |
9362 const char* Code::ICState2String(InlineCacheState state) { | 9362 const char* Code::ICState2String(InlineCacheState state) { |
9363 switch (state) { | 9363 switch (state) { |
9364 case UNINITIALIZED: return "UNINITIALIZED"; | 9364 case UNINITIALIZED: return "UNINITIALIZED"; |
9365 case PREMONOMORPHIC: return "PREMONOMORPHIC"; | 9365 case PREMONOMORPHIC: return "PREMONOMORPHIC"; |
9366 case MONOMORPHIC: return "MONOMORPHIC"; | 9366 case MONOMORPHIC: return "MONOMORPHIC"; |
9367 case MONOMORPHIC_PROTOTYPE_FAILURE: return "MONOMORPHIC_PROTOTYPE_FAILURE"; | 9367 case MONOMORPHIC_PROTOTYPE_FAILURE: return "MONOMORPHIC_PROTOTYPE_FAILURE"; |
9368 case MEGAMORPHIC: return "MEGAMORPHIC"; | 9368 case MEGAMORPHIC: return "MEGAMORPHIC"; |
9369 case DEBUG_BREAK: return "DEBUG_BREAK"; | 9369 case DEBUG_BREAK: return "DEBUG_BREAK"; |
9370 case DEBUG_PREPARE_STEP_IN: return "DEBUG_PREPARE_STEP_IN"; | 9370 case DEBUG_PREPARE_STEP_IN: return "DEBUG_PREPARE_STEP_IN"; |
9371 } | 9371 } |
(...skipping 4707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14079 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 14079 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
14080 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 14080 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
14081 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 14081 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
14082 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 14082 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
14083 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 14083 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
14084 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 14084 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
14085 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 14085 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
14086 } | 14086 } |
14087 | 14087 |
14088 } } // namespace v8::internal | 14088 } } // namespace v8::internal |
OLD | NEW |