| 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 8261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8272 for (int i = 0; i < type_feedback_cells->CellCount(); i++) { | 8272 for (int i = 0; i < type_feedback_cells->CellCount(); i++) { |
| 8273 ASSERT(type_feedback_cells->AstId(i)->IsSmi()); | 8273 ASSERT(type_feedback_cells->AstId(i)->IsSmi()); |
| 8274 JSGlobalPropertyCell* cell = type_feedback_cells->Cell(i); | 8274 JSGlobalPropertyCell* cell = type_feedback_cells->Cell(i); |
| 8275 cell->set_value(TypeFeedbackCells::RawUninitializedSentinel(heap)); | 8275 cell->set_value(TypeFeedbackCells::RawUninitializedSentinel(heap)); |
| 8276 } | 8276 } |
| 8277 } | 8277 } |
| 8278 } | 8278 } |
| 8279 | 8279 |
| 8280 | 8280 |
| 8281 bool Code::allowed_in_shared_map_code_cache() { | 8281 bool Code::allowed_in_shared_map_code_cache() { |
| 8282 return is_keyed_load_stub() || is_keyed_store_stub(); | 8282 return is_keyed_load_stub() || is_keyed_store_stub() || |
| 8283 (is_compare_ic_stub() && compare_state() == CompareIC::KNOWN_OBJECTS); |
| 8283 } | 8284 } |
| 8284 | 8285 |
| 8285 | 8286 |
| 8286 #ifdef ENABLE_DISASSEMBLER | 8287 #ifdef ENABLE_DISASSEMBLER |
| 8287 | 8288 |
| 8288 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { | 8289 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { |
| 8289 disasm::NameConverter converter; | 8290 disasm::NameConverter converter; |
| 8290 int deopt_count = DeoptCount(); | 8291 int deopt_count = DeoptCount(); |
| 8291 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); | 8292 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); |
| 8292 if (0 == deopt_count) return; | 8293 if (0 == deopt_count) return; |
| (...skipping 4912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13205 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13206 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 13206 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13207 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 13207 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13208 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 13208 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13209 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 13209 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13210 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 13210 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13211 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 13211 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13212 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 13212 } | 13213 } |
| 13213 | 13214 |
| 13214 } } // namespace v8::internal | 13215 } } // namespace v8::internal |
| OLD | NEW |