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

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

Issue 2372373002: Remove getters that duplicate FunctionKind in SharedFunctionInfo and ParseInfo (Closed)
Patch Set: Remove SharedFunctionInfo::is_resumable and FunctionState stuff Created 4 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 | « src/objects-inl.h ('k') | src/parsing/parse-info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/disasm.h" 10 #include "src/disasm.h"
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 967
968 968
969 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT 969 void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
970 JSObjectPrintHeader(os, this, "Function"); 970 JSObjectPrintHeader(os, this, "Function");
971 os << "\n - initial_map = "; 971 os << "\n - initial_map = ";
972 if (has_initial_map()) os << Brief(initial_map()); 972 if (has_initial_map()) os << Brief(initial_map());
973 os << "\n - shared_info = " << Brief(shared()); 973 os << "\n - shared_info = " << Brief(shared());
974 os << "\n - name = " << Brief(shared()->name()); 974 os << "\n - name = " << Brief(shared()->name());
975 os << "\n - formal_parameter_count = " 975 os << "\n - formal_parameter_count = "
976 << shared()->internal_formal_parameter_count(); 976 << shared()->internal_formal_parameter_count();
977 if (shared()->is_generator()) { 977 if (IsGeneratorFunction(shared()->kind())) {
978 os << "\n - generator"; 978 os << "\n - generator";
979 } else if (shared()->is_async()) { 979 } else if (IsAsyncFunction(shared()->kind())) {
980 os << "\n - async"; 980 os << "\n - async";
981 } 981 }
982 os << "\n - context = " << Brief(context()); 982 os << "\n - context = " << Brief(context());
983 os << "\n - literals = " << Brief(literals()); 983 os << "\n - literals = " << Brief(literals());
984 os << "\n - code = " << Brief(code()); 984 os << "\n - code = " << Brief(code());
985 JSObjectPrintBody(os, this); 985 JSObjectPrintBody(os, this);
986 } 986 }
987 987
988 988
989 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT 989 void SharedFunctionInfo::SharedFunctionInfoPrint(std::ostream& os) { // NOLINT
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 printf("Not a transition array\n"); 1539 printf("Not a transition array\n");
1540 } else { 1540 } else {
1541 reinterpret_cast<i::TransitionArray*>(object)->Print(); 1541 reinterpret_cast<i::TransitionArray*>(object)->Print();
1542 } 1542 }
1543 } 1543 }
1544 1544
1545 extern void _v8_internal_Print_StackTrace() { 1545 extern void _v8_internal_Print_StackTrace() {
1546 i::Isolate* isolate = i::Isolate::Current(); 1546 i::Isolate* isolate = i::Isolate::Current();
1547 isolate->PrintStack(stdout); 1547 isolate->PrintStack(stdout);
1548 } 1548 }
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parsing/parse-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698