Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.16',
'v8_embedder_string': '-node.17',

##### V8 defaults for Node.js #####

Expand Down
10 changes: 10 additions & 0 deletions deps/v8/src/wasm/constant-expression-interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,17 @@ void ConstantExpressionInterface::S128Const(FullDecoder* decoder,
const Simd128Immediate& imm,
Value* result) {
if (!generate_value()) return;
#if V8_TARGET_BIG_ENDIAN
// Globals are not little endian enforced, they use native byte order and we
// need to reverse the bytes on big endian platforms.
uint8_t value[kSimd128Size];
for (int i = 0; i < kSimd128Size; i++) {
value[i] = imm.value[kSimd128Size - 1 - i];
}
result->runtime_value = WasmValue(value, kWasmS128);
#else
result->runtime_value = WasmValue(imm.value, kWasmS128);
#endif
}

void ConstantExpressionInterface::UnOp(FullDecoder* decoder, WasmOpcode opcode,
Expand Down
Loading