Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jcparkyn/herd
/ functions
Functions
440 in github.com/Jcparkyn/herd
⨍
Functions
440
◇
Types & classes
55
↓ 95 callers
Function
eval
(program: &str)
tests/common/snapshot_helpers.rs:101
↓ 75 callers
Function
assert_rcs_dropped
Report the location of the test failure, not inside this function
tests/common/snapshot_helpers.rs:30
↓ 73 callers
Method
expect_ok_string
(&self)
tests/common/snapshot_helpers.rs:85
↓ 50 callers
Method
push
(&mut self, value: Weak<T>)
src/value64.rs:474
↓ 48 callers
Method
insert
(&mut self, key: Value64, value: Value64)
src/dict.rs:40
↓ 41 callers
Method
clone
(&self)
src/dict.rs:98
↓ 37 callers
Method
len
(&self)
src/dict.rs:89
↓ 35 callers
Method
assert_owned
(self)
src/jit.rs:326
↓ 34 callers
Method
translate_expr
When you write out instructions in Cranelift, you get back `Value`s. You can then use these references in other instructions.
src/jit.rs:838
↓ 33 callers
Method
iter
(&self)
src/dict.rs:78
↓ 31 callers
Method
fallible
(mut self)
src/natives.rs:40
↓ 31 callers
Function
handle_c_result
(error_out: ErrorOut, f: F)
src/natives.rs:256
↓ 30 callers
Method
borrow
(&self)
src/jit.rs:299
↓ 26 callers
Function
rc_new
(val: T)
src/value64.rs:508
↓ 25 callers
Method
call_native
(&mut self, func: NativeFuncId, args: &[Value])
src/jit.rs:1885
↓ 22 callers
Method
bits
(&self)
src/value64.rs:131
↓ 22 callers
Method
drop_val64
(&mut self, val: MValue)
src/jit.rs:2142
↓ 22 callers
Method
map
(self, mut f: F)
src/pos.rs:50
↓ 21 callers
Method
expect_err_string
(&self)
tests/common/snapshot_helpers.rs:90
↓ 18 callers
Method
as_str
(&self)
src/value64.rs:348
↓ 17 callers
Method
prelude
(mut self, prelude: bool)
tests/common/snapshot_helpers.rs:70
↓ 15 callers
Method
into_owned
(&self, translator: &mut FunctionTranslator)
src/jit.rs:291
↓ 13 callers
Method
get
(&self, key: &Value64)
src/dict.rs:51
↓ 13 callers
Function
guard_str
(val: &Value64)
src/natives.rs:330
↓ 12 callers
Method
const_nil
(&mut self)
src/jit.rs:2099
↓ 11 callers
Function
print
TODO: Variadic functions
src/natives.rs:1007
↓ 11 callers
Function
rc_mutate
( rc: &mut Rc<T>, action: F, )
src/value64.rs:517
↓ 10 callers
Function
range
(error_out: ErrorOut, start: Value64, stop: Value64)
src/natives.rs:525
↓ 9 callers
Method
as_f64
(&self)
src/value64.rs:293
↓ 9 callers
Method
as_list
(&self)
src/value64.rs:384
↓ 9 callers
Method
assert
Asserts that the given condition is non-zero, otherwise builds and raises an error using the given build_msg closure.
src/jit.rs:1940
↓ 9 callers
Method
create_stack_slot
(&mut self, ty: Type, count: usize)
src/jit.rs:1931
↓ 9 callers
Method
string_literal_borrow
(&mut self, string: String)
src/jit.rs:2244
↓ 8 callers
Function
guard_i64
(val: &Value64)
src/natives.rs:316
↓ 8 callers
Method
try_into_list
(self)
src/value64.rs:380
↓ 7 callers
Method
as_bvalue
(&self)
src/jit.rs:309
↓ 7 callers
Method
declare_variables_in_expr
(&mut self, expr: &SpannedExpr)
src/jit.rs:649
↓ 7 callers
Function
try_get_ptr_tag
(value: u64)
src/value64.rs:46
↓ 7 callers
Method
use_var
(&mut self, var_ref: &VarRef)
src/jit.rs:2070
↓ 6 callers
Method
call_native_fallible
( &mut self, func: NativeFuncId, args: &[Value], span: &Span, )
src/jit.rs:1921
↓ 6 callers
Method
clone
(&self)
src/value64.rs:531
↓ 6 callers
Method
is_ptr_type
(&self, tag: PointerTag)
src/value64.rs:144
↓ 6 callers
Method
is_truthy
(&mut self, val: impl AsBValue)
src/jit.rs:2158
↓ 6 callers
Method
next
(&mut self)
src/dict.rs:19
↓ 6 callers
Method
string_template
(&mut self, template: impl Into<String>, parts: &[Value])
src/jit.rs:1971
↓ 6 callers
Method
try_into_dict
(self)
src/value64.rs:362
↓ 5 callers
Method
analyze_expr
(&mut self, expr: &mut SpannedExpr)
src/analysis.rs:174
↓ 5 callers
Function
analyze_expr_liveness
(expr: &mut Expr, deps: &mut HashSet<String>)
src/analysis.rs:379
↓ 5 callers
Function
analyze_pattern_liveness
(pattern: &mut MatchPattern, deps: &mut HashSet<String>)
src/analysis.rs:336
↓ 5 callers
Method
as_dict
(&self)
src/value64.rs:366
↓ 5 callers
Method
as_lambda
(&self)
src/value64.rs:402
↓ 5 callers
Method
create_variable
(&mut self, name: &str, default_value: Value, owned: bool)
src/jit.rs:779
↓ 5 callers
Function
guard_f64
(val: &Value64)
src/natives.rs:311
↓ 5 callers
Function
guard_into_list
(val: Value64)
src/natives.rs:320
↓ 5 callers
Method
is_list
(&self)
src/value64.rs:376
↓ 5 callers
Method
is_nil
(&self)
src/value64.rs:168
↓ 5 callers
Method
push_err
(&mut self, err: AnalysisError, span: Span)
src/analysis.rs:112
↓ 5 callers
Method
set_src_span
(&mut self, span: &Span)
src/jit.rs:2153
↓ 5 callers
Method
translate_match_pattern
(&mut self, pattern: &Spanned<MatchPattern>, value: MValue)
src/jit.rs:1168
↓ 5 callers
Method
val_bits
(&mut self, val: impl AsBValue)
src/jit.rs:2197
↓ 4 callers
Method
analyze_pattern
(&mut self, pattern: &mut Spanned<MatchPattern>)
src/analysis.rs:133
↓ 4 callers
Method
as_ref
(&self)
src/value64.rs:159
↓ 4 callers
Method
assert_borrowed
(self)
src/jit.rs:330
↓ 4 callers
Function
assert_rc_dropped
(rc: &Weak<T>, expected_count: usize)
tests/common/snapshot_helpers.rs:31
↓ 4 callers
Method
bool_to_val64
(&mut self, b: Value)
src/jit.rs:2208
↓ 4 callers
Method
declare_variables_in_pattern
(&mut self, pattern: &Spanned<MatchPattern>)
src/jit.rs:741
↓ 4 callers
Method
def_var
(&mut self, var_ref: &VarRef, val: MValue)
src/jit.rs:2089
↓ 4 callers
Method
get_slot
(&self, name: &str)
src/analysis.rs:294
↓ 4 callers
Method
guard_f64
(&mut self, val: impl AsBValue, span: &Span)
src/jit.rs:2234
↓ 4 callers
Method
into_rc
(self)
src/value64.rs:172
↓ 4 callers
Method
is_dict
(&self)
src/value64.rs:358
↓ 4 callers
Method
is_string
(&self)
src/value64.rs:336
↓ 4 callers
Function
len
(error_out: ErrorOut, val: Value64)
src/natives.rs:537
↓ 4 callers
Method
load
(&self, path: &str)
src/jit.rs:62
↓ 4 callers
Method
remove
(&mut self, key: &Value64)
src/dict.rs:65
↓ 4 callers
Function
reset_list
(list: &mut RcTrackList<T>)
tests/common/snapshot_helpers.rs:11
↓ 4 callers
Method
string_literal_owned
(&mut self, string: impl Into<String>)
src/jit.rs:2253
↓ 4 callers
Method
translate_cmp
(&mut self, cmp: FloatCC, lhs: &SpannedExpr, rhs: &SpannedExpr)
src/jit.rs:1452
↓ 4 callers
Method
try_into_string
(self)
src/value64.rs:340
↓ 3 callers
Method
analyze_statements
( &mut self, stmts: &mut [SpannedStatement], )
src/analysis.rs:58
↓ 3 callers
Method
cmp_bits_imm
(&mut self, cond: IntCC, lhs: impl AsBValue, rhs: u64)
src/jit.rs:2203
↓ 3 callers
Method
const_bool
(&mut self, b: bool)
src/jit.rs:2103
↓ 3 callers
Method
const_value64_bits
(&mut self, bits: u64)
src/jit.rs:2111
↓ 3 callers
Method
execute_file
(&self, path: &str, prelude: bool)
src/jit.rs:118
↓ 3 callers
Method
format_error
(&self, err: &HerdError)
src/jit.rs:567
↓ 3 callers
Function
guard_into_dict
(val: Value64)
src/natives.rs:325
↓ 3 callers
Function
guard_list_index
(val: &Value64, len: usize)
src/natives.rs:349
↓ 3 callers
Method
is_ptr_type
(&mut self, val: impl AsBValue, tag: PointerTag)
src/jit.rs:2225
↓ 3 callers
Function
mandelbrot
(size)
benchmarks/mandelbrot.py:1
↓ 3 callers
Function
mandelbrot
(size)
benchmarks/mandelbrot.js:1
↓ 3 callers
Function
map
(fn, iter)
benchmarks/iterables.js:1
↓ 3 callers
Function
pointer_mask
(tag: PointerTag)
src/value64.rs:37
↓ 3 callers
Method
pop_scope
(&mut self)
src/analysis.rs:307
↓ 3 callers
Method
push_scope
(&mut self)
src/analysis.rs:303
↓ 3 callers
Method
run_func
( &self, func_id: FuncId, inputs: Vec<Value64>, )
src/jit.rs:177
↓ 3 callers
Method
translate_return_ok
(&mut self, val: Value)
src/jit.rs:916
↓ 3 callers
Method
truthy
(&self)
src/value64.rs:186
↓ 3 callers
Method
with_vm
(mut self)
src/natives.rs:35
↓ 2 callers
Method
all_parts_mut
(&mut self)
src/ast.rs:89
↓ 2 callers
Method
alloc_error
(&mut self, msg: Value, inner: Value, span: &Span, func_name: Value)
src/jit.rs:2015
next →
1–100 of 440, ranked by callers