blob: 47331543fcce3d33a90f1a008a9132e6bda176cc [file] [log] [blame]
// Copyright 2018 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/torque/type-oracle.h"
namespace v8 {
namespace internal {
namespace torque {
DEFINE_CONTEXTUAL_VARIABLE(TypeOracle)
// static
const std::vector<std::unique_ptr<AggregateType>>*
TypeOracle::GetAggregateTypes() {
return &Get().aggregate_types_;
}
// static
void TypeOracle::FinalizeAggregateTypes() {
for (const std::unique_ptr<AggregateType>& p : Get().aggregate_types_) {
p->Finalize();
}
}
} // namespace torque
} // namespace internal
} // namespace v8