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

Side by Side Diff: src/objects.cc

Issue 1419143003: Show builtin name when printing Code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | 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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698