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

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

Issue 1424703005: Remove JSBuiltinsObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 break; 106 break;
107 case JS_FUNCTION_TYPE: 107 case JS_FUNCTION_TYPE:
108 JSFunction::cast(this)->JSFunctionPrint(os); 108 JSFunction::cast(this)->JSFunctionPrint(os);
109 break; 109 break;
110 case JS_GLOBAL_PROXY_TYPE: 110 case JS_GLOBAL_PROXY_TYPE:
111 JSGlobalProxy::cast(this)->JSGlobalProxyPrint(os); 111 JSGlobalProxy::cast(this)->JSGlobalProxyPrint(os);
112 break; 112 break;
113 case JS_GLOBAL_OBJECT_TYPE: 113 case JS_GLOBAL_OBJECT_TYPE:
114 JSGlobalObject::cast(this)->JSGlobalObjectPrint(os); 114 JSGlobalObject::cast(this)->JSGlobalObjectPrint(os);
115 break; 115 break;
116 case JS_BUILTINS_OBJECT_TYPE:
117 JSBuiltinsObject::cast(this)->JSBuiltinsObjectPrint(os);
118 break;
119 case JS_VALUE_TYPE: 116 case JS_VALUE_TYPE:
120 os << "Value wrapper around:"; 117 os << "Value wrapper around:";
121 JSValue::cast(this)->value()->Print(os); 118 JSValue::cast(this)->value()->Print(os);
122 break; 119 break;
123 case JS_DATE_TYPE: 120 case JS_DATE_TYPE:
124 JSDate::cast(this)->JSDatePrint(os); 121 JSDate::cast(this)->JSDatePrint(os);
125 break; 122 break;
126 case CODE_TYPE: 123 case CODE_TYPE:
127 Code::cast(this)->CodePrint(os); 124 Code::cast(this)->CodePrint(os);
128 break; 125 break;
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 914
918 915
919 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT 916 void JSGlobalObject::JSGlobalObjectPrint(std::ostream& os) { // NOLINT
920 os << "global "; 917 os << "global ";
921 JSObjectPrint(os); 918 JSObjectPrint(os);
922 os << "native context : " << Brief(native_context()); 919 os << "native context : " << Brief(native_context());
923 os << "\n"; 920 os << "\n";
924 } 921 }
925 922
926 923
927 void JSBuiltinsObject::JSBuiltinsObjectPrint(std::ostream& os) { // NOLINT
928 os << "builtins ";
929 JSObjectPrint(os);
930 }
931
932
933 void Cell::CellPrint(std::ostream& os) { // NOLINT 924 void Cell::CellPrint(std::ostream& os) { // NOLINT
934 HeapObject::PrintHeader(os, "Cell"); 925 HeapObject::PrintHeader(os, "Cell");
935 } 926 }
936 927
937 928
938 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT 929 void PropertyCell::PropertyCellPrint(std::ostream& os) { // NOLINT
939 HeapObject::PrintHeader(os, "PropertyCell"); 930 HeapObject::PrintHeader(os, "PropertyCell");
940 } 931 }
941 932
942 933
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 } 1312 }
1322 } 1313 }
1323 1314
1324 1315
1325 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1326 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1317 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1327 } 1318 }
1328 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1319 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1329 } // namespace internal 1320 } // namespace internal
1330 } // namespace v8 1321 } // namespace v8
OLDNEW
« src/objects.h ('K') | « src/objects-inl.h ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698