// Copyright 2022 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_COMPILER_TURBOSHAFT_TYPE_PARSER_H_ #define V8_COMPILER_TURBOSHAFT_TYPE_PARSER_H_ #include <optional> #include "src/compiler/turboshaft/types.h" namespace v8::internal::compiler::turboshaft { // TypeParser is used to construct a Type from a string literal. // It's primary use is the %CheckTurboshaftTypeOf intrinsic, which allows // mjsunit tests to check the static type of expressions. Typically the string // has to have the format that Type::ToString() would produce. // // Examples: "Word32", "Word64[30, 100]", "Float32{-1.02}", "Float64{3.2, 17.8}" class TypeParser { … }; } // namespace v8::internal::compiler::turboshaft #endif // V8_COMPILER_TURBOSHAFT_TYPE_PARSER_H_