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

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: rebase 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 os << "\n - name: " << Brief(name()); 1137 os << "\n - name: " << Brief(name());
1138 os << "\n - line_offset: " << line_offset(); 1138 os << "\n - line_offset: " << line_offset();
1139 os << "\n - column_offset: " << column_offset(); 1139 os << "\n - column_offset: " << column_offset();
1140 os << "\n - type: " << type(); 1140 os << "\n - type: " << type();
1141 os << "\n - id: " << id(); 1141 os << "\n - id: " << id();
1142 os << "\n - context data: " << Brief(context_data()); 1142 os << "\n - context data: " << Brief(context_data());
1143 os << "\n - wrapper: " << Brief(wrapper()); 1143 os << "\n - wrapper: " << Brief(wrapper());
1144 os << "\n - compilation type: " << compilation_type(); 1144 os << "\n - compilation type: " << compilation_type();
1145 os << "\n - line ends: " << Brief(line_ends()); 1145 os << "\n - line ends: " << Brief(line_ends());
1146 os << "\n - eval from shared: " << Brief(eval_from_shared()); 1146 os << "\n - eval from shared: " << Brief(eval_from_shared());
1147 os << "\n - eval from instructions offset: " 1147 os << "\n - eval from position: " << eval_from_position();
1148 << eval_from_instructions_offset();
1149 os << "\n - shared function infos: " << Brief(shared_function_infos()); 1148 os << "\n - shared function infos: " << Brief(shared_function_infos());
1150 os << "\n"; 1149 os << "\n";
1151 } 1150 }
1152 1151
1153 1152
1154 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT 1153 void DebugInfo::DebugInfoPrint(std::ostream& os) { // NOLINT
1155 HeapObject::PrintHeader(os, "DebugInfo"); 1154 HeapObject::PrintHeader(os, "DebugInfo");
1156 os << "\n - shared: " << Brief(shared()); 1155 os << "\n - shared: " << Brief(shared());
1157 os << "\n - code: " << Brief(abstract_code()); 1156 os << "\n - code: " << Brief(abstract_code());
1158 os << "\n - break_points: "; 1157 os << "\n - break_points: ";
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1339 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1341 Object* transitions = map()->raw_transitions(); 1340 Object* transitions = map()->raw_transitions();
1342 int num_transitions = TransitionArray::NumberOfTransitions(transitions); 1341 int num_transitions = TransitionArray::NumberOfTransitions(transitions);
1343 if (num_transitions == 0) return; 1342 if (num_transitions == 0) return;
1344 os << "\n - transitions"; 1343 os << "\n - transitions";
1345 TransitionArray::PrintTransitions(os, transitions, false); 1344 TransitionArray::PrintTransitions(os, transitions, false);
1346 } 1345 }
1347 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1346 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1348 } // namespace internal 1347 } // namespace internal
1349 } // namespace v8 1348 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698