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 <iomanip> | 5 #include <iomanip> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 11915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11926 << CompareICState::GetStateName(stub.state()) << "\n"; | 11926 << CompareICState::GetStateName(stub.state()) << "\n"; |
11927 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; | 11927 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; |
11928 } | 11928 } |
11929 } | 11929 } |
11930 if ((name != NULL) && (name[0] != '\0')) { | 11930 if ((name != NULL) && (name[0] != '\0')) { |
11931 os << "name = " << name << "\n"; | 11931 os << "name = " << name << "\n"; |
11932 } | 11932 } |
11933 if (kind() == OPTIMIZED_FUNCTION) { | 11933 if (kind() == OPTIMIZED_FUNCTION) { |
11934 os << "stack_slots = " << stack_slots() << "\n"; | 11934 os << "stack_slots = " << stack_slots() << "\n"; |
11935 } | 11935 } |
| 11936 os << "compiler = " << (is_turbofanned() |
| 11937 ? "turbofan" |
| 11938 : is_crankshafted() ? "crankshaft" |
| 11939 : kind() == Code::FUNCTION |
| 11940 ? "full-codegen" |
| 11941 : "unknown") << "\n"; |
11936 | 11942 |
11937 os << "Instructions (size = " << instruction_size() << ")\n"; | 11943 os << "Instructions (size = " << instruction_size() << ")\n"; |
11938 { | 11944 { |
11939 Isolate* isolate = GetIsolate(); | 11945 Isolate* isolate = GetIsolate(); |
11940 int decode_size = is_crankshafted() | 11946 int decode_size = is_crankshafted() |
11941 ? static_cast<int>(safepoint_table_offset()) | 11947 ? static_cast<int>(safepoint_table_offset()) |
11942 : instruction_size(); | 11948 : instruction_size(); |
11943 // If there might be a back edge table, stop before reaching it. | 11949 // If there might be a back edge table, stop before reaching it. |
11944 if (kind() == Code::FUNCTION) { | 11950 if (kind() == Code::FUNCTION) { |
11945 decode_size = | 11951 decode_size = |
(...skipping 5439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17385 void PropertyCell::SetValueWithInvalidation(Handle<PropertyCell> cell, | 17391 void PropertyCell::SetValueWithInvalidation(Handle<PropertyCell> cell, |
17386 Handle<Object> new_value) { | 17392 Handle<Object> new_value) { |
17387 if (cell->value() != *new_value) { | 17393 if (cell->value() != *new_value) { |
17388 cell->set_value(*new_value); | 17394 cell->set_value(*new_value); |
17389 Isolate* isolate = cell->GetIsolate(); | 17395 Isolate* isolate = cell->GetIsolate(); |
17390 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 17396 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
17391 isolate, DependentCode::kPropertyCellChangedGroup); | 17397 isolate, DependentCode::kPropertyCellChangedGroup); |
17392 } | 17398 } |
17393 } | 17399 } |
17394 } } // namespace v8::internal | 17400 } } // namespace v8::internal |
OLD | NEW |