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

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

Issue 2007943002: [runtime] Fix number of literals for builtin functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittest. Created 4 years, 7 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/runtime/runtime-function.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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 } else if (is_anonymous_expression()) { 909 } else if (is_anonymous_expression()) {
910 os << "\n - anonymous expression"; 910 os << "\n - anonymous expression";
911 } else if (is_declaration()) { 911 } else if (is_declaration()) {
912 os << "\n - declaration"; 912 os << "\n - declaration";
913 } 913 }
914 os << "\n - function token position = " << function_token_position(); 914 os << "\n - function token position = " << function_token_position();
915 os << "\n - start position = " << start_position(); 915 os << "\n - start position = " << start_position();
916 os << "\n - end position = " << end_position(); 916 os << "\n - end position = " << end_position();
917 os << "\n - debug info = " << Brief(debug_info()); 917 os << "\n - debug info = " << Brief(debug_info());
918 os << "\n - length = " << length(); 918 os << "\n - length = " << length();
919 os << "\n - num_literals = " << num_literals();
919 os << "\n - optimized_code_map = " << Brief(optimized_code_map()); 920 os << "\n - optimized_code_map = " << Brief(optimized_code_map());
920 os << "\n - feedback_vector = "; 921 os << "\n - feedback_vector = ";
921 feedback_vector()->TypeFeedbackVectorPrint(os); 922 feedback_vector()->TypeFeedbackVectorPrint(os);
922 if (HasBytecodeArray()) { 923 if (HasBytecodeArray()) {
923 os << "\n - bytecode_array = " << bytecode_array(); 924 os << "\n - bytecode_array = " << bytecode_array();
924 } 925 }
925 os << "\n"; 926 os << "\n";
926 } 927 }
927 928
928 929
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1338 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1338 Object* transitions = map()->raw_transitions(); 1339 Object* transitions = map()->raw_transitions();
1339 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1340 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1340 if (num_transitions == 0) return; 1341 if (num_transitions == 0) return;
1341 os << "\n - transitions"; 1342 os << "\n - transitions";
1342 TransitionArray::PrintTransitions(os, transitions, false); 1343 TransitionArray::PrintTransitions(os, transitions, false);
1343 } 1344 }
1344 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1345 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1345 } // namespace internal 1346 } // namespace internal
1346 } // namespace v8 1347 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698