Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Nov 4, 2023
1 parent 62c7275 commit eac3829
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions erts/emulator/beam/beam_code.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#ifndef _BEAM_CODE_H
#define _BEAM_CODE_H

#include <stdbool.h>

#include "sys.h"
#include "erl_process.h"

Expand Down Expand Up @@ -89,11 +87,14 @@ typedef struct beam_code_header {
*/
const BeamCodeLineTab *line_table;

bool *line_coverage;
bool *line_coverage_valid;
/*
* Variables for line coverage.
*/
byte *line_coverage;
byte *line_coverage_valid;
Uint line_coverage_len;

bool *function_coverage;
byte *function_coverage;

/*
* Pointer to the module MD5 sum (16 bytes)
Expand Down
2 changes: 1 addition & 1 deletion erts/emulator/beam/jit/arm/instr_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void BeamModuleAssembler::emit_coverage(bool *coverage_array, Uint index) {
comment("index = %d", index);

mov_imm(TMP1, address);
if (false && (address & 0xff) != 0) {
if ((address & 0xff) != 0) {
a.strb(TMP1.w(), arm::Mem(TMP1));
} else {
mov_imm(TMP2, 1);
Expand Down

0 comments on commit eac3829

Please sign in to comment.