GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: V8: cherry-pick cf1bce40a5ef · nodejs/node@180c150

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/v8/src/wasm
    • constant-expression-interface.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/v8/src/wasm/constant-expression-interface.cc‎

Copy file name to clipboardExpand all lines: deps/v8/src/wasm/constant-expression-interface.cc
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@ void ConstantExpressionInterface::S128Const(FullDecoder* decoder,
4040
const Simd128Immediate& imm,
4141
Value* result) {
4242
if (!generate_value()) return;
43+
#if V8_TARGET_BIG_ENDIAN
44+
// Globals are not little endian enforced, they use native byte order and we
45+
// need to reverse the bytes on big endian platforms.
46+
uint8_t value[kSimd128Size];
47+
for (int i = 0; i < kSimd128Size; i++) {
48+
value[i] = imm.value[kSimd128Size - 1 - i];
49+
}
50+
result->runtime_value = WasmValue(value, kWasmS128);
51+
#else
4352
result->runtime_value = WasmValue(imm.value, kWasmS128);
53+
#endif
4454
}
4555

4656
void ConstantExpressionInterface::UnOp(FullDecoder* decoder, WasmOpcode opcode,

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.