mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
Remove duplicated spill_temps()
This commit is contained in:
parent
cfe77db00d
commit
bda4192e02
1 changed files with 0 additions and 5 deletions
|
@ -2796,11 +2796,6 @@ fn gen_setinstancevariable(
|
||||||
None => {
|
None => {
|
||||||
let (new_shape_id, needs_extension, ivar_index) = new_shape.unwrap();
|
let (new_shape_id, needs_extension, ivar_index) = new_shape.unwrap();
|
||||||
if let Some((current_capacity, new_capacity)) = needs_extension {
|
if let Some((current_capacity, new_capacity)) = needs_extension {
|
||||||
// We already spilled temps in the case the stack type is _not_ an immediate.
|
|
||||||
// If it is an immediate, but we need to expand the object, then spill temps
|
|
||||||
if stack_type.is_imm() {
|
|
||||||
asm.spill_temps(); // for ccall
|
|
||||||
}
|
|
||||||
// Generate the C call so that runtime code will increase
|
// Generate the C call so that runtime code will increase
|
||||||
// the capacity and set the buffer.
|
// the capacity and set the buffer.
|
||||||
asm_comment!(asm, "call rb_ensure_iv_list_size");
|
asm_comment!(asm, "call rb_ensure_iv_list_size");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue