| 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 15008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15019 } | 15019 } |
| 15020 | 15020 |
| 15021 void BytecodeArray::Disassemble(std::ostream& os) { | 15021 void BytecodeArray::Disassemble(std::ostream& os) { |
| 15022 os << "Parameter count " << parameter_count() << "\n"; | 15022 os << "Parameter count " << parameter_count() << "\n"; |
| 15023 os << "Frame size " << frame_size() << "\n"; | 15023 os << "Frame size " << frame_size() << "\n"; |
| 15024 Vector<char> buf = Vector<char>::New(50); | 15024 Vector<char> buf = Vector<char>::New(50); |
| 15025 | 15025 |
| 15026 const uint8_t* base_address = GetFirstBytecodeAddress(); | 15026 const uint8_t* base_address = GetFirstBytecodeAddress(); |
| 15027 interpreter::SourcePositionTableIterator source_positions( | 15027 interpreter::SourcePositionTableIterator source_positions( |
| 15028 source_position_table()); | 15028 source_position_table()); |
| 15029 |
| 15029 interpreter::BytecodeArrayIterator iterator(handle(this)); | 15030 interpreter::BytecodeArrayIterator iterator(handle(this)); |
| 15030 while (!iterator.done()) { | 15031 while (!iterator.done()) { |
| 15031 if (!source_positions.done() && | 15032 if (!source_positions.done() && |
| 15032 iterator.current_offset() == source_positions.bytecode_offset()) { | 15033 iterator.current_offset() == source_positions.bytecode_offset()) { |
| 15033 os << std::setw(5) << source_positions.source_position(); | 15034 os << std::setw(5) << source_positions.source_position(); |
| 15034 os << (source_positions.is_statement() ? " S> " : " E> "); | 15035 os << (source_positions.is_statement() ? " S> " : " E> "); |
| 15035 source_positions.Advance(); | 15036 source_positions.Advance(); |
| 15036 } else { | 15037 } else { |
| 15037 os << " "; | 15038 os << " "; |
| 15038 } | 15039 } |
| (...skipping 4733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19772 if (cell->value() != *new_value) { | 19773 if (cell->value() != *new_value) { |
| 19773 cell->set_value(*new_value); | 19774 cell->set_value(*new_value); |
| 19774 Isolate* isolate = cell->GetIsolate(); | 19775 Isolate* isolate = cell->GetIsolate(); |
| 19775 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19776 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 19776 isolate, DependentCode::kPropertyCellChangedGroup); | 19777 isolate, DependentCode::kPropertyCellChangedGroup); |
| 19777 } | 19778 } |
| 19778 } | 19779 } |
| 19779 | 19780 |
| 19780 } // namespace internal | 19781 } // namespace internal |
| 19781 } // namespace v8 | 19782 } // namespace v8 |
| OLD | NEW |