generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d04084d
commit 996bc5c
Showing
24 changed files
with
61 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
;; permit_from_global lets us test the value range of status_code | ||
(module $permit_from_global | ||
|
||
;; Allocate the minimum amount of memory, 1 page (64KB). | ||
(memory (export "memory") 1 1) | ||
|
||
;; status_code is set by the host. | ||
(global $status_code (export "status_code_global") (mut i32) (i32.const 0)) | ||
;; timeout is set by the host. | ||
(global $timeout (export "timeout_global") (mut i32) (i32.const 0)) | ||
|
||
;; Allocate the minimum amount of memory, 1 page (64KB). | ||
(memory (export "memory") 1 1) | ||
(func (export "permit") (result i64) | ||
;; var status_code int32 | ||
(local $status_code i32) | ||
|
||
;; var timeout int32 | ||
(local $timeout i32) | ||
|
||
;; status_code = global.status_code | ||
(local.set $status_code (global.get $status_code)) | ||
|
||
;; timeout = global.timeout | ||
(local.set $timeout (global.get $timeout)) | ||
|
||
(func (export "permit") (result i32) (return (global.get $status_code))) | ||
;; return uint64(timeout) << 32 | uint64(status_code) | ||
(return | ||
(i64.or | ||
(i64.shl (i64.extend_i32_u (local.get $status_code)) (i64.const 32)) | ||
(i64.extend_i32_u (local.get $timeout))))) | ||
) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
(func (export "unreserve") | ||
(if (i32.eq (global.get $flag) (i32.const 1)) | ||
(unreachable) | ||
(then unreachable) | ||
) | ||
) | ||
) |
Binary file modified
BIN
+16 Bytes
(110%)
scheduler/test/testdata/test/scoreextensions_from_global.wasm
Binary file not shown.