Fix compilation on big endian

Currently getting the following errors:
```
error: variable 'string' set but not used
unused variable 'start'
```

Bug: v8:12868
Change-Id: I9ee8a14da7d126270255558a630ffd2af3f87f15
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3702966
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81134}
This commit is contained in:
Milad Fa 2022-06-13 17:31:05 -04:00 committed by V8 LUCI CQ
parent 085f504ed8
commit 07bc22a9cf

View File

@ -1122,6 +1122,8 @@ RUNTIME_FUNCTION(Runtime_WasmStringEncodeWtf16) {
#elif defined(V8_TARGET_BIG_ENDIAN)
// TODO(12868): The host is big-endian but we need to write the string
// contents as little-endian.
USE(string);
USE(start);
UNIMPLEMENTED();
#else
#error Unknown endianness