Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1035)

Side by Side Diff: src/wasm/wasm-external-refs.h

Issue 2013393002: Fix wrong endianness of wasm header in WasmModuleWriter on big-endian platforms (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #ifndef WASM_EXTERNAL_REFS_H 7 #ifndef WASM_EXTERNAL_REFS_H
8 #define WASM_EXTERNAL_REFS_H 8 #define WASM_EXTERNAL_REFS_H
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 int32_t uint64_mod_wrapper(uint64_t* dst, uint64_t* src); 52 int32_t uint64_mod_wrapper(uint64_t* dst, uint64_t* src);
53 53
54 uint32_t word32_ctz_wrapper(uint32_t* input); 54 uint32_t word32_ctz_wrapper(uint32_t* input);
55 55
56 uint32_t word64_ctz_wrapper(uint64_t* input); 56 uint32_t word64_ctz_wrapper(uint64_t* input);
57 57
58 uint32_t word32_popcnt_wrapper(uint32_t* input); 58 uint32_t word32_popcnt_wrapper(uint32_t* input);
59 59
60 uint32_t word64_popcnt_wrapper(uint64_t* input); 60 uint32_t word64_popcnt_wrapper(uint64_t* input);
61
62 uint32_t word32_to_little_endianness(const uint32_t* input);
63
64 uint32_t word32_to_natural_endianness(const uint32_t* input);
61 } // namespace wasm 65 } // namespace wasm
62 } // namespace internal 66 } // namespace internal
63 } // namespace v8 67 } // namespace v8
64 #endif 68 #endif
OLDNEW
« src/wasm/encoder.cc ('K') | « src/wasm/encoder.cc ('k') | src/wasm/wasm-external-refs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698