mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Renamed defined_ to local_
This commit is contained in:
@@ -8630,7 +8630,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
Operator::MemoryGrow { reserved } => {
|
||||
let mem_index = MemoryIndex::from_u32(reserved);
|
||||
let func_value = if let Some(local_mem_index) =
|
||||
module.local.defined_memory_index(mem_index)
|
||||
module.local.local_memory_index(mem_index)
|
||||
{
|
||||
match module
|
||||
.local
|
||||
@@ -8665,7 +8665,7 @@ impl<'ctx, 'a> LLVMFunctionCodeGenerator<'ctx, 'a> {
|
||||
Operator::MemorySize { reserved } => {
|
||||
let mem_index = MemoryIndex::from_u32(reserved);
|
||||
let func_value = if let Some(local_mem_index) =
|
||||
module.local.defined_memory_index(mem_index)
|
||||
module.local.local_memory_index(mem_index)
|
||||
{
|
||||
match module
|
||||
.local
|
||||
|
||||
@@ -704,7 +704,7 @@ impl<'ctx, 'a> CtxType<'ctx, 'a> {
|
||||
*cached_memories.entry(index).or_insert_with(|| {
|
||||
let (memory_array_ptr_ptr, index, memory_type, minimum, maximum, field_name) = {
|
||||
let desc = wasm_module.local.memory_plans.get(index).unwrap();
|
||||
if let Some(local_mem_index) = wasm_module.local.defined_memory_index(index) {
|
||||
if let Some(local_mem_index) = wasm_module.local.local_memory_index(index) {
|
||||
(
|
||||
unsafe {
|
||||
cache_builder.build_struct_gep(
|
||||
@@ -832,7 +832,7 @@ impl<'ctx, 'a> CtxType<'ctx, 'a> {
|
||||
ptr_to_bounds,
|
||||
} = *cached_tables.entry(index).or_insert_with(|| {
|
||||
let (table_array_ptr_ptr, index, field_name) =
|
||||
if let Some(local_table_index) = wasm_module.local.defined_table_index(index) {
|
||||
if let Some(local_table_index) = wasm_module.local.local_table_index(index) {
|
||||
(
|
||||
unsafe {
|
||||
cache_builder.build_struct_gep(
|
||||
@@ -986,7 +986,7 @@ impl<'ctx, 'a> CtxType<'ctx, 'a> {
|
||||
*cached_globals.entry(index).or_insert_with(|| {
|
||||
let (globals_array_ptr_ptr, index, mutable, wasmer_ty, field_name) = {
|
||||
let desc = wasm_module.local.globals.get(index).unwrap();
|
||||
if let Some(_local_global_index) = wasm_module.local.defined_global_index(index) {
|
||||
if let Some(_local_global_index) = wasm_module.local.local_global_index(index) {
|
||||
(
|
||||
unsafe {
|
||||
cache_builder.build_struct_gep(
|
||||
|
||||
Reference in New Issue
Block a user