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
/* -*- mode: C; c-basic-offset: 4; tab-width: 4 -*- | |
* | |
* Copyright (c) 2008-2011 Apple Inc. All rights reserved. | |
* | |
* @APPLE_LICENSE_HEADER_START@ | |
* | |
* This file contains Original Code and/or Modifications of Original Code | |
* as defined in and that are subject to the Apple Public Source License | |
* Version 2.0 (the 'License'). You may not use this file except in | |
* compliance with the License. Please obtain a copy of the License at |
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
(module | |
(type (;0;) (func)) | |
(func (;0;) (type 0) | |
ref.null func | |
ref.is_null drop)) |
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
(module | |
(func | |
ref.null func | |
ref.is_null | |
drop)) |
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
const a = new FinalizationRegistry(v => { | |
console.log('a'); | |
console.log('b', v); | |
for (const val in v) { | |
console.log(val); | |
} | |
}); | |
function f() { | |
const obj = {a: 3}; |
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
#![crate_type = "rlib"] | |
pub enum Code { | |
A0, | |
A1, | |
A2, | |
A3, | |
A4, | |
A5, | |
A6, |
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
#![crate_type = "rlib"] | |
pub enum Code { | |
A0, | |
A1, | |
A2, | |
A3, | |
A4, | |
A5, | |
A6, | |
A7, |
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
diff --git a/src/cargo/core/package.rs b/src/cargo/core/package.rs | |
index 1187def1d..07d50041e 100644 | |
--- a/src/cargo/core/package.rs | |
+++ b/src/cargo/core/package.rs | |
@@ -899,11 +899,9 @@ impl<'a, 'cfg> Downloads<'a, 'cfg> { | |
break Ok(pair); | |
} | |
assert!(!self.pending.is_empty()); | |
- let timeout = self | |
- .set |
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
--- m2 2020-07-19 10:25:16.219914330 -0700 | |
+++ m3 2020-07-19 10:25:18.543914882 -0700 | |
@@ -118,8 +118,7 @@ | |
7f6cdcaa6000-7f6cdcca6000 rw-p 00000000 00:00 0 | |
7f6cdcca6000-7f6cdcca7000 ---p 00000000 00:00 0 | |
7f6cdcca7000-7f6cdcea7000 rw-p 00000000 00:00 0 | |
-7f6cdd147000-7f6cdd149000 rw-p 00000000 00:00 0 | |
-7f6cdd149000-7f6cdd161000 r-xp 00000000 00:00 0 | |
+7f6cdd147000-7f6cdd161000 r-xp 00000000 00:00 0 | |
7f6cdd161000-7f6cdd162000 ---p 00000000 00:00 0 |
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
--- m1 2020-07-19 10:25:13.379913654 -0700 | |
+++ m2 2020-07-19 10:25:16.219914330 -0700 | |
@@ -118,6 +118,7 @@ | |
7f6cdcaa6000-7f6cdcca6000 rw-p 00000000 00:00 0 | |
7f6cdcca6000-7f6cdcca7000 ---p 00000000 00:00 0 | |
7f6cdcca7000-7f6cdcea7000 rw-p 00000000 00:00 0 | |
+7f6cdd147000-7f6cdd149000 rw-p 00000000 00:00 0 | |
7f6cdd149000-7f6cdd161000 r-xp 00000000 00:00 0 | |
7f6cdd161000-7f6cdd162000 ---p 00000000 00:00 0 | |
7f6cdd162000-7f6cdd164000 rw-p 00000000 00:00 0 |
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
use wasmtime::*; | |
fn main() -> Result<(), Box<dyn std::error::Error>> { | |
let mut config = Config::new(); | |
config.profiler(ProfilingStrategy::JitDump)?; | |
let engine = Engine::new(&config); | |
let store = Store::new(&engine); | |
let module = Module::from_file(&engine, "./fib.wasm")?; | |
let instance = Instance::new(&store, &module, &[])?; | |
let start = instance.get_func("main").unwrap(); |