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

Side by Side Diff: src/objects-printer.cc

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE. Created 3 years, 10 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <memory> 8 #include <memory>
9 9
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 os << "\n - shared_info = " << Brief(shared()); 1045 os << "\n - shared_info = " << Brief(shared());
1046 os << "\n - name = " << Brief(shared()->name()); 1046 os << "\n - name = " << Brief(shared()->name());
1047 os << "\n - formal_parameter_count = " 1047 os << "\n - formal_parameter_count = "
1048 << shared()->internal_formal_parameter_count(); 1048 << shared()->internal_formal_parameter_count();
1049 if (IsGeneratorFunction(shared()->kind())) { 1049 if (IsGeneratorFunction(shared()->kind())) {
1050 os << "\n - generator"; 1050 os << "\n - generator";
1051 } else if (IsAsyncFunction(shared()->kind())) { 1051 } else if (IsAsyncFunction(shared()->kind())) {
1052 os << "\n - async"; 1052 os << "\n - async";
1053 } 1053 }
1054 os << "\n - context = " << Brief(context()); 1054 os << "\n - context = " << Brief(context());
1055 os << "\n - feedback vector = " << Brief(feedback_vector()); 1055 os << "\n - feedback vector cell = " << Brief(feedback_vector_cell());
1056 os << "\n - code = " << Brief(code()); 1056 os << "\n - code = " << Brief(code());
1057 JSObjectPrintBody(os, this); 1057 JSObjectPrintBody(os, this);
1058 } 1058 }
1059 1059
1060 1060
1061 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT 1061 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
1062 HeapObject::PrintHeader(os, "SharedFunctionInfo"); 1062 HeapObject::PrintHeader(os, "SharedFunctionInfo");
1063 os << "\n - name = " << Brief(name()); 1063 os << "\n - name = " << Brief(name());
1064 os << "\n - formal_parameter_count = " << internal_formal_parameter_count(); 1064 os << "\n - formal_parameter_count = " << internal_formal_parameter_count();
1065 os << "\n - expected_nof_properties = " << expected_nof_properties(); 1065 os << "\n - expected_nof_properties = " << expected_nof_properties();
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 printf("Not a transition array\n"); 1714 printf("Not a transition array\n");
1715 } else { 1715 } else {
1716 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1716 reinterpret_cast<i::TransitionArray*>(object)->Print();
1717 } 1717 }
1718 } 1718 }
1719 1719
1720 extern void _v8_internal_Print_StackTrace() { 1720 extern void _v8_internal_Print_StackTrace() {
1721 i::Isolate* isolate = i::Isolate::Current(); 1721 i::Isolate* isolate = i::Isolate::Current();
1722 isolate->PrintStack(stdout); 1722 isolate->PrintStack(stdout);
1723 } 1723 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698