V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
bytecode-source-info.cc
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
Definition: libplatform.h:13