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 10129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10140 | 10140 |
10141 | 10141 |
10142 void Code::PrintDeoptLocation(int bailout_id) { | 10142 void Code::PrintDeoptLocation(int bailout_id) { |
10143 const char* last_comment = NULL; | 10143 const char* last_comment = NULL; |
10144 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) | 10144 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) |
10145 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); | 10145 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); |
10146 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 10146 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
10147 RelocInfo* info = it.rinfo(); | 10147 RelocInfo* info = it.rinfo(); |
10148 if (info->rmode() == RelocInfo::COMMENT) { | 10148 if (info->rmode() == RelocInfo::COMMENT) { |
10149 last_comment = reinterpret_cast<const char*>(info->data()); | 10149 last_comment = reinterpret_cast<const char*>(info->data()); |
10150 } else if (last_comment != NULL && | 10150 } else if (last_comment != NULL) { |
10151 bailout_id == Deoptimizer::GetDeoptimizationId( | 10151 if ((bailout_id == Deoptimizer::GetDeoptimizationId( |
10152 GetIsolate(), info->target_address(), Deoptimizer::EAGER)) { | 10152 GetIsolate(), info->target_address(), Deoptimizer::EAGER)) || |
10153 CHECK(RelocInfo::IsRuntimeEntry(info->rmode())); | 10153 (bailout_id == Deoptimizer::GetDeoptimizationId( |
10154 PrintF(" %s\n", last_comment); | 10154 GetIsolate(), info->target_address(), Deoptimizer::SOFT))) { |
10155 return; | 10155 CHECK(RelocInfo::IsRuntimeEntry(info->rmode())); |
| 10156 PrintF(" %s\n", last_comment); |
| 10157 return; |
| 10158 } |
10156 } | 10159 } |
10157 } | 10160 } |
10158 } | 10161 } |
10159 | 10162 |
10160 | 10163 |
10161 // Identify kind of code. | 10164 // Identify kind of code. |
10162 const char* Code::Kind2String(Kind kind) { | 10165 const char* Code::Kind2String(Kind kind) { |
10163 switch (kind) { | 10166 switch (kind) { |
10164 case FUNCTION: return "FUNCTION"; | 10167 case FUNCTION: return "FUNCTION"; |
10165 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; | 10168 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; |
(...skipping 5223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15389 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 15392 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
15390 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 15393 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
15391 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 15394 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
15392 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 15395 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
15393 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 15396 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
15394 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 15397 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
15395 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 15398 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
15396 } | 15399 } |
15397 | 15400 |
15398 } } // namespace v8::internal | 15401 } } // namespace v8::internal |
OLD | NEW |