Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreabergia/rjvm
/ functions
Functions
538 in github.com/andreabergia/rjvm
⨍
Functions
538
◇
Types & classes
120
↓ 50 callers
Method
push
(&mut self, value: Value<'a>)
vm/src/value_stack.rs:41
↓ 40 callers
Method
read_u16
(&mut self)
reader/src/buffer.rs:45
↓ 36 callers
Method
push
(&mut self, value: Value<'a>)
vm/src/call_frame.rs:715
↓ 33 callers
Method
into_usize_safe
(self)
reader/src/type_conversion.rs:8
↓ 28 callers
Method
add
Adds a new entry.
reader/src/constant_pool.rs:55
↓ 26 callers
Method
iter
(&self)
vm/src/value_stack.rs:77
↓ 23 callers
Method
tempPrint
(int value)
vm/tests/resources/rjvm/NumericTypes.java:71
↓ 22 callers
Method
push
Parses and adds class path entries. These should be separated by a colon (:), just like in a real JVM.
vm/src/class_path.rs:27
↓ 22 callers
Method
tempPrint
(boolean value)
vm/tests/resources/rjvm/NumericArrays.java:69
↓ 21 callers
Method
len
(&self)
vm/src/value_stack.rs:37
↓ 19 callers
Method
pop
(&mut self)
vm/src/value_stack.rs:50
↓ 18 callers
Method
pop
(&mut self)
vm/src/call_frame.rs:719
↓ 17 callers
Method
get
(&self, index: usize)
vm/src/value_stack.rs:73
↓ 17 callers
Method
register
( &mut self, class_name: &str, method_name: &str, type_descriptor: &str,
vm/src/native_methods_registry.rs:34
↓ 16 callers
Function
create_base_vm
(max_memory: usize)
vm/tests/integration/real_code_tests.rs:10
↓ 16 callers
Function
invoke
( vm: &mut Vm<'a>, class_name: &str, method_name: &str, descriptor: &str, )
vm/tests/integration/real_code_tests.rs:19
↓ 16 callers
Method
kind
(&self)
vm/src/abstract_object.rs:216
↓ 12 callers
Method
next
()
vm/tests/resources/rjvm/SimpleMain.java:21
↓ 11 callers
Method
class_id
(&self)
vm/src/abstract_object.rs:327
↓ 10 callers
Method
as_ref
(&self)
vm/src/call_stack.rs:33
↓ 10 callers
Method
elements_type
(&self)
vm/src/abstract_object.rs:366
↓ 10 callers
Method
get_constant
(&self, constant_index: u16)
vm/src/call_frame.rs:862
↓ 10 callers
Method
get_or_resolve_class
( &mut self, stack: &mut CallStack<'a>, class_name: &str, )
vm/src/vm.rs:96
↓ 10 callers
Method
set_field
(&self, index: usize, value: Value<'a>)
vm/src/abstract_object.rs:331
↓ 10 callers
Method
tempPrint
(int value)
vm/tests/resources/rjvm/ControlFlow.java:62
↓ 9 callers
Method
advance
(&mut self, size: usize)
reader/src/buffer.rs:30
↓ 9 callers
Function
check_method
( method: &ClassFileMethod, flags: MethodFlags, name: &str, type_descriptor: &str, )
reader/tests/integration/assertions.rs:5
↓ 9 callers
Method
read_string_reference
(&self, index: u16)
reader/src/class_reader.rs:222
↓ 8 callers
Method
get_class_by_id
(&self, class_id: ClassId)
vm/src/vm.rs:133
↓ 6 callers
Method
alloc
Allocates from the chunk, or returns None if there is not enough space
vm/src/gc.rs:53
↓ 6 callers
Method
contains
(&self, ptr: *const u8)
vm/src/gc.rs:70
↓ 6 callers
Method
execute_if
( &mut self, jump_address: u16, comparator: T, )
vm/src/call_frame.rs:1198
↓ 6 callers
Method
execute_if_icmp
( &mut self, jump_address: u16, comparator: T, )
vm/src/call_frame.rs:1213
↓ 6 callers
Method
find_class_by_id
(&self, class_id: ClassId)
vm/src/vm.rs:67
↓ 6 callers
Method
get
Accesses an entry given its index. Note that it must be 1-based!
reader/src/constant_pool.rs:69
↓ 6 callers
Method
goto
(&mut self, jump_address: u16)
vm/src/call_frame.rs:1194
↓ 6 callers
Function
new_java_lang_string_object
Creates a new instance of a `java.lang.String` with the given content
vm/src/java_objects_creation.rs:17
↓ 6 callers
Method
tempPrint
(int value)
vm/tests/resources/rjvm/ExceptionsThrowingAndCatching.java:49
↓ 6 callers
Method
tempPrint
(boolean value)
vm/tests/resources/rjvm/InstanceOf.java:31
↓ 5 callers
Method
checkInstanceOfInterfaces
(Object v)
vm/tests/resources/rjvm/InstanceOf.java:24
↓ 5 callers
Method
execute_aload
(&mut self, index: usize)
vm/src/call_frame.rs:1297
↓ 5 callers
Method
execute_astore
(&mut self, index: usize)
vm/src/call_frame.rs:1312
↓ 5 callers
Method
get_constant_class_reference
(&self, constant_index: u16)
vm/src/call_frame.rs:870
↓ 5 callers
Method
get_constant_utf8
(&self, constant_index: u16)
vm/src/call_frame.rs:932
↓ 5 callers
Method
iter_mut
(&mut self)
vm/src/value_stack.rs:81
↓ 5 callers
Method
new_array
( &mut self, elements_type: ArrayEntryType, length: usize, )
vm/src/vm.rs:244
↓ 5 callers
Method
tempPrint
(long value)
vm/tests/resources/rjvm/GarbageCollection.java:54
↓ 4 callers
Function
assert_can_find_class
(entry: &impl ClassPathEntry, class_name: &str)
vm/src/class_path_entry.rs:42
↓ 4 callers
Function
assert_cannot_parse
(descriptor: &str)
reader/src/method_descriptor.rs:119
↓ 4 callers
Function
expect_int_at
Checks that the element at the given index is an Int and returns it, or an error.
vm/src/value.rs:163
↓ 4 callers
Method
find_method
( &self, method_name: &str, type_descriptor: &str, )
vm/src/class.rs:67
↓ 4 callers
Method
get_constant_field_reference
(&self, constant_index: u16)
vm/src/call_frame.rs:908
↓ 4 callers
Method
invoke
( &mut self, call_stack: &mut CallStack<'a>, class_and_method: ClassAndMethod<'a>,
vm/src/vm.rs:164
↓ 4 callers
Method
invoke_method
( &mut self, vm: &mut Vm<'a>, call_stack: &mut CallStack<'a>, constant_index:
vm/src/call_frame.rs:784
↓ 4 callers
Method
is_subclass_of
Returns whether self is a subclass of the given class, or implements the given interface
vm/src/class.rs:59
↓ 4 callers
Method
new_object
( &mut self, call_stack: &mut CallStack<'a>, class_name: &str, )
vm/src/vm.rs:221
↓ 4 callers
Method
ptr_to_field_value
(&self, field_index: usize)
vm/src/abstract_object.rs:319
↓ 4 callers
Function
read_class_from_bytes
(bytes: &[u8])
reader/tests/integration/utils.rs:5
↓ 4 callers
Method
set_element
(&self, index: usize, value: Value<'a>)
vm/src/abstract_object.rs:374
↓ 4 callers
Method
tempPrint
(boolean value)
vm/tests/resources/rjvm/InstanceOfArray.java:25
↓ 3 callers
Function
align_to_8_bytes
(required_size: usize)
vm/src/abstract_object.rs:109
↓ 3 callers
Method
alloc_header
(&self)
vm/src/abstract_object.rs:208
↓ 3 callers
Method
area
()
vm/tests/resources/rjvm/InvokeInterface.java:5
↓ 3 callers
Method
bar
()
reader/tests/resources/rjvm/ExceptionsHandlers.java:7
↓ 3 callers
Method
execute_long_shift
(&mut self, evaluator: T)
vm/src/call_frame.rs:1167
↓ 3 callers
Function
expect_abstract_object_at
Checks that the element at the given index is an abstract object and returns it, or an error.
vm/src/value.rs:127
↓ 3 callers
Function
expect_some_receiver
(receiver: Option<AbstractObject>)
vm/src/native_methods_impl.rs:293
↓ 3 callers
Function
extract_str_from_java_lang_string
Given an instance of `java.lang.String`, extracts the content as a Rust `String`
vm/src/java_objects_creation.rs:49
↓ 3 callers
Method
fix_reference
Updates a reference from the old semispace by replacing it with the new value. Assumes that the word after the old reference's header contains the add
vm/src/gc.rs:372
↓ 3 callers
Method
get_class
(&self)
vm/src/class_manager.rs:62
↓ 3 callers
Method
get_field
( class: &'a Class, field_reference: FieldReference, )
vm/src/call_frame.rs:824
↓ 3 callers
Method
identity_hash_code
(&self)
vm/src/abstract_object.rs:212
↓ 3 callers
Method
len
(&self)
vm/src/abstract_object.rs:370
↓ 3 callers
Method
ptr_to_array_element
(&self, element_index: usize)
vm/src/abstract_object.rs:358
↓ 3 callers
Method
read_raw_attributes
(&mut self)
reader/src/class_reader.rs:494
↓ 3 callers
Method
read_u32
(&mut self)
reader/src/buffer.rs:50
↓ 3 callers
Method
resolve
Attempts to resolve a class from the various entries. Stops at the first entry that has a match or an error.
vm/src/class_path.rs:58
↓ 3 callers
Method
run_garbage_collection
(&mut self)
vm/src/vm.rs:300
↓ 3 callers
Method
search_deprecated_attribute
(&self, raw_attributes: &[Attribute])
reader/src/class_reader.rs:315
↓ 3 callers
Method
visit
Visits a given object, unless it was already processed. Copies the object to the other semispace and proceeds recursively on the object's fields or ar
vm/src/gc.rs:165
↓ 2 callers
Method
all_fields
(&self)
vm/src/class.rs:103
↓ 2 callers
Method
allocate_array
Allocates a new array, or returns None if the memory is full
vm/src/gc.rs:119
↓ 2 callers
Method
allocate_call_stack
Allocates a new call stack. We need to store it to be able to refer it later, for extracting the gc roots.
vm/src/vm.rs:213
↓ 2 callers
Method
allocate_object
Allocates a new object, or returns None if the memory is full
vm/src/gc.rs:111
↓ 2 callers
Method
append_class_path
(&mut self, class_path: &str)
vm/src/vm.rs:92
↓ 2 callers
Function
array_copy
( src: &impl Array<'a>, src_pos: i32, dest: &impl Array<'a>, dest_pos: i32, length: usize,
vm/src/native_methods_impl.rs:195
↓ 2 callers
Method
array_header
(&self)
vm/src/abstract_object.rs:350
↓ 2 callers
Method
as_mut
(&mut self)
vm/src/call_stack.rs:39
↓ 2 callers
Function
assert_can_find_class
(class_path: &ClassPath, class_name: &str)
vm/src/class_path.rs:88
↓ 2 callers
Function
assert_cannot_find_class
(entry: &impl ClassPathEntry, class_name: &str)
vm/src/class_path_entry.rs:52
↓ 2 callers
Method
checkInstanceOfInterfaces
(Object[] v)
vm/tests/resources/rjvm/InstanceOfArray.java:18
↓ 2 callers
Method
debug_done_execution
(&self, result: Option<&Value>)
vm/src/call_frame.rs:1779
↓ 2 callers
Method
dup
(&mut self)
vm/src/value_stack.rs:85
↓ 2 callers
Method
dup2
(&mut self)
vm/src/value_stack.rs:110
↓ 2 callers
Method
dup2_x1
(&mut self)
vm/src/value_stack.rs:119
↓ 2 callers
Method
dup2_x2
(&mut self)
vm/src/value_stack.rs:130
↓ 2 callers
Method
dup_x1
(&mut self)
vm/src/value_stack.rs:92
↓ 2 callers
Method
dup_x2
(&mut self)
vm/src/value_stack.rs:100
↓ 2 callers
Method
execute_if_acmp
( &mut self, jump_address: u16, jump_on_equal: bool, )
vm/src/call_frame.rs:1255
↓ 2 callers
Method
execute_if_null
( &mut self, jump_address: u16, jump_on_null: bool, )
vm/src/call_frame.rs:1229
next →
1–100 of 538, ranked by callers