V8 Project
machine-type.cc
Go to the documentation of this file.
1
// Copyright 2014 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/compiler/machine-type.h
"
6
#include "
src/ostreams.h
"
7
8
namespace
v8
{
9
namespace
internal {
10
namespace
compiler {
11
12
#define PRINT(bit) \
13
if (type & bit) { \
14
if (before) os << "|"
; \
15
os << #bit; \
16
before = true; \
17
}
18
19
20
OStream
&
operator<<
(
OStream
& os,
const
MachineType
& type) {
21
bool
before =
false
;
22
PRINT
(
kRepBit
);
23
PRINT
(
kRepWord8
);
24
PRINT
(
kRepWord16
);
25
PRINT
(
kRepWord32
);
26
PRINT
(
kRepWord64
);
27
PRINT
(
kRepFloat32
);
28
PRINT
(
kRepFloat64
);
29
PRINT
(
kRepTagged
);
30
31
PRINT
(
kTypeBool
);
32
PRINT
(
kTypeInt32
);
33
PRINT
(
kTypeUint32
);
34
PRINT
(
kTypeInt64
);
35
PRINT
(
kTypeUint64
);
36
PRINT
(
kTypeNumber
);
37
PRINT
(
kTypeAny
);
38
return
os;
39
}
40
41
42
#undef PRINT
43
44
}
// namespace compiler
45
}
// namespace internal
46
}
// namespace v8
v8::internal::OStream
Definition:
ostreams.h:19
PRINT
#define PRINT(bit)
Definition:
machine-type.cc:12
machine-type.h
v8::internal::compiler::operator<<
std::ostream & operator<<(std::ostream &os, const MachineType &type)
Definition:
change-lowering-unittest.cc:24
v8::internal::compiler::MachineType
MachineType
Definition:
machine-type.h:21
v8::internal::compiler::kTypeInt32
@ kTypeInt32
Definition:
machine-type.h:34
v8::internal::compiler::kRepTagged
@ kRepTagged
Definition:
machine-type.h:30
v8::internal::compiler::kTypeBool
@ kTypeBool
Definition:
machine-type.h:33
v8::internal::compiler::kRepFloat32
@ kRepFloat32
Definition:
machine-type.h:28
v8::internal::compiler::kRepWord8
@ kRepWord8
Definition:
machine-type.h:24
v8::internal::compiler::kRepWord16
@ kRepWord16
Definition:
machine-type.h:25
v8::internal::compiler::kRepBit
@ kRepBit
Definition:
machine-type.h:23
v8::internal::compiler::kTypeUint64
@ kTypeUint64
Definition:
machine-type.h:37
v8::internal::compiler::kTypeUint32
@ kTypeUint32
Definition:
machine-type.h:35
v8::internal::compiler::kTypeAny
@ kTypeAny
Definition:
machine-type.h:39
v8::internal::compiler::kRepFloat64
@ kRepFloat64
Definition:
machine-type.h:29
v8::internal::compiler::kTypeInt64
@ kTypeInt64
Definition:
machine-type.h:36
v8::internal::compiler::kRepWord64
@ kRepWord64
Definition:
machine-type.h:27
v8::internal::compiler::kTypeNumber
@ kTypeNumber
Definition:
machine-type.h:38
v8::internal::compiler::kRepWord32
@ kRepWord32
Definition:
machine-type.h:26
v8
Debugger support for the V8 JavaScript engine.
Definition:
accessors.cc:20
ostreams.h
mnt
V8SourceCode
src
compiler
machine-type.cc
Generated on Tue Jul 1 2025 02:36:32 for V8 Project by
1.9.1