Renamed defined_ to local_

This commit is contained in:
Syrus
2020-04-21 23:26:17 -07:00
parent cdd51ad14a
commit 5e59eb895b
9 changed files with 80 additions and 80 deletions

View File

@@ -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

View File

@@ -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(