Index: test/unittests/wasm/ast-decoder-unittest.cc |
diff --git a/test/unittests/wasm/ast-decoder-unittest.cc b/test/unittests/wasm/ast-decoder-unittest.cc |
index 894db4ec7b7360673261bc5bb20e56b96ef9e8f6..412e719e6ad6cb355118c528615746aceb9e707f 100644 |
--- a/test/unittests/wasm/ast-decoder-unittest.cc |
+++ b/test/unittests/wasm/ast-decoder-unittest.cc |
@@ -87,10 +87,10 @@ class WasmDecoderTest : public TestWithZone { |
static void init_env(FunctionEnv* env, FunctionSig* sig) { |
env->module = nullptr; |
env->sig = sig; |
- env->local_int32_count = 0; |
- env->local_int64_count = 0; |
- env->local_float32_count = 0; |
- env->local_float64_count = 0; |
+ env->local_i32_count = 0; |
+ env->local_i64_count = 0; |
+ env->local_f32_count = 0; |
+ env->local_f64_count = 0; |
env->SumLocals(); |
} |
@@ -179,9 +179,9 @@ static FunctionEnv CreateInt32FunctionEnv(FunctionSig* sig, int count) { |
FunctionEnv env; |
env.module = nullptr; |
env.sig = sig; |
- env.local_int32_count = count; |
- env.local_float64_count = 0; |
- env.local_float32_count = 0; |
+ env.local_i32_count = count; |
+ env.local_f64_count = 0; |
+ env.local_f32_count = 0; |
env.total_locals = static_cast<unsigned>(count + sig->parameter_count()); |
return env; |
} |
@@ -333,7 +333,7 @@ TEST_F(WasmDecoderTest, GetLocal_off_end) { |
TEST_F(WasmDecoderTest, GetLocal_varint) { |
- env_i_i.local_int32_count = 1000000000; |
+ env_i_i.local_i32_count = 1000000000; |
env_i_i.total_locals += 1000000000; |
{ |