Skip to content

Commit 5330536

Browse files
committed
Documentation for java_bytecode_convert_methodt::variable
1 parent cf26008 commit 5330536

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,21 @@ symbol_exprt java_bytecode_convert_methodt::tmp_variable(
186186
return result;
187187
}
188188

189+
/// Returns a symbol_exprt indicating a local variable suitable to load/store
190+
/// from a bytecode at address `address` a value of type `type_char` stored in
191+
/// the JVM's slot `arg`.
192+
///
193+
/// \param arg
194+
/// The local variable slot
195+
/// \param type_char
196+
/// The type of the value stored in the slot pointed by `arg`.
197+
/// \param address
198+
/// Bytecode address used to find a variable that the LVT declares to be live
199+
/// and living in the slot pointed by `arg` for this bytecode.
200+
/// \param do_cast
201+
/// Indicates whether we should return the original symbol_exprt or a
202+
/// typecast_exprt if the type of the symbol_exprt does not equal that
203+
/// represented by `type_char`.
189204
const exprt java_bytecode_convert_methodt::variable(
190205
const exprt &arg,
191206
char type_char,

src/java_bytecode/java_local_variable_table.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ static void merge_variable_table_entries(
543543
/// Given a sequence of users of the same local variable slot, this figures out
544544
/// which ones are related by control flow, and combines them into a single
545545
/// entry with holes, such that after combination we can create a single
546-
/// declaration per variable table entry, placed at the live range's start
546+
/// GOTO variable per variable table entry, placed at the live range's start
547547
/// address, which may be moved back so that the declaration dominates all uses.
548548
/// \par parameters: `firstvar`-`varlimit`: sequence of variable table entries,
549549
/// all of which should concern the same slot index.

0 commit comments

Comments
 (0)