1 // Copyright 2017 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "src/interpreter/bytecode-source-info.h" 6 7 #include <iomanip> 8 #include "src/source-position-table.h" 9 10 namespace v8 { 11 namespace internal { 12 namespace interpreter { 13 14 std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info) { 15 if (info.is_valid()) { 16 char description = info.is_statement() ? 'S' : 'E'; 17 os << info.source_position() << ' ' << description << '>'; 18 } 19 return os; 20 } 21 22 } // namespace interpreter 23 } // namespace internal 24 } // namespace v8 25