forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.wast
More file actions
12 lines (12 loc) · 861 Bytes
/
array.wast
File metadata and controls
12 lines (12 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
;;-------------------------------------------------------------------------------------------------------
;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
;;-------------------------------------------------------------------------------------------------------
(module
(memory 1)
(data (i32.const 0) "abcdefghijklmnopqrstuvwxyz")
(func (export "goodload") (param $i i32) (result i32) (i32.load8_u offset=0 (get_local $i)))
(func (export "goodstore") (param $i i32) (i32.store8 offset=0 (get_local $i) (get_local 0)))
(func (export "badload") (param $i i32) (result i32) (i32.load offset=4294967295 (get_local $i)))
(func (export "badstore") (param $i i32) (i32.store offset=100000 (get_local $i) (get_local 0)))
)