| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| (...skipping 13632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13643 std::ostream& os) { // NOLINT | 13643 std::ostream& os) { // NOLINT |
| 13644 os << "Deoptimization Output Data (deopt points = " << this->DeoptPoints() | 13644 os << "Deoptimization Output Data (deopt points = " << this->DeoptPoints() |
| 13645 << ")\n"; | 13645 << ")\n"; |
| 13646 if (this->DeoptPoints() == 0) return; | 13646 if (this->DeoptPoints() == 0) return; |
| 13647 | 13647 |
| 13648 os << "ast id pc state\n"; | 13648 os << "ast id pc state\n"; |
| 13649 for (int i = 0; i < this->DeoptPoints(); i++) { | 13649 for (int i = 0; i < this->DeoptPoints(); i++) { |
| 13650 int pc_and_state = this->PcAndState(i)->value(); | 13650 int pc_and_state = this->PcAndState(i)->value(); |
| 13651 os << std::setw(6) << this->AstId(i).ToInt() << " " << std::setw(8) | 13651 os << std::setw(6) << this->AstId(i).ToInt() << " " << std::setw(8) |
| 13652 << FullCodeGenerator::PcField::decode(pc_and_state) << " " | 13652 << FullCodeGenerator::PcField::decode(pc_and_state) << " " |
| 13653 << Deoptimizer::BailoutStateToString( | 13653 << FullCodeGenerator::State2String( |
| 13654 FullCodeGenerator::BailoutStateField::decode(pc_and_state)) | 13654 FullCodeGenerator::StateField::decode(pc_and_state)) << "\n"; |
| 13655 << "\n"; | |
| 13656 } | 13655 } |
| 13657 } | 13656 } |
| 13658 | 13657 |
| 13659 | 13658 |
| 13660 void HandlerTable::HandlerTableRangePrint(std::ostream& os) { | 13659 void HandlerTable::HandlerTableRangePrint(std::ostream& os) { |
| 13661 os << " from to hdlr\n"; | 13660 os << " from to hdlr\n"; |
| 13662 for (int i = 0; i < length(); i += kRangeEntrySize) { | 13661 for (int i = 0; i < length(); i += kRangeEntrySize) { |
| 13663 int pc_start = Smi::cast(get(i + kRangeStartIndex))->value(); | 13662 int pc_start = Smi::cast(get(i + kRangeStartIndex))->value(); |
| 13664 int pc_end = Smi::cast(get(i + kRangeEndIndex))->value(); | 13663 int pc_end = Smi::cast(get(i + kRangeEndIndex))->value(); |
| 13665 int handler_field = Smi::cast(get(i + kRangeHandlerIndex))->value(); | 13664 int handler_field = Smi::cast(get(i + kRangeHandlerIndex))->value(); |
| (...skipping 4628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18294 if (cell->value() != *new_value) { | 18293 if (cell->value() != *new_value) { |
| 18295 cell->set_value(*new_value); | 18294 cell->set_value(*new_value); |
| 18296 Isolate* isolate = cell->GetIsolate(); | 18295 Isolate* isolate = cell->GetIsolate(); |
| 18297 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 18296 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 18298 isolate, DependentCode::kPropertyCellChangedGroup); | 18297 isolate, DependentCode::kPropertyCellChangedGroup); |
| 18299 } | 18298 } |
| 18300 } | 18299 } |
| 18301 | 18300 |
| 18302 } // namespace internal | 18301 } // namespace internal |
| 18303 } // namespace v8 | 18302 } // namespace v8 |
| OLD | NEW |