| 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 <cmath> | 7 #include <cmath> |
| 8 #include <iomanip> | 8 #include <iomanip> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| (...skipping 13296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13307 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); | 13307 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); |
| 13308 CompareICStub stub(stub_key(), GetIsolate()); | 13308 CompareICStub stub(stub_key(), GetIsolate()); |
| 13309 os << "compare_state = " << CompareICState::GetStateName(stub.left()) | 13309 os << "compare_state = " << CompareICState::GetStateName(stub.left()) |
| 13310 << "*" << CompareICState::GetStateName(stub.right()) << " -> " | 13310 << "*" << CompareICState::GetStateName(stub.right()) << " -> " |
| 13311 << CompareICState::GetStateName(stub.state()) << "\n"; | 13311 << CompareICState::GetStateName(stub.state()) << "\n"; |
| 13312 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; | 13312 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; |
| 13313 } | 13313 } |
| 13314 } | 13314 } |
| 13315 if ((name != NULL) && (name[0] != '\0')) { | 13315 if ((name != NULL) && (name[0] != '\0')) { |
| 13316 os << "name = " << name << "\n"; | 13316 os << "name = " << name << "\n"; |
| 13317 } else if (kind() == BUILTIN) { |
| 13318 name = GetIsolate()->builtins()->Lookup(instruction_start()); |
| 13319 if (name != NULL) { |
| 13320 os << "name = " << name << "\n"; |
| 13321 } |
| 13317 } | 13322 } |
| 13318 if (kind() == OPTIMIZED_FUNCTION) { | 13323 if (kind() == OPTIMIZED_FUNCTION) { |
| 13319 os << "stack_slots = " << stack_slots() << "\n"; | 13324 os << "stack_slots = " << stack_slots() << "\n"; |
| 13320 } | 13325 } |
| 13321 os << "compiler = " << (is_turbofanned() | 13326 os << "compiler = " << (is_turbofanned() |
| 13322 ? "turbofan" | 13327 ? "turbofan" |
| 13323 : is_crankshafted() ? "crankshaft" | 13328 : is_crankshafted() ? "crankshaft" |
| 13324 : kind() == Code::FUNCTION | 13329 : kind() == Code::FUNCTION |
| 13325 ? "full-codegen" | 13330 ? "full-codegen" |
| 13326 : "unknown") << "\n"; | 13331 : "unknown") << "\n"; |
| (...skipping 4505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17832 if (cell->value() != *new_value) { | 17837 if (cell->value() != *new_value) { |
| 17833 cell->set_value(*new_value); | 17838 cell->set_value(*new_value); |
| 17834 Isolate* isolate = cell->GetIsolate(); | 17839 Isolate* isolate = cell->GetIsolate(); |
| 17835 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 17840 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 17836 isolate, DependentCode::kPropertyCellChangedGroup); | 17841 isolate, DependentCode::kPropertyCellChangedGroup); |
| 17837 } | 17842 } |
| 17838 } | 17843 } |
| 17839 | 17844 |
| 17840 } // namespace internal | 17845 } // namespace internal |
| 17841 } // namespace v8 | 17846 } // namespace v8 |
| OLD | NEW |