// Copyright 2017 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/wasm/local-decl-encoder.h" #include "src/codegen/signature.h" #include "src/wasm/leb-helper.h" namespace v8 { namespace internal { namespace wasm { // This struct is just a type tag for Zone::NewArray<T>(size_t) call. struct LocalDeclEncoderBuffer { … }; void LocalDeclEncoder::Prepend(Zone* zone, const uint8_t** start, const uint8_t** end) const { … } size_t LocalDeclEncoder::Emit(uint8_t* buffer) const { … } uint32_t LocalDeclEncoder::AddLocals(uint32_t count, ValueType type) { … } // Size = (size of locals count) + // (for each local pair <reps, type>, (size of reps) + (size of type)) size_t LocalDeclEncoder::Size() const { … } } // namespace wasm } // namespace internal } // namespace v8