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

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

Issue 1642613002: Reland of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: %SetCode failed to install literals in cache. 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
« no previous file with comments | « src/objects-inl.h ('k') | src/profiler/heap-snapshot-generator.cc » ('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 "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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 // Script files are often large, hard to read. 893 // Script files are often large, hard to read.
894 // os << "\n - script ="; 894 // os << "\n - script =";
895 // script()->Print(os); 895 // script()->Print(os);
896 os << "\n - function token position = " << function_token_position(); 896 os << "\n - function token position = " << function_token_position();
897 os << "\n - start position = " << start_position(); 897 os << "\n - start position = " << start_position();
898 os << "\n - end position = " << end_position(); 898 os << "\n - end position = " << end_position();
899 os << "\n - is expression = " << is_expression(); 899 os << "\n - is expression = " << is_expression();
900 os << "\n - debug info = " << Brief(debug_info()); 900 os << "\n - debug info = " << Brief(debug_info());
901 os << "\n - length = " << length(); 901 os << "\n - length = " << length();
902 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); 902 os << "\n - optimized_code_map = " << Brief(optimized_code_map());
903 os << "\n - feedback_vector = "; 903 os << "\n - feedback_metadata = ";
904 feedback_vector()->TypeFeedbackVectorPrint(os); 904 feedback_metadata()->TypeFeedbackMetadataPrint(os);
905 if (HasBytecodeArray()) { 905 if (HasBytecodeArray()) {
906 os << "\n - bytecode_array = " << bytecode_array(); 906 os << "\n - bytecode_array = " << bytecode_array();
907 } 907 }
908 os << "\n"; 908 os << "\n";
909 } 909 }
910 910
911 911
912 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT 912 void JSGlobalProxy::JSGlobalProxyPrint(std::ostream& os) { // NOLINT
913 os << "global_proxy "; 913 os << "global_proxy ";
914 JSObjectPrint(os); 914 JSObjectPrint(os);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1322 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1323 Object* transitions = map()->raw_transitions(); 1323 Object* transitions = map()->raw_transitions();
1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1324 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1325 if (num_transitions == 0) return; 1325 if (num_transitions == 0) return;
1326 os << "\n - transitions"; 1326 os << "\n - transitions";
1327 TransitionArray::PrintTransitions(os, transitions, false); 1327 TransitionArray::PrintTransitions(os, transitions, false);
1328 } 1328 }
1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1329 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1330 } // namespace internal 1330 } // namespace internal
1331 } // namespace v8 1331 } // namespace v8
OLDNEW
« no previous file with comments | « 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