blob: 47885e697d243c3e15772c12cbaf9df979214cfe [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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 "test/unittests/test-utils.h"
6
7#include "src/v8.h"
8
9#include "src/wasm/ast-decoder.h"
10#include "src/wasm/encoder.h"
11
Ben Murdochc5610432016-08-08 18:44:38 +010012#include "test/cctest/wasm/test-signatures.h"
13
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000014namespace v8 {
15namespace internal {
16namespace wasm {
17
18class EncoderTest : public TestWithZone {
19 protected:
20 void AddLocal(WasmFunctionBuilder* f, LocalType type) {
21 uint16_t index = f->AddLocal(type);
Ben Murdochc5610432016-08-08 18:44:38 +010022 f->EmitGetLocal(index);
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000023 }
24};
25
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000026} // namespace wasm
27} // namespace internal
28} // namespace v8