Tweak comments;
This commit is contained in:
@@ -185,7 +185,7 @@ where
|
||||
|
||||
sink.begin_jumptables();
|
||||
|
||||
// output jump tables
|
||||
// Output jump tables.
|
||||
for (jt, jt_data) in func.jump_tables.iter() {
|
||||
let jt_offset = func.jt_offsets[jt];
|
||||
for ebb in jt_data.iter() {
|
||||
@@ -196,7 +196,7 @@ where
|
||||
|
||||
sink.begin_rodata();
|
||||
|
||||
// output constants
|
||||
// Output constants.
|
||||
for (_, constant_data) in func.dfg.constants.iter() {
|
||||
for byte in constant_data.iter() {
|
||||
sink.put1(*byte)
|
||||
|
||||
@@ -129,8 +129,7 @@ pub fn relax_branches(
|
||||
|
||||
for (jt, jt_data) in func.jump_tables.iter() {
|
||||
func.jt_offsets[jt] = offset;
|
||||
// TODO: this should be computed based on the min size needed to hold
|
||||
// the furthest branch.
|
||||
// TODO: this should be computed based on the min size needed to hold the furthest branch.
|
||||
offset += jt_data.len() as u32 * 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user