Skip to content

Commit

Permalink
Use stack_clear in pop_many not inefficient loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed May 10, 2012
1 parent 62d48b1 commit b2570c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vm/instructions.def
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ end
# ...

instruction pop_many(count) [ +count -- ]
for(intptr_t i = 0; i < count; i++) {
(void)stack_pop();
}
stack_clear(count);
end

# [Description]
Expand Down

0 comments on commit b2570c3

Please sign in to comment.