Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: src/objects.cc

Issue 1806883002: [interpreter] Print name together with bytecode handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 #include "src/deoptimizer.h" 27 #include "src/deoptimizer.h"
28 #include "src/elements.h" 28 #include "src/elements.h"
29 #include "src/execution.h" 29 #include "src/execution.h"
30 #include "src/field-index-inl.h" 30 #include "src/field-index-inl.h"
31 #include "src/field-index.h" 31 #include "src/field-index.h"
32 #include "src/field-type.h" 32 #include "src/field-type.h"
33 #include "src/full-codegen/full-codegen.h" 33 #include "src/full-codegen/full-codegen.h"
34 #include "src/ic/ic.h" 34 #include "src/ic/ic.h"
35 #include "src/identity-map.h" 35 #include "src/identity-map.h"
36 #include "src/interpreter/bytecode-array-iterator.h" 36 #include "src/interpreter/bytecode-array-iterator.h"
37 #include "src/interpreter/interpreter.h"
37 #include "src/interpreter/source-position-table.h" 38 #include "src/interpreter/source-position-table.h"
38 #include "src/isolate-inl.h" 39 #include "src/isolate-inl.h"
39 #include "src/keys.h" 40 #include "src/keys.h"
40 #include "src/list.h" 41 #include "src/list.h"
41 #include "src/log.h" 42 #include "src/log.h"
42 #include "src/lookup.h" 43 #include "src/lookup.h"
43 #include "src/macro-assembler.h" 44 #include "src/macro-assembler.h"
44 #include "src/messages.h" 45 #include "src/messages.h"
45 #include "src/objects-body-descriptors-inl.h" 46 #include "src/objects-body-descriptors-inl.h"
46 #include "src/profiler/cpu-profiler.h" 47 #include "src/profiler/cpu-profiler.h"
(...skipping 14761 matching lines...) Expand 10 before | Expand all | Expand 10 after
14808 } 14809 }
14809 if (is_compare_ic_stub()) { 14810 if (is_compare_ic_stub()) {
14810 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC); 14811 DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC);
14811 CompareICStub stub(stub_key(), GetIsolate()); 14812 CompareICStub stub(stub_key(), GetIsolate());
14812 os << "compare_state = " << CompareICState::GetStateName(stub.left()) 14813 os << "compare_state = " << CompareICState::GetStateName(stub.left())
14813 << "*" << CompareICState::GetStateName(stub.right()) << " -> " 14814 << "*" << CompareICState::GetStateName(stub.right()) << " -> "
14814 << CompareICState::GetStateName(stub.state()) << "\n"; 14815 << CompareICState::GetStateName(stub.state()) << "\n";
14815 os << "compare_operation = " << Token::Name(stub.op()) << "\n"; 14816 os << "compare_operation = " << Token::Name(stub.op()) << "\n";
14816 } 14817 }
14817 } 14818 }
14818 if ((name != NULL) && (name[0] != '\0')) { 14819 if ((name != nullptr) && (name[0] != '\0')) {
14819 os << "name = " << name << "\n"; 14820 os << "name = " << name << "\n";
14820 } else if (kind() == BUILTIN) { 14821 } else if (kind() == BUILTIN) {
14821 name = GetIsolate()->builtins()->Lookup(instruction_start()); 14822 name = GetIsolate()->builtins()->Lookup(instruction_start());
14822 if (name != NULL) { 14823 if (name != nullptr) {
14824 os << "name = " << name << "\n";
14825 }
14826 } else if (kind() == BYTECODE_HANDLER) {
14827 name = GetIsolate()->interpreter()->LookupNameOfBytecodeHandler(this);
14828 if (name != nullptr) {
14823 os << "name = " << name << "\n"; 14829 os << "name = " << name << "\n";
14824 } 14830 }
14825 } 14831 }
14826 if (kind() == OPTIMIZED_FUNCTION) { 14832 if (kind() == OPTIMIZED_FUNCTION) {
14827 os << "stack_slots = " << stack_slots() << "\n"; 14833 os << "stack_slots = " << stack_slots() << "\n";
14828 } 14834 }
14829 os << "compiler = " << (is_turbofanned() 14835 os << "compiler = " << (is_turbofanned()
14830 ? "turbofan" 14836 ? "turbofan"
14831 : is_crankshafted() ? "crankshaft" 14837 : is_crankshafted() ? "crankshaft"
14832 : kind() == Code::FUNCTION 14838 : kind() == Code::FUNCTION
(...skipping 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after
19728 if (cell->value() != *new_value) { 19734 if (cell->value() != *new_value) {
19729 cell->set_value(*new_value); 19735 cell->set_value(*new_value);
19730 Isolate* isolate = cell->GetIsolate(); 19736 Isolate* isolate = cell->GetIsolate();
19731 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19737 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19732 isolate, DependentCode::kPropertyCellChangedGroup); 19738 isolate, DependentCode::kPropertyCellChangedGroup);
19733 } 19739 }
19734 } 19740 }
19735 19741
19736 } // namespace internal 19742 } // namespace internal
19737 } // namespace v8 19743 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698