Line data Source code
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 0 : std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info) {
15 0 : if (info.is_valid()) {
16 0 : char description = info.is_statement() ? 'S' : 'E';
17 0 : os << info.source_position() << ' ' << description << '>';
18 : }
19 0 : return os;
20 : }
21 :
22 : } // namespace interpreter
23 : } // namespace internal
24 121996 : } // namespace v8
|