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

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

Issue 1706283002: [fullcodegen] Implement operand stack depth tracking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 "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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 os << "\n - cleared"; 939 os << "\n - cleared";
940 } else { 940 } else {
941 os << "\n - value: " << Brief(value()); 941 os << "\n - value: " << Brief(value());
942 } 942 }
943 os << "\n"; 943 os << "\n";
944 } 944 }
945 945
946 946
947 void Code::CodePrint(std::ostream& os) { // NOLINT 947 void Code::CodePrint(std::ostream& os) { // NOLINT
948 HeapObject::PrintHeader(os, "Code"); 948 HeapObject::PrintHeader(os, "Code");
949 os << "\n";
949 #ifdef ENABLE_DISASSEMBLER 950 #ifdef ENABLE_DISASSEMBLER
950 if (FLAG_use_verbose_printer) { 951 if (FLAG_use_verbose_printer) {
951 Disassemble(NULL, os); 952 Disassemble(NULL, os);
952 } 953 }
953 #endif 954 #endif
954 } 955 }
955 956
956 957
957 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT 958 void Foreign::ForeignPrint(std::ostream& os) { // NOLINT
958 os << "foreign address : " << foreign_address(); 959 os << "foreign address : " << foreign_address();
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1317 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1317 Object* transitions = map()->raw_transitions(); 1318 Object* transitions = map()->raw_transitions();
1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1319 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1319 if (num_transitions == 0) return; 1320 if (num_transitions == 0) return;
1320 os << "\n - transitions"; 1321 os << "\n - transitions";
1321 TransitionArray::PrintTransitions(os, transitions, false); 1322 TransitionArray::PrintTransitions(os, transitions, false);
1322 } 1323 }
1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1324 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1324 } // namespace internal 1325 } // namespace internal
1325 } // namespace v8 1326 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698