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

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

Issue 1854713002: Correctly annotate eval origin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mips64 Created 4 years, 8 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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 os << "\n - name: " << Brief(name()); 1133 os << "\n - name: " << Brief(name());
1134 os << "\n - line_offset: " << line_offset(); 1134 os << "\n - line_offset: " << line_offset();
1135 os << "\n - column_offset: " << column_offset(); 1135 os << "\n - column_offset: " << column_offset();
1136 os << "\n - type: " << type(); 1136 os << "\n - type: " << type();
1137 os << "\n - id: " << id(); 1137 os << "\n - id: " << id();
1138 os << "\n - context data: " << Brief(context_data()); 1138 os << "\n - context data: " << Brief(context_data());
1139 os << "\n - wrapper: " << Brief(wrapper()); 1139 os << "\n - wrapper: " << Brief(wrapper());
1140 os << "\n - compilation type: " << compilation_type(); 1140 os << "\n - compilation type: " << compilation_type();
1141 os << "\n - line ends: " << Brief(line_ends()); 1141 os << "\n - line ends: " << Brief(line_ends());
1142 os << "\n - eval from shared: " << Brief(eval_from_shared()); 1142 os << "\n - eval from shared: " << Brief(eval_from_shared());
1143 os << "\n - eval from instructions offset: " 1143 os << "\n - eval from position: " << eval_from_position();
1144 << eval_from_instructions_offset();
1145 os << "\n - shared function infos: " << Brief(shared_function_infos()); 1144 os << "\n - shared function infos: " << Brief(shared_function_infos());
1146 os << "\n"; 1145 os << "\n";
1147 } 1146 }
1148 1147
1149 1148
1150 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT 1149 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT
1151 HeapObject::PrintHeader(os, "DebugInfo"); 1150 HeapObject::PrintHeader(os, "DebugInfo");
1152 os << "\n - shared: " << Brief(shared()); 1151 os << "\n - shared: " << Brief(shared());
1153 os << "\n - code: " << Brief(abstract_code()); 1152 os << "\n - code: " << Brief(abstract_code());
1154 os << "\n - break_points: "; 1153 os << "\n - break_points: ";
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1335 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1337 Object* transitions = map()->raw_transitions(); 1336 Object* transitions = map()->raw_transitions();
1338 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1337 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1339 if (num_transitions == 0) return; 1338 if (num_transitions == 0) return;
1340 os << "\n - transitions"; 1339 os << "\n - transitions";
1341 TransitionArray::PrintTransitions(os, transitions, false); 1340 TransitionArray::PrintTransitions(os, transitions, false);
1342 } 1341 }
1343 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1342 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1344 } // namespace internal 1343 } // namespace internal
1345 } // namespace v8 1344 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698