Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
turn unreachable function to cold
  • Loading branch information
youknowone authored Oct 2, 2021
commit 7b0965c1d77e0f4b82c2ef128832dd1d1f6eb947
2 changes: 1 addition & 1 deletion vm/src/builtins/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ impl AsMapping for PyBytes {
Self::downcast_ref(&zelf, vm).map(|zelf| zelf.getitem(needle, vm))?
}

#[inline]
#[cold]
fn ass_subscript(
zelf: PyObjectRef,
_needle: PyObjectRef,
Expand Down
2 changes: 1 addition & 1 deletion vm/src/builtins/mappingproxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl AsMapping for PyMappingProxy {
Self::downcast_ref(&zelf, vm).map(|zelf| zelf.getitem(needle, vm))?
}

#[inline]
#[cold]
fn ass_subscript(
zelf: PyObjectRef,
_needle: PyObjectRef,
Expand Down