From af0ff220fd5bd4aa05b2472f3d6e98e08175f517 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Tue, 18 Dec 2018 11:40:00 -0800 Subject: Rename `idx` to `index` in SIMD code for consistency (#1836) --- src/wasm-stack.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wasm-stack.h') diff --git a/src/wasm-stack.h b/src/wasm-stack.h index 0c10a88fc..c64fd2759 100644 --- a/src/wasm-stack.h +++ b/src/wasm-stack.h @@ -891,7 +891,7 @@ void StackWriter::visitSIMDExtract(SIMDExtract* curr) { case ExtractLaneVecF32x4: o << U32LEB(BinaryConsts::F32x4ExtractLane); break; case ExtractLaneVecF64x2: o << U32LEB(BinaryConsts::F64x2ExtractLane); break; } - o << uint8_t(curr->idx); + o << uint8_t(curr->index); } template @@ -908,8 +908,8 @@ void StackWriter::visitSIMDReplace(SIMDReplace* curr) { case ReplaceLaneVecF32x4: o << U32LEB(BinaryConsts::F32x4ReplaceLane); break; case ReplaceLaneVecF64x2: o << U32LEB(BinaryConsts::F64x2ReplaceLane); break; } - assert(curr->idx < 16); - o << uint8_t(curr->idx); + assert(curr->index < 16); + o << uint8_t(curr->index); } template -- cgit v1.2.3