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

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

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: doh Created 5 years 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 break; 121 break;
122 case JS_DATE_TYPE: 122 case JS_DATE_TYPE:
123 JSDate::cast(this)->JSDatePrint(os); 123 JSDate::cast(this)->JSDatePrint(os);
124 break; 124 break;
125 case CODE_TYPE: 125 case CODE_TYPE:
126 Code::cast(this)->CodePrint(os); 126 Code::cast(this)->CodePrint(os);
127 break; 127 break;
128 case JS_PROXY_TYPE: 128 case JS_PROXY_TYPE:
129 JSProxy::cast(this)->JSProxyPrint(os); 129 JSProxy::cast(this)->JSProxyPrint(os);
130 break; 130 break;
131 case JS_FUNCTION_PROXY_TYPE:
132 JSFunctionProxy::cast(this)->JSFunctionProxyPrint(os);
133 break;
134 case JS_SET_TYPE: 131 case JS_SET_TYPE:
135 JSSet::cast(this)->JSSetPrint(os); 132 JSSet::cast(this)->JSSetPrint(os);
136 break; 133 break;
137 case JS_MAP_TYPE: 134 case JS_MAP_TYPE:
138 JSMap::cast(this)->JSMapPrint(os); 135 JSMap::cast(this)->JSMapPrint(os);
139 break; 136 break;
140 case JS_SET_ITERATOR_TYPE: 137 case JS_SET_ITERATOR_TYPE:
141 JSSetIterator::cast(this)->JSSetIteratorPrint(os); 138 JSSetIterator::cast(this)->JSSetIteratorPrint(os);
142 break; 139 break;
143 case JS_MAP_ITERATOR_TYPE: 140 case JS_MAP_ITERATOR_TYPE:
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 os << "\n - target = "; 740 os << "\n - target = ";
744 target()->ShortPrint(os); 741 target()->ShortPrint(os);
745 os << "\n - handler = "; 742 os << "\n - handler = ";
746 handler()->ShortPrint(os); 743 handler()->ShortPrint(os);
747 os << "\n - hash = "; 744 os << "\n - hash = ";
748 hash()->ShortPrint(os); 745 hash()->ShortPrint(os);
749 os << "\n"; 746 os << "\n";
750 } 747 }
751 748
752 749
753 void JSFunctionProxy::JSFunctionProxyPrint(std::ostream& os) { // NOLINT
754 HeapObject::PrintHeader(os, "JSFunctionProxy");
755 os << " - map = " << reinterpret_cast<void*>(map()) << "\n";
756 os << " - handler = ";
757 handler()->Print(os);
758 os << "\n - call_trap = ";
759 call_trap()->Print(os);
760 os << "\n - construct_trap = ";
761 construct_trap()->Print(os);
762 os << "\n";
763 }
764
765
766 void JSSet::JSSetPrint(std::ostream& os) { // NOLINT 750 void JSSet::JSSetPrint(std::ostream& os) { // NOLINT
767 JSObjectPrintHeader(os, this, "JSSet"); 751 JSObjectPrintHeader(os, this, "JSSet");
768 os << " - table = " << Brief(table()); 752 os << " - table = " << Brief(table());
769 JSObjectPrintBody(os, this); 753 JSObjectPrintBody(os, this);
770 } 754 }
771 755
772 756
773 void JSMap::JSMapPrint(std::ostream& os) { // NOLINT 757 void JSMap::JSMapPrint(std::ostream& os) { // NOLINT
774 JSObjectPrintHeader(os, this, "JSMap"); 758 JSObjectPrintHeader(os, this, "JSMap");
775 os << " - table = " << Brief(table()); 759 os << " - table = " << Brief(table());
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1312 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1329 Object* transitions = map()->raw_transitions(); 1313 Object* transitions = map()->raw_transitions();
1330 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1314 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1331 if (num_transitions == 0) return; 1315 if (num_transitions == 0) return;
1332 os << "\n - transitions"; 1316 os << "\n - transitions";
1333 TransitionArray::PrintTransitions(os, transitions, false); 1317 TransitionArray::PrintTransitions(os, transitions, false);
1334 } 1318 }
1335 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1319 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1336 } // namespace internal 1320 } // namespace internal
1337 } // namespace v8 1321 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698