chromium/v8/src/compiler/wasm-gc-lowering.cc

// 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.

#include "src/compiler/wasm-gc-lowering.h"

#include "src/base/logging.h"
#include "src/common/globals.h"
#include "src/compiler/access-builder.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/compiler-source-position-table.h"
#include "src/compiler/node-properties.h"
#include "src/compiler/opcodes.h"
#include "src/compiler/operator.h"
#include "src/compiler/wasm-graph-assembler.h"
#include "src/objects/heap-number.h"
#include "src/objects/string.h"
#include "src/wasm/object-access.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-linkage.h"
#include "src/wasm/wasm-objects.h"
#include "src/wasm/wasm-subtyping.h"

namespace v8 {
namespace internal {
namespace compiler {

namespace {
int TaggedOffset(FieldAccess access) {}
}  // namespace

WasmGCLowering::WasmGCLowering(Editor* editor, MachineGraph* mcgraph,
                               const wasm::WasmModule* module,
                               bool disable_trap_handler,
                               SourcePositionTable* source_position_table)
    :{}

Reduction WasmGCLowering::Reduce(Node* node) {}

Node* WasmGCLowering::Null(wasm::ValueType type) {}

Node* WasmGCLowering::IsNull(Node* object, wasm::ValueType type) {}

// TODO(manoskouk): Use the Callbacks infrastructure from wasm-compiler.h to
// unify all check/cast implementations.
// TODO(manoskouk): Find a way to optimize branches on typechecks.
Reduction WasmGCLowering::ReduceWasmTypeCheck(Node* node) {}

Reduction WasmGCLowering::ReduceWasmTypeCheckAbstract(Node* node) {}

Reduction WasmGCLowering::ReduceWasmTypeCast(Node* node) {}

Reduction WasmGCLowering::ReduceWasmTypeCastAbstract(Node* node) {}

Reduction WasmGCLowering::ReduceAssertNotNull(Node* node) {}

Reduction WasmGCLowering::ReduceNull(Node* node) {}

Reduction WasmGCLowering::ReduceIsNull(Node* node) {}

Reduction WasmGCLowering::ReduceIsNotNull(Node* node) {}

Reduction WasmGCLowering::ReduceRttCanon(Node* node) {}

Reduction WasmGCLowering::ReduceTypeGuard(Node* node) {}

namespace {
constexpr int32_t kInt31MaxValue =;
constexpr int32_t kInt31MinValue =;
}  // namespace

Reduction WasmGCLowering::ReduceWasmAnyConvertExtern(Node* node) {}

Reduction WasmGCLowering::ReduceWasmExternConvertAny(Node* node) {}

Reduction WasmGCLowering::ReduceWasmStructGet(Node* node) {}

Reduction WasmGCLowering::ReduceWasmStructSet(Node* node) {}

Reduction WasmGCLowering::ReduceWasmArrayGet(Node* node) {}

Reduction WasmGCLowering::ReduceWasmArraySet(Node* node) {}

Reduction WasmGCLowering::ReduceWasmArrayLength(Node* node) {}

Reduction WasmGCLowering::ReduceWasmArrayInitializeLength(Node* node) {}

Reduction WasmGCLowering::ReduceStringAsWtf16(Node* node) {}

Reduction WasmGCLowering::ReduceStringPrepareForGetCodeunit(Node* node) {}

void WasmGCLowering::UpdateSourcePosition(Node* new_node, Node* old_node) {}

}  // namespace compiler
}  // namespace internal
}  // namespace v8