Rename "Stackmap" to "StackMap"
And "stackmap" to "stack_map". This commit is purely mechanical.
This commit is contained in:
@@ -1349,8 +1349,8 @@ pub(crate) fn emit(
|
||||
Inst::CallKnown {
|
||||
dest, loc, opcode, ..
|
||||
} => {
|
||||
if let Some(s) = state.take_stackmap() {
|
||||
sink.add_stackmap(StackmapExtent::UpcomingBytes(5), s);
|
||||
if let Some(s) = state.take_stack_map() {
|
||||
sink.add_stack_map(StackMapExtent::UpcomingBytes(5), s);
|
||||
}
|
||||
sink.put1(0xE8);
|
||||
// The addend adjusts for the difference between the end of the instruction and the
|
||||
@@ -1393,8 +1393,8 @@ pub(crate) fn emit(
|
||||
);
|
||||
}
|
||||
}
|
||||
if let Some(s) = state.take_stackmap() {
|
||||
sink.add_stackmap(StackmapExtent::StartedAtOffset(start_offset), s);
|
||||
if let Some(s) = state.take_stack_map() {
|
||||
sink.add_stack_map(StackMapExtent::StartedAtOffset(start_offset), s);
|
||||
}
|
||||
if opcode.is_call() {
|
||||
sink.add_call_site(*loc, *opcode);
|
||||
@@ -2428,8 +2428,8 @@ pub(crate) fn emit(
|
||||
|
||||
Inst::Ud2 { trap_info } => {
|
||||
sink.add_trap(trap_info.0, trap_info.1);
|
||||
if let Some(s) = state.take_stackmap() {
|
||||
sink.add_stackmap(StackmapExtent::UpcomingBytes(2), s);
|
||||
if let Some(s) = state.take_stack_map() {
|
||||
sink.add_stack_map(StackMapExtent::UpcomingBytes(2), s);
|
||||
}
|
||||
sink.put1(0x0f);
|
||||
sink.put1(0x0b);
|
||||
|
||||
Reference in New Issue
Block a user