| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <iomanip> | 7 #include <iomanip> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 11420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11431 os << "STRICT\n"; | 11431 os << "STRICT\n"; |
| 11432 } else { | 11432 } else { |
| 11433 os << extra << "\n"; | 11433 os << extra << "\n"; |
| 11434 } | 11434 } |
| 11435 } | 11435 } |
| 11436 | 11436 |
| 11437 | 11437 |
| 11438 void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT | 11438 void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT |
| 11439 os << "kind = " << Kind2String(kind()) << "\n"; | 11439 os << "kind = " << Kind2String(kind()) << "\n"; |
| 11440 if (IsCodeStubOrIC()) { | 11440 if (IsCodeStubOrIC()) { |
| 11441 const char* n = CodeStub::MajorName(CodeStub::GetMajorKey(this), true); | 11441 const char* n = CodeStub::MajorName(CodeStub::GetMajorKey(this)); |
| 11442 os << "major_key = " << (n == NULL ? "null" : n) << "\n"; | 11442 os << "major_key = " << (n == NULL ? "null" : n) << "\n"; |
| 11443 } | 11443 } |
| 11444 if (is_inline_cache_stub()) { | 11444 if (is_inline_cache_stub()) { |
| 11445 os << "ic_state = " << ICState2String(ic_state()) << "\n"; | 11445 os << "ic_state = " << ICState2String(ic_state()) << "\n"; |
| 11446 PrintExtraICState(os, kind(), extra_ic_state()); | 11446 PrintExtraICState(os, kind(), extra_ic_state()); |
| 11447 if (ic_state() == MONOMORPHIC) { | 11447 if (ic_state() == MONOMORPHIC) { |
| 11448 os << "type = " << StubType2String(type()) << "\n"; | 11448 os << "type = " << StubType2String(type()) << "\n"; |
| 11449 } | 11449 } |
| 11450 if (is_compare_ic_stub()) { | 11450 if (is_compare_ic_stub()) { |
| 11451 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); | 11451 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); |
| (...skipping 4248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15700 if (cell->value() != *new_value) { | 15700 if (cell->value() != *new_value) { |
| 15701 cell->set_value(*new_value); | 15701 cell->set_value(*new_value); |
| 15702 Isolate* isolate = cell->GetIsolate(); | 15702 Isolate* isolate = cell->GetIsolate(); |
| 15703 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 15703 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 15704 isolate, DependentCode::kPropertyCellChangedGroup); | 15704 isolate, DependentCode::kPropertyCellChangedGroup); |
| 15705 } | 15705 } |
| 15706 } | 15706 } |
| 15707 | 15707 |
| 15708 } // namespace internal | 15708 } // namespace internal |
| 15709 } // namespace v8 | 15709 } // namespace v8 |
| OLD | NEW |