@@ -876,7 +876,7 @@ func void *push_unwind_information_for_function(struct memory_arena *arena, stru
876876
877877 unwind_info -> version = 1 ;
878878 unwind_info -> flags = function -> seh_exception_handler ? /*UNW_FLAG_EHANDLER*/ 1 : 0 ;
879- unwind_info -> size_of_prolog = (u8 )(function -> size_of_prolog );
879+ unwind_info -> size_of_prolog = (u8 )(function -> size_of_prologue );
880880 unwind_info -> count_of_codes = 0 ;
881881 unwind_info -> frame_register = REGISTER_BP ;
882882
@@ -948,10 +948,10 @@ func void *push_unwind_information_for_function(struct memory_arena *arena, stru
948948
949949 u32 count = 0 ;
950950 for (struct seh_exception_handler * handler = function -> seh_exception_handler ; handler ; handler = handler -> next , count ++ ){
951- * push_struct (arena , u32 ) = (u32 )(handler -> start_offset_in_function + function -> relative_virtual_address + function -> size_of_prolog ); // BeginAddress
952- * push_struct (arena , u32 ) = (u32 )(handler -> end_offset_in_function + function -> relative_virtual_address + function -> size_of_prolog ); // EndAddress
951+ * push_struct (arena , u32 ) = (u32 )(handler -> start_offset_in_function + function -> relative_virtual_address + function -> size_of_prologue ); // BeginAddress
952+ * push_struct (arena , u32 ) = (u32 )(handler -> end_offset_in_function + function -> relative_virtual_address + function -> size_of_prologue ); // EndAddress
953953 * push_struct (arena , u32 ) = (u32 )handler -> filter_function -> relative_virtual_address ; // HandlerAddress
954- * push_struct (arena , u32 ) = (u32 )(handler -> end_offset_in_function + function -> relative_virtual_address + function -> size_of_prolog ); // JumpTarget (assumed to be the same as EndAddress for now)
954+ * push_struct (arena , u32 ) = (u32 )(handler -> end_offset_in_function + function -> relative_virtual_address + function -> size_of_prologue ); // JumpTarget (assumed to be the same as EndAddress for now)
955955 }
956956
957957 * count_dest = count ;
@@ -1069,7 +1069,7 @@ void codeview_push_debug_s_lines(struct ast_function *function, struct memory_ar
10691069 for (smm index = 0 ; index < function -> line_information .size ; index ++ ){
10701070 struct function_line_information line = function -> line_information .data [index ];
10711071
1072- u32 offset = (u32 )(line .offset + function -> size_of_prolog );
1072+ u32 offset = (u32 )(line .offset + function -> size_of_prologue );
10731073
10741074 * push_struct (arena , u32 ) = (u32 )offset ;
10751075 * push_struct (arena , u32 ) = (u32 )(line .line | /*is_statement*/ 0x80000000 );
@@ -1447,17 +1447,17 @@ void print_obj(struct string output_file_path, struct memory_arena *arena, struc
14471447 for_ast_list (defined_functions ){
14481448 struct ast_function * function = (struct ast_function * )it -> value ;
14491449
1450- smm function_size = function -> size_of_prolog + function -> byte_size_without_prolog ;
1450+ smm function_size = function -> size_of_prologue + function -> byte_size_without_prologue ;
14511451
14521452 u8 * memory_for_function = push_uninitialized_data (arena , u8 , function_size );
14531453
14541454 u8 * at = memory_for_function ;
1455- memcpy (at , function -> base_of_prolog , function -> size_of_prolog );
1456- at += function -> size_of_prolog ;
1455+ memcpy (at , function -> base_of_prologue , function -> size_of_prologue );
1456+ at += function -> size_of_prologue ;
14571457
1458- memcpy (at , function -> base_of_main_function , function -> byte_size_without_prolog );
1458+ memcpy (at , function -> base_of_main_function , function -> byte_size_without_prologue );
14591459 function -> base_of_main_function = at ;
1460- at += function -> byte_size_without_prolog ;
1460+ at += function -> byte_size_without_prologue ;
14611461
14621462 push_align_initialized_to_specific_value (arena , 16 , 0xcc );
14631463
@@ -2144,7 +2144,7 @@ void print_obj(struct string output_file_path, struct memory_arena *arena, struc
21442144 proc_symbol -> pointer_to_end = 0 ;
21452145 proc_symbol -> pointer_to_next = 0 ;
21462146 proc_symbol -> procedure_length = (u32 )function -> byte_size ;
2147- proc_symbol -> debug_start_offset = (u32 )function -> size_of_prolog ;
2147+ proc_symbol -> debug_start_offset = (u32 )function -> size_of_prologue ;
21482148 proc_symbol -> debug_end_offset = (u32 )function -> byte_size ;
21492149 proc_symbol -> type_index = function_id_at ++ ; // @note: as this is an S_LPROC32_ID not an S_LPROC32 this is the LF_FUNC_ID not the type.
21502150 proc_symbol -> offset_in_section = 0 ; // Filled in by a relocation
@@ -2855,7 +2855,7 @@ void print_obj(struct string output_file_path, struct memory_arena *arena, struc
28552855
28562856 struct ast_function * function = (struct ast_function * )patch -> dest_declaration ;
28572857
2858- smm destination_offset = (function -> offset_in_text_section + function -> size_of_prolog + patch -> location_offset_in_dest_declaration );
2858+ smm destination_offset = (function -> offset_in_text_section + function -> size_of_prologue + patch -> location_offset_in_dest_declaration );
28592859
28602860 struct coff_relocation * relocation = (void * )(text_relocations_data + 10 * index ++ );
28612861
@@ -2872,7 +2872,7 @@ void print_obj(struct string output_file_path, struct memory_arena *arena, struc
28722872 //
28732873 s32 value_to_write = (s32 )((patch -> location_offset_in_dest_declaration + 4 ) - patch -> rip_at + patch -> location_offset_in_source_declaration );
28742874 if (value_to_write ){
2875- u8 * memory_location = function -> memory_location + patch -> location_offset_in_dest_declaration + function -> size_of_prolog ;
2875+ u8 * memory_location = function -> memory_location + patch -> location_offset_in_dest_declaration + function -> size_of_prologue ;
28762876 * (s32 * )memory_location = value_to_write ;
28772877 }
28782878 }else {
0 commit comments