v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
bytecode-source-info.cc
Go to the documentation of this file.
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
6
7#include <iomanip>
8
9namespace v8 {
10namespace internal {
11namespace interpreter {
12
13std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info) {
14 if (info.is_valid()) {
15 char description = info.is_statement() ? 'S' : 'E';
16 os << info.source_position() << ' ' << description << '>';
17 }
18 return os;
19}
20
21} // namespace interpreter
22} // namespace internal
23} // namespace v8
std::ostream & operator<<(std::ostream &os, PaddingSpace padding)